summaryrefslogtreecommitdiff
path: root/gdk/gdk.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-11-02 05:37:04 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-11-02 05:37:04 +0000
commitaccc3a3365fa56b02e647686750e5106e020c425 (patch)
tree8d5129f3e28bf612bd5fd3ec065da1e4e6ec6a7c /gdk/gdk.h
parent39a5a723f0381cca485fd366499a07e31b57c89f (diff)
downloadgtk+-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/gdk.h b/gdk/gdk.h
index 811c484935..e48683e2ea 100644
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -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
*/