[opensuse-m17n] Re: update ibus to 1.5.1
On Thu, Jan 31, 2013 at 4:45 PM, 逍遥游
We have disabled integrate in openSUSE, so this method is not valid.
I have no idea... gnome-settings-daemon switches ibus engines in gnome-shell 3.6. You might like to port the statusIconDispatcher in gnome-shell 3.4 to 3.6, which has been deleted in 3.6, to work ibus 1.4 and gnome-shell: http://git.gnome.org/browse/gnome-shell/commit/?id=dfb97c1ed77aabd6c25c3a398...
2013/1/31 Takao Fujiwara
On Thu, Jan 31, 2013 at 4:25 PM, Hillwood Yang
wrote: was installed. If IBus-1.0.typelib 1.5.x was installed, Gnome-shell would force enable gjs ui to instead ibus's native gtk3 panel ui, and prevented ibus responded shortcut keys, so that we can't use Ctrl+Space to switch input engine. This problem must cause by the Gnome 3.6. Can
Use gnome-control-center to set the trigger keys. ibus is now integrated in gnome.
fujiwara
-- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-m17n+owner@opensuse.org
Hi, I looked the patch and read this thread: https://bugzilla.gnome.org/show_bug.cgi?id=641531 Now, I understand ibus's status icon have been hard coded in GNOME shell also in GNOME 3.4.
You might like to port the statusIconDispatcher in gnome-shell 3.4 to 3.6, which has been deleted in 3.6, to work ibus 1.4 and gnome-shell:
The code itself exists in notificationDaemon.js but now it requires ibus 1.5? I found "JS LOG: IBus version is too old" in session.log on 12.3. See bottom of this mail. What can we do in a few weeks? - Hack GNOME shell to support ibus 1.4 or implement a new shell extension - Hack ibus to enable its normal tray icon shown in the bottom right * this is disabled to avoid two status icons - Ask users to enable ibus's tool bar - Fix problems with ibus 1.5, our IM launcher and implement ibus-branding-opensuse for compatibility of key bindings Hillwood, Have you reported this issue in Bugzilla? ====== Here is a part of notificationDaemon.js in 3.6. If wmClass is not in STANDARD_..., then do nothing? a bit strange to me...
const STANDARD_TRAY_ICON_IMPLEMENTATIONS = { /* (snip) */ 'ibus-ui-gtk': 'input-method' };
if _onTrayIconAdded: function(o, icon) { let wmClass = icon.wm_class ? icon.wm_class.toLowerCase() : ''; if (STANDARD_TRAY_ICON_IMPLEMENTATIONS[wmClass] !== undefined) return;
let source = this._getSource(icon.title || icon.wm_class || C_("program", "Unknown"), icon.pid, null, null, icon); },
On the other hand in statusIconDispatcher.js in 3.4:
_onTrayIconAdded: function(o, icon) { let wmClass = (icon.wm_class || 'unknown').toLowerCase(); let role = STANDARD_TRAY_ICON_IMPLEMENTATIONS[wmClass]; if (role) this.emit('status-icon-added', icon, role); else this.emit('message-icon-added', icon); },
Fuminobu TAKEYAMA (2013/01/31 17:04), Takao Fujiwara wrote:
On Thu, Jan 31, 2013 at 4:45 PM, 逍遥游
wrote: We have disabled integrate in openSUSE, so this method is not valid.
I have no idea... gnome-settings-daemon switches ibus engines in gnome-shell 3.6. You might like to port the statusIconDispatcher in gnome-shell 3.4 to 3.6, which has been deleted in 3.6, to work ibus 1.4 and gnome-shell: http://git.gnome.org/browse/gnome-shell/commit/?id=dfb97c1ed77aabd6c25c3a398...
2013/1/31 Takao Fujiwara
On Thu, Jan 31, 2013 at 4:25 PM, Hillwood Yang
wrote: was installed. If IBus-1.0.typelib 1.5.x was installed, Gnome-shell would force enable gjs ui to instead ibus's native gtk3 panel ui, and prevented ibus responded shortcut keys, so that we can't use Ctrl+Space to switch input engine. This problem must cause by the Gnome 3.6. Can
Use gnome-control-center to set the trigger keys. ibus is now integrated in gnome.
fujiwara
-- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-m17n+owner@opensuse.org
On Fri, Feb 8, 2013 at 1:47 AM, Fuminobu TAKEYAMA
Hi,
I looked the patch and read this thread: https://bugzilla.gnome.org/show_bug.cgi?id=641531
Now, I understand ibus's status icon have been hard coded in GNOME shell also in GNOME 3.4.
You might like to port the statusIconDispatcher in gnome-shell 3.4 to 3.6, which has been deleted in 3.6, to work ibus 1.4 and gnome-shell:
The code itself exists in notificationDaemon.js but now it requires ibus 1.5? I found "JS LOG: IBus version is too old" in session.log on 12.3.
AFAIR, it still might need a patch but actually I have never tested this way since I use ibus 1.5 for gnome-shell 3.6.
See bottom of this mail.
What can we do in a few weeks? - Hack GNOME shell to support ibus 1.4 or implement a new shell extension - Hack ibus to enable its normal tray icon shown in the bottom right * this is disabled to avoid two status icons - Ask users to enable ibus's tool bar
- Fix problems with ibus 1.5, our IM launcher and implement ibus-branding-opensuse for compatibility of key bindings
Hillwood, Have you reported this issue in Bugzilla?
====== Here is a part of notificationDaemon.js in 3.6. If wmClass is not in STANDARD_..., then do nothing?
Right. Only if the WM_CLASS is registered in gnome-shell, the gtk status icon could be shown. And ibus's WM_CLASS is 'ibus-ui-gtk'. https://github.com/ibus/ibus/commit/5ef29602141945ed1255662576c2e8194af78325
a bit strange to me...
const STANDARD_TRAY_ICON_IMPLEMENTATIONS = { /* (snip) */ 'ibus-ui-gtk': 'input-method' };
if _onTrayIconAdded: function(o, icon) { let wmClass = icon.wm_class ? icon.wm_class.toLowerCase() : ''; if (STANDARD_TRAY_ICON_IMPLEMENTATIONS[wmClass] !== undefined) return;
let source = this._getSource(icon.title || icon.wm_class || C_("program", "Unknown"), icon.pid, null, null, icon); },
On the other hand in statusIconDispatcher.js in 3.4:
_onTrayIconAdded: function(o, icon) { let wmClass = (icon.wm_class || 'unknown').toLowerCase(); let role = STANDARD_TRAY_ICON_IMPLEMENTATIONS[wmClass]; if (role) this.emit('status-icon-added', icon, role); else this.emit('message-icon-added', icon); },
Fuminobu TAKEYAMA
(2013/01/31 17:04), Takao Fujiwara wrote:
On Thu, Jan 31, 2013 at 4:45 PM, 逍遥游
wrote: We have disabled integrate in openSUSE, so this method is not valid.
I have no idea... gnome-settings-daemon switches ibus engines in gnome-shell 3.6. You might like to port the statusIconDispatcher in gnome-shell 3.4 to 3.6, which has been deleted in 3.6, to work ibus 1.4 and gnome-shell:
http://git.gnome.org/browse/gnome-shell/commit/?id=dfb97c1ed77aabd6c25c3a398...
2013/1/31 Takao Fujiwara
On Thu, Jan 31, 2013 at 4:25 PM, Hillwood Yang
wrote: was installed. If IBus-1.0.typelib 1.5.x was installed, Gnome-shell would force enable gjs ui to instead ibus's native gtk3 panel ui, and prevented ibus responded shortcut keys, so that we can't use Ctrl+Space to switch input engine. This problem must cause by the Gnome 3.6. Can
Use gnome-control-center to set the trigger keys. ibus is now integrated in gnome.
fujiwara
-- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-m17n+owner@opensuse.org
By the way, RC 1 is released. So `update to 1.5` is no longer an option for 12.3 at this time. because: if IBus == 1.5, then Vincent do: open the integration; then => rebuild all GNOME packages => coolo is unhappy because he has to start over again. And considering IBus 1.5 is not a "copy and place there" thing, such polish can't be finished on time. So We'd better start to fix things in IBus 1.4 & GNOME 3.6 right there right now. Or the broken state is foreseeable. Marguerite -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-m17n+owner@opensuse.org
Hi all, (2013/02/08 22:09), Marguerite Su wrote:
So We'd better start to fix things in IBus 1.4 & GNOME 3.6 right there right now.
Yes, right. I continue to hack IBus 1.4 without modifying GNOME packages. Now, I successfully put the status icon on the GNOME panel by a GNOME shell extension similar to statusIconDispatcher.js. https://github.com/ftake/ibus_indicator-14 To use this extension we need change window class to ibus-ui-gkt-14. https://build.opensuse.org/package/show?package=ibus&project=home%3Aftake%3Abranches%3AM17N known problem: - the size of the icon is too big - "tray-icon-removed" is not implemented * there is no API to remove status icons in ui.Panel BTW, how can we enable shell extensions automatically? Just putting files in /usr/share/gnome-shells/extensions/ is OK? I'll make a package including this shell extension. (2013/02/08 11:47), Takao Fujiwara wrote:
Here is a part of notificationDaemon.js in 3.6.
If wmClass is not in STANDARD_..., then do nothing? Right. Only if the WM_CLASS is registered in gnome-shell, the gtk status icon could be shown. And ibus's WM_CLASS is 'ibus-ui-gtk'. https://github.com/ibus/ibus/commit/5ef29602141945ed1255662576c2e8194af78325
I was wrong. The code prevent to show the icon on the bottom of "Activity" if wm class is registered. Your comments help me to understand how icons are managed by GNOME. Thank you. Fuminobu TAKEYAMA -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-m17n+owner@opensuse.org
Le lundi 11 février 2013, à 23:37 +0900, Fuminobu TAKEYAMA a écrit :
BTW, how can we enable shell extensions automatically? Just putting files in /usr/share/gnome-shells/extensions/ is OK?
Now, you need to change the default settings for gnome-shell. See enabled-extensions key in https://build.opensuse.org/package/view_file?expand=1&file=glib2-branding.gschema.override.in&package=glib2-branding-openSUSE&project=GNOME%3AFactory Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-m17n+owner@opensuse.org
Hello, it's 4 a.m. in Japan, I updated my shell extension. It should work fine with ibus on *RC1 DVD*. On 12.3 repo, there is ibus with hillwood's patch, which does not work with my extension because the patch removes code for the indicator. https://github.com/ftake/ibus_indicator-14 To test this, please run $ cd ~/.local/share/gnome-shell/extensions/ $ git clone git://github.com/ftake/ibus_indicator-14.git and enable it by gnome-tweak-tool
Now, you need to change the default settings for gnome-shell.
See enabled-extensions key in https://build.opensuse.org/package/view_file?expand=1&file=glib2-branding.gschema.override.in&package=glib2-branding-openSUSE&project=GNOME%3AFactory Thanks!
Now, I have five ideas: 1. Go with the current (hillwood's patched) ibus - Its icon is managed notification daemon (on the bottom of *Activity*) - A bit difficult to use (too small menu, not shown always) 2. Enable the extension by modifying glib2-branding-openSUSE 3. Put a part of the extension (only 17 lines of code) into gnome-shell's script by a patch (see below) - This *was* the best solution if we could notice this problem earlier beta 4. Users enable the extension manually by gnome-tweak-tool, and we update hillwood's patch to work with the extension 5. Call "gnome-shell-extension-tools -e ibus_indicator-14" from the ibus launch script to enable the extension Fuminobu TAKEYAMA geeko@linux-jpk4:~> diff -u /usr/share/gnome-shell/js/ui/notificationDaemon.js.back /usr/share/gnome-shell/js/ui/notificationDaemon.js --- /usr/share/gnome-shell/js/ui/notificationDaemon.js.back 2013-02-13 03:55:29.996264488 +0900 +++ /usr/share/gnome-shell/js/ui/notificationDaemon.js 2013-02-13 04:19:39.961930850 +0900 @@ -500,6 +500,21 @@ _onTrayIconAdded: function(o, icon) { let wmClass = icon.wm_class ? icon.wm_class.toLowerCase() : ''; + if (wmClass == 'ibus-ui-gtk') { + try { + var IBus = imports.gi.IBus + if (!('new_async' in IBus.Bus)) { + // This IBus does not support GNOME 3.6 + icon.height = imports.ui.panel.PANEL_ICON_SIZE + this.ibusIndicator = new imports.ui.panelMenu.Button() + this.ibusIndicator.actor.add_actor(icon) + Main.panel.addToStatusArea('ibus-gtk-ui', this.ibusIndicator, 0, 'right') + } + } catch(e) { + IBus = null + } + } + if (STANDARD_TRAY_ICON_IMPLEMENTATIONS[wmClass] !== undefined) return; @@ -510,6 +525,8 @@ let source = this._lookupSource(null, icon.pid, true); if (source) source.destroy(); + if (icon.wm_class == 'ibus-ui-gtk' && this.ibusIndicator) + this.ibusIndicator.destroy(); } }); -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-m17n+owner@opensuse.org
Hi all, I packaged the shell extension with ibus for the approach 4. The package is available from obs://home:ftake:branches:M17N/openSUSE_12.3 Could you test it? After installing it, please enable the shell extension by your self and log out. I will submit it to M17N and forward to Factory if it is OK. Is there any possibility to add "enabled-extension"? If we do, users cannot disable the shell extension. So we need to consider carefully. # We can put other selected icons including fcitx on the top panel in the same way. Fuminobu TAKEYAMA (2013/02/13 4:32), Fuminobu TAKEYAMA wrote:
Hello, it's 4 a.m. in Japan,
I updated my shell extension. It should work fine with ibus on *RC1 DVD*. On 12.3 repo, there is ibus with hillwood's patch, which does not work with my extension because the patch removes code for the indicator. https://github.com/ftake/ibus_indicator-14
To test this, please run $ cd ~/.local/share/gnome-shell/extensions/ $ git clone git://github.com/ftake/ibus_indicator-14.git
and enable it by gnome-tweak-tool
Now, you need to change the default settings for gnome-shell.
See enabled-extensions key in https://build.opensuse.org/package/view_file?expand=1&file=glib2-branding.gschema.override.in&package=glib2-branding-openSUSE&project=GNOME%3AFactory
Thanks!
Now, I have five ideas: 1. Go with the current (hillwood's patched) ibus - Its icon is managed notification daemon (on the bottom of *Activity*) - A bit difficult to use (too small menu, not shown always) 2. Enable the extension by modifying glib2-branding-openSUSE 3. Put a part of the extension (only 17 lines of code) into gnome-shell's script by a patch (see below) - This *was* the best solution if we could notice this problem earlier beta 4. Users enable the extension manually by gnome-tweak-tool, and we update hillwood's patch to work with the extension
5. Call "gnome-shell-extension-tools -e ibus_indicator-14" from the ibus launch script to enable the extension
Fuminobu TAKEYAMA
geeko@linux-jpk4:~> diff -u /usr/share/gnome-shell/js/ui/notificationDaemon.js.back /usr/share/gnome-shell/js/ui/notificationDaemon.js --- /usr/share/gnome-shell/js/ui/notificationDaemon.js.back 2013-02-13 03:55:29.996264488 +0900 +++ /usr/share/gnome-shell/js/ui/notificationDaemon.js 2013-02-13 04:19:39.961930850 +0900 @@ -500,6 +500,21 @@
_onTrayIconAdded: function(o, icon) { let wmClass = icon.wm_class ? icon.wm_class.toLowerCase() : ''; + if (wmClass == 'ibus-ui-gtk') { + try { + var IBus = imports.gi.IBus + if (!('new_async' in IBus.Bus)) { + // This IBus does not support GNOME 3.6 + icon.height = imports.ui.panel.PANEL_ICON_SIZE + this.ibusIndicator = new imports.ui.panelMenu.Button() + this.ibusIndicator.actor.add_actor(icon) + Main.panel.addToStatusArea('ibus-gtk-ui', this.ibusIndicator, 0, 'right') + } + } catch(e) { + IBus = null + } + } + if (STANDARD_TRAY_ICON_IMPLEMENTATIONS[wmClass] !== undefined) return;
@@ -510,6 +525,8 @@ let source = this._lookupSource(null, icon.pid, true); if (source) source.destroy(); + if (icon.wm_class == 'ibus-ui-gtk' && this.ibusIndicator) + this.ibusIndicator.destroy(); } }); -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-m17n+owner@opensuse.org
Hi ftake, Actually, there is a extension named topicons also can do this work (https://extensions.gnome.org/extension/495/topicons/). It can work in Gnome 3.6 and move all tray icons to top, include fcitx ,scim ,gcin, banshee and others. And all features of openSUSE 12.3 have been frozen, I don't think your extension would be auto enable. of course, you can try. Maybe we should ask users to install and enable topicons or your extension themselves. PS: Topicons works fine with my patch. https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-frc1/858577_10200777261453... Thanks! Hillwood Yang 在 2013-02-16六的 01:59 +0900,Fuminobu TAKEYAMA写道:
Hi all,
I packaged the shell extension with ibus for the approach 4. The package is available from obs://home:ftake:branches:M17N/openSUSE_12.3
Could you test it?
After installing it, please enable the shell extension by your self and log out.
I will submit it to M17N and forward to Factory if it is OK.
Is there any possibility to add "enabled-extension"? If we do, users cannot disable the shell extension. So we need to consider carefully.
# We can put other selected icons including fcitx on the top panel in the same way.
Fuminobu TAKEYAMA
(2013/02/13 4:32), Fuminobu TAKEYAMA wrote:
Hello, it's 4 a.m. in Japan,
I updated my shell extension. It should work fine with ibus on *RC1 DVD*. On 12.3 repo, there is ibus with hillwood's patch, which does not work with my extension because the patch removes code for the indicator. https://github.com/ftake/ibus_indicator-14
To test this, please run $ cd ~/.local/share/gnome-shell/extensions/ $ git clone git://github.com/ftake/ibus_indicator-14.git
and enable it by gnome-tweak-tool
Now, you need to change the default settings for gnome-shell.
See enabled-extensions key in https://build.opensuse.org/package/view_file?expand=1&file=glib2-branding.gschema.override.in&package=glib2-branding-openSUSE&project=GNOME%3AFactory
Thanks!
Now, I have five ideas: 1. Go with the current (hillwood's patched) ibus - Its icon is managed notification daemon (on the bottom of *Activity*) - A bit difficult to use (too small menu, not shown always) 2. Enable the extension by modifying glib2-branding-openSUSE 3. Put a part of the extension (only 17 lines of code) into gnome-shell's script by a patch (see below) - This *was* the best solution if we could notice this problem earlier beta 4. Users enable the extension manually by gnome-tweak-tool, and we update hillwood's patch to work with the extension
5. Call "gnome-shell-extension-tools -e ibus_indicator-14" from the ibus launch script to enable the extension
Fuminobu TAKEYAMA
geeko@linux-jpk4:~> diff -u /usr/share/gnome-shell/js/ui/notificationDaemon.js.back /usr/share/gnome-shell/js/ui/notificationDaemon.js --- /usr/share/gnome-shell/js/ui/notificationDaemon.js.back 2013-02-13 03:55:29.996264488 +0900 +++ /usr/share/gnome-shell/js/ui/notificationDaemon.js 2013-02-13 04:19:39.961930850 +0900 @@ -500,6 +500,21 @@
_onTrayIconAdded: function(o, icon) { let wmClass = icon.wm_class ? icon.wm_class.toLowerCase() : ''; + if (wmClass == 'ibus-ui-gtk') { + try { + var IBus = imports.gi.IBus + if (!('new_async' in IBus.Bus)) { + // This IBus does not support GNOME 3.6 + icon.height = imports.ui.panel.PANEL_ICON_SIZE + this.ibusIndicator = new imports.ui.panelMenu.Button() + this.ibusIndicator.actor.add_actor(icon) + Main.panel.addToStatusArea('ibus-gtk-ui', this.ibusIndicator, 0, 'right') + } + } catch(e) { + IBus = null + } + } + if (STANDARD_TRAY_ICON_IMPLEMENTATIONS[wmClass] !== undefined) return;
@@ -510,6 +525,8 @@ let source = this._lookupSource(null, icon.pid, true); if (source) source.destroy(); + if (icon.wm_class == 'ibus-ui-gtk' && this.ibusIndicator) + this.ibusIndicator.destroy(); } });
-- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-m17n+owner@opensuse.org
Hi Hillwood, I also think Topicons is a great shell extension but it has problems that it put all of icons on the top, which breaks design principle of GNOME. # although the current notification daemon is not good enough. So I want to make another option to enable only IBus icon. IBus should be usable just after installation as ever, but it may be time to give up it. Some users will feel openSUSE (or IBus) is broken. Fuminobu TAKEYAMA (2013/02/16 14:08), Hillwood Yang wrote:
Hi ftake,
Actually, there is a extension named topicons also can do this work (https://extensions.gnome.org/extension/495/topicons/). It can work in Gnome 3.6 and move all tray icons to top, include fcitx ,scim ,gcin, banshee and others. And all features of openSUSE 12.3 have been frozen, I don't think your extension would be auto enable. of course, you can try. Maybe we should ask users to install and enable topicons or your extension themselves.
PS: Topicons works fine with my patch.
https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-frc1/858577_10200777261453...
Thanks!
Hillwood Yang
在 2013-02-16六的 01:59 +0900,Fuminobu TAKEYAMA写道:
Hi all,
I packaged the shell extension with ibus for the approach 4. The package is available from obs://home:ftake:branches:M17N/openSUSE_12.3
Could you test it?
After installing it, please enable the shell extension by your self and log out.
I will submit it to M17N and forward to Factory if it is OK.
Is there any possibility to add "enabled-extension"? If we do, users cannot disable the shell extension. So we need to consider carefully.
# We can put other selected icons including fcitx on the top panel in the same way.
Fuminobu TAKEYAMA
(2013/02/13 4:32), Fuminobu TAKEYAMA wrote:
Hello, it's 4 a.m. in Japan,
I updated my shell extension. It should work fine with ibus on *RC1 DVD*. On 12.3 repo, there is ibus with hillwood's patch, which does not work with my extension because the patch removes code for the indicator. https://github.com/ftake/ibus_indicator-14
To test this, please run $ cd ~/.local/share/gnome-shell/extensions/ $ git clone git://github.com/ftake/ibus_indicator-14.git
and enable it by gnome-tweak-tool
Now, you need to change the default settings for gnome-shell.
See enabled-extensions key in https://build.opensuse.org/package/view_file?expand=1&file=glib2-branding.gschema.override.in&package=glib2-branding-openSUSE&project=GNOME%3AFactory
Thanks!
Now, I have five ideas: 1. Go with the current (hillwood's patched) ibus - Its icon is managed notification daemon (on the bottom of *Activity*) - A bit difficult to use (too small menu, not shown always) 2. Enable the extension by modifying glib2-branding-openSUSE 3. Put a part of the extension (only 17 lines of code) into gnome-shell's script by a patch (see below) - This *was* the best solution if we could notice this problem earlier beta 4. Users enable the extension manually by gnome-tweak-tool, and we update hillwood's patch to work with the extension
5. Call "gnome-shell-extension-tools -e ibus_indicator-14" from the ibus launch script to enable the extension
Fuminobu TAKEYAMA
geeko@linux-jpk4:~> diff -u /usr/share/gnome-shell/js/ui/notificationDaemon.js.back /usr/share/gnome-shell/js/ui/notificationDaemon.js --- /usr/share/gnome-shell/js/ui/notificationDaemon.js.back 2013-02-13 03:55:29.996264488 +0900 +++ /usr/share/gnome-shell/js/ui/notificationDaemon.js 2013-02-13 04:19:39.961930850 +0900 @@ -500,6 +500,21 @@
_onTrayIconAdded: function(o, icon) { let wmClass = icon.wm_class ? icon.wm_class.toLowerCase() : ''; + if (wmClass == 'ibus-ui-gtk') { + try { + var IBus = imports.gi.IBus + if (!('new_async' in IBus.Bus)) { + // This IBus does not support GNOME 3.6 + icon.height = imports.ui.panel.PANEL_ICON_SIZE + this.ibusIndicator = new imports.ui.panelMenu.Button() + this.ibusIndicator.actor.add_actor(icon) + Main.panel.addToStatusArea('ibus-gtk-ui', this.ibusIndicator, 0, 'right') + } + } catch(e) { + IBus = null + } + } + if (STANDARD_TRAY_ICON_IMPLEMENTATIONS[wmClass] !== undefined) return;
@@ -510,6 +525,8 @@ let source = this._lookupSource(null, icon.pid, true); if (source) source.destroy(); + if (icon.wm_class == 'ibus-ui-gtk' && this.ibusIndicator) + this.ibusIndicator.destroy(); } });
-- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-m17n+owner@opensuse.org
Hi ftake: Please check your extension. I tested this extension before dinner, I found it could not work in Gnome 3.6, gnome-tweak-tool reported the extension didn't compatible with Gnome 3.6 (http://www.flickr.com/photos/8391512@N08/8477753199/). Hillwood Yang 在 2013-02-16六的 16:16 +0900,Fuminobu TAKEYAMA写道:
Hi Hillwood,
I also think Topicons is a great shell extension but it has problems that it put all of icons on the top, which breaks design principle of GNOME. # although the current notification daemon is not good enough.
So I want to make another option to enable only IBus icon.
IBus should be usable just after installation as ever, but it may be time to give up it. Some users will feel openSUSE (or IBus) is broken.
Fuminobu TAKEYAMA
-- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-m17n+owner@opensuse.org
Thank you for trying it. GNOME was updated to 3.6.4 and that's why it did not work. I changed shell-extension version "3.6.3" to "3.6". Please update it and try again. Fuminobu TAKEYAMA (2013/02/16 20:58), hillwood wrote:
Hi ftake:
Please check your extension. I tested this extension before dinner, I found it could not work in Gnome 3.6, gnome-tweak-tool reported the extension didn't compatible with Gnome 3.6 (http://www.flickr.com/photos/8391512@N08/8477753199/).
Hillwood Yang
在 2013-02-16六的 16:16 +0900,Fuminobu TAKEYAMA写道:
Hi Hillwood,
I also think Topicons is a great shell extension but it has problems that it put all of icons on the top, which breaks design principle of GNOME. # although the current notification daemon is not good enough.
So I want to make another option to enable only IBus icon.
IBus should be usable just after installation as ever, but it may be time to give up it. Some users will feel openSUSE (or IBus) is broken.
Fuminobu TAKEYAMA
-- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-m17n+owner@opensuse.org
participants (6)
-
Fuminobu TAKEYAMA
-
hillwood
-
Hillwood Yang
-
Marguerite Su
-
Takao Fujiwara
-
Vincent Untz