https://bugs.gpodder.org/show_bug.cgi?id=828

--- Comment #2 from [email protected] 2010-02-04 15:25:11 GMT ---
I've found this at https://bugs.launchpad.net/pidgin/+bug/146461

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
}

So basically you just need window.iconify, window.hide, and skip taskbar hint.

It's taken from rhythmbox code.

-- 
Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs

Reply via email to