It seems like we should switch to GtkStatusIcon at some point. Then
there could be something like this in GTK+ (based off the code from
Rhythmbox):
void gtk_status_icon_iconify_window(GtkStatusIcon *icon, GtkWindow *window)
{
if (!gtk_status_icon_is_embedded ())
return;
// Get the geometry of the tray icon as with gtk_status_icon_get_geometry ()
// Set the geometry of the window.
gtk_window_set_skip_taskbar_hint(window, TRUE);
gtk_window_iconify(window);
gtk_window_hide(window);
g_list_prepend(hidden_windows, window);
}
void gtk_status_icon_deiconify_windows(GtkStatusIcon *icon)
{
// for window in hidden_windows:
gtk_window_set_skip_taskbar_hint(window, FALSE);
gtk_window_show(window);
gtk_window_deiconify(window);
// remove window from hidden_windows
// end
}
Obviously, this needs some input from the GTK+ guys. I'm not sure if the
icon should automatically de-iconify on click or not. I'm also not sure
if you'd want to de-iconify everything in one shot (or if it should even
track multiple hidden windows).
--
pidgin minimize to tray is visually wrong using compiz
https://bugs.launchpad.net/bugs/146461
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs