Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
gnome-shell
gnome-shell-sle-theme.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gnome-shell-sle-theme.patch of Package gnome-shell
diff -Npur gnome-shell-3.10.4/js/ui/aboutMenu.js gnome-shell-3.10.4-new/js/ui/aboutMenu.js --- gnome-shell-3.10.4/js/ui/aboutMenu.js 2014-06-06 05:56:19.040026091 +0800 +++ gnome-shell-3.10.4-new/js/ui/aboutMenu.js 2014-06-06 05:59:43.328025099 +0800 @@ -12,6 +12,17 @@ const AboutMenuButton = new Lang.Class({ Name: 'AboutMenuButton', Extends: PanelMenu.Button, _init: function() { + let command = 'hostname'; + let hostname_text; + try { + let [res, stdout, stderr, status] = GLib.spawn_command_line_sync(command); + hostname_text = String.fromCharCode.apply(null, stdout); + } catch (e) { + /* Donnot display the useless widget */ + this.parent(null, 'About Me'); + return; + } + let hbox; let vbox; @@ -21,20 +31,6 @@ const AboutMenuButton = new Lang.Class({ this.parent(menuAlignment, 'About Me'); this.about_hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' }); - this.about_hbox.add_child(new St.Icon({ style_class: 'system-status-icon', - icon_name: 'suse', - icon_size: 24, - y_align: Clutter.ActorAlign.CENTER - })); - - let command = 'hostname'; - let hostname_text; - try { - let [res, stdout, stderr, status] = GLib.spawn_command_line_sync(command); - hostname_text = String.fromCharCode.apply(null, stdout); - } catch (e) { - hostname_text = 'Welcome'; - } this.about_hbox.add_child(new St.Label({ text: hostname_text, y_align: Clutter.ActorAlign.CENTER })); diff -Npur gnome-shell-3.10.4/js/ui/userWidget.js gnome-shell-3.10.4-new/js/ui/userWidget.js --- gnome-shell-3.10.4/js/ui/userWidget.js 2014-02-20 02:19:32.000000000 +0800 +++ gnome-shell-3.10.4-new/js/ui/userWidget.js 2014-06-06 05:57:33.740025728 +0800 @@ -50,7 +50,7 @@ const Avatar = new Lang.Class({ this.actor.style = 'background-image: url("%s");'.format(iconFile); } else { this.actor.style = null; - this.actor.child = new St.Icon({ icon_name: 'avatar-default-symbolic', + this.actor.child = new St.Icon({ icon_name: 'sle-avatar', icon_size: this._iconSize }); } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor