After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 376502 - multi-screen support for GtkStatusIcon
multi-screen support for GtkStatusIcon
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-11-17 23:46 UTC by Mark McLoughlin
Modified: 2006-11-19 16:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtk-multi-screen-status-icon.patch (11.30 KB, patch)
2006-11-17 23:47 UTC, Mark McLoughlin
accepted-commit_now Details | Review

Description Mark McLoughlin 2006-11-17 23:46:46 UTC
Attaching is a patch which allows you to set which screen a status icon should display on

(Matthias: what I said earlier about multi-screen support somehow getting "lost" was bogus ... EggStatusIcon never had multi-screen suppot)
Comment 1 Mark McLoughlin 2006-11-17 23:47:32 UTC
Created attachment 76786 [details] [review]
gtk-multi-screen-status-icon.patch
Comment 2 Matthias Clasen 2006-11-18 00:25:10 UTC
Looks good. Please commit to HEAD. 
Please also add the new api to docs/reference/gtk/gtk-sections.txt
Comment 3 Mark McLoughlin 2006-11-19 16:22:40 UTC
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

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

        * gtk/gtk-sections.txt: add gtk_status_icon_(get|set)_screen