More detailed study off the problem revealed its just gnome-shell ui
status .js which is very limited in gnome 3.10. (in 3.12 the ui is even
gone completely)

For ubuntu 14.04 which is using default gnome 3.10. You can just adapt
the /usr/share/gnome-shell/js/ui/status/volume.js

and the /usr/share/gnome-shell/js/ui/status/network.js

In the first I just add the sound config editor It's just a single line

        this.menu.addSettingsAction(_("Sound Settings"), 'gnome-sound-
panel.desktop');

to be added before line         this.menu.addMenuItem(this._volumeMenu);

In the second network.js  . I just changed the icon for network
connection. In case off wired connection it will show the wired
connection icon instead off nothing. That's a whole function change .
starting on line 1645 . here it is changed

    _updateIcon: function() {
        if (!this._client.networking_enabled || !this._mainConnection) {
            this._primaryIndicator.icon_name = 'network-offline-symbolic';
            this._primaryIndicator.visible = true;
        } else {
            let dev = this._mainConnection._primaryDevice;
            this._primaryIndicator.visible = (dev != null);
            if (dev) {
                this._primaryIndicator.icon_name = dev.getIndicatorIcon();
            } else {
                this._primaryIndicator.icon_name = 'network-wired-symbolic';
                this._primaryIndicator.visible = true;
                }
        }

        this._vpnIndicator.icon_name = this._vpnSection.getIndicatorIcon();
        this._vpnIndicator.visible = (this._vpnIndicator.icon_name != '');
    }

Then For the network.js I also added the settings menu that's just a
after line 1289 two lines

        this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
        this.menu.addSettingsAction(_("Network Settings"), 
'gnome-network-panel.desktop');

The /usr/share/gnome-shell is part off gnome-shell-common package.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1308291

Title:
  network-manager icon is gone in 14.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1308291/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to