diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-11-02 05:37:04 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-11-02 05:37:04 +0000 |
commit | accc3a3365fa56b02e647686750e5106e020c425 (patch) | |
tree | 8d5129f3e28bf612bd5fd3ec065da1e4e6ec6a7c /gdk/gdk.h | |
parent | 39a5a723f0381cca485fd366499a07e31b57c89f (diff) | |
download | gtk+-accc3a3365fa56b02e647686750e5106e020c425.tar.gz |
Add startup notification hooks - mostly based on patch by Havoc Pennington
Sat Nov 2 00:22:33 2002 Owen Taylor <otaylor@redhat.com>
Add startup notification hooks - mostly based on patch
by Havoc Pennington in #96772.
* gdk/gdk.h gdk/x11/gdkdisplay-x11.c
gdk/{win32,linux-fb}/gdkmain-*.c: (gdk_notify_startup_complete):
new function that indicates an application has finished starting
up.
* gdk/x11/gdkmain-x11.c gdk/x11/gdkdisplay-x11.c
(_gdk_windowing_set_default_display): store value of
DESKTOP_STARTUP_ID on the default screen, and clear it from the
environment.
* gdk/x11/gdkdisplay-x11.c:
Set _NET_STARTUP_ID hint on display's group leader window.
* gtk/gtkwindow.c (gtk_window_set_auto_startup_notification):
function to toggle whether we automatically broadcast that we've
started up, after mapping the first toplevel window.
(gtk_window_map): call gdk_screen_notify_startup_complete() by
default, unless enabled by above.
* gtk/gtkmain.c gtk/gtkcombo.c gtk/gtktoolbar.c:
Couple of warning fixes.
Diffstat (limited to 'gdk/gdk.h')
-rw-r--r-- | gdk/gdk.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -160,6 +160,9 @@ void gdk_event_send_clientmessage_toall (GdkEvent *event); gboolean gdk_event_send_client_message_for_display (GdkDisplay *display, GdkEvent *event, GdkNativeWindow winid); + +void gdk_notify_startup_complete (void); + /* Threading */ |