Fixes bug #376502 - multi-screen support for GtkStatusIcon

2006-11-19  Mark McLoughlin  <mark@skynet.ie>

        Fixes bug #376502 - multi-screen support for GtkStatusIcon

        * gtk/gtkstatusicon.[ch]:
        (gtk_status_icon_set_screen),
        (gtk_status_icon_get_screen): add multi-screen API. Allows
        an app to display an icon on a non-default screen
        (gtk_status_icon_class_init),
        (gtk_status_icon_set_property),
        (gtk_status_icon_get_property): add a "screen" property

        * tests/teststatusicon.c: update to test on multiple screens
This commit is contained in:
Mark McLoughlin
2006-11-19 16:22:23 +00:00
committed by Mark McLoughlin
parent 1312c002df
commit 8241b0b7dd
4 changed files with 173 additions and 40 deletions

View File

@ -91,6 +91,10 @@ G_CONST_RETURN gchar *gtk_status_icon_get_icon_name (GtkStatusIcon *st
gint gtk_status_icon_get_size (GtkStatusIcon *status_icon);
void gtk_status_icon_set_screen (GtkStatusIcon *status_icon,
GdkScreen *screen);
GdkScreen *gtk_status_icon_get_screen (GtkStatusIcon *status_icon);
void gtk_status_icon_set_tooltip (GtkStatusIcon *status_icon,
const gchar *tooltip_text);