A gtkbox implementation based on obox in gnome-panel which can behave as both a hbox and a vbox. This is needed for the systray plugin so it does not need to destroy and then create a new systray box when the panel orientation changes. The current behaviour makes gaim pop up on such events for instance and other apps may take some time before noticing and repopulating the tray area. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 449 build patch
Created attachment 450 c file
Created attachment 451 .h file
Created attachment 452 patch against systray plugin to use the hvbox with this the systray is no longer stop/restarted and changing panel orientation is smoother
I'll take this bug. Sounds good to me. Alternatively we could possibly use xfce-itembar from libxfce4panel, which does something similar.
I didn't know about itembar, I only looked through libxfcegu4 for somethig similar. Either way is fine, but putting it in gui would help other apps to. thanks
I don't think adding a new widget is necessary. We should fix the actual problem, not introduce a new, complex layout widget. We should just g_object_ref() and then gtk_container_remove() each systray icon, destroy the hbox (or vbox), create a new vbox (or hbox), and then gtk_box_pack_start() and g_object_unref() each of the systray icons. Simple enough, unless I'm missing something here.
(In reply to comment #7) > I don't think adding a new widget is necessary. We should fix the actual > problem, not introduce a new, complex layout widget. > > We should just g_object_ref() and then gtk_container_remove() each systray icon, > destroy the hbox (or vbox), create a new vbox (or hbox), and then > gtk_box_pack_start() and g_object_unref() each of the systray icons. Simple > enough, unless I'm missing something here. Well, you would think that. I did. And again now that I've read your post I changed it to do that. Strangely enough, when I simply reparent the widgets to a new box, I get ghosts of the existing icons. I have no idea why :( I'll look into it a bit further.
I have added a slightly modified version to libxfce4panel and changed a few plugins to use it. It's a bit of a hack, but I can appreciate that ;-) The widget could definitely be useful for panel plugins with multiple items and is better suited to the task than xfce-itembar.