diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-11-16 22:45:52 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-11-16 22:45:52 -0500 |
commit | 211f16d68b48e2874da36f4bf55d63c501e49daf (patch) | |
tree | 12814859426416ca267fbfcd74c6a3a4736b275d | |
parent | dca8c8e1894a7f973df1606e0d5f3a6cd9893381 (diff) | |
download | gtk+-211f16d68b48e2874da36f4bf55d63c501e49daf.tar.gz |
Drop gdk_notify_startup_complete
This function and its variant are just wrappers
around the display-specific function.
-rw-r--r-- | docs/reference/gdk/gdk4-sections.txt | 6 | ||||
-rw-r--r-- | gdk/gdkdisplay.c | 47 | ||||
-rw-r--r-- | gdk/gdkmain.h | 5 |
3 files changed, 4 insertions, 54 deletions
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt index a407558214..97d1d25b75 100644 --- a/docs/reference/gdk/gdk4-sections.txt +++ b/docs/reference/gdk/gdk4-sections.txt @@ -4,9 +4,6 @@ <SECTION> <TITLE>General</TITLE> <FILE>general</FILE> -gdk_notify_startup_complete -gdk_notify_startup_complete_with_id -gdk_set_allowed_backends <SUBSECTION> gdk_get_program_class @@ -150,6 +147,9 @@ gdk_display_manager_set_default_display gdk_display_manager_list_displays gdk_display_manager_open_display +<SUBSECTION> +gdk_set_allowed_backends + <SUBSECTION Standard> GDK_DISPLAY_MANAGER GDK_DISPLAY_MANAGER_CLASS diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c index 7a5440dc09..6e3f9f2e39 100644 --- a/gdk/gdkdisplay.c +++ b/gdk/gdkdisplay.c @@ -575,6 +575,7 @@ gdk_display_put_event (GdkDisplay *display, * * Flushes the output buffers of all display connections and waits * until all requests have been processed. + * * This is rarely needed by applications. */ void @@ -1522,52 +1523,6 @@ _gdk_display_get_next_serial (GdkDisplay *display) return GDK_DISPLAY_GET_CLASS (display)->get_next_serial (display); } - -/** - * gdk_notify_startup_complete: - * - * Indicates to the GUI environment that the application has finished - * loading. If the applications opens windows, this function is - * normally called after opening the application’s initial set of - * windows. - * - * GTK+ will call this function automatically after opening the first - * #GtkWindow unless gtk_window_set_auto_startup_notification() is called - * to disable that feature. - * - * Since: 2.2 - **/ -void -gdk_notify_startup_complete (void) -{ - gdk_notify_startup_complete_with_id (NULL); -} - -/** - * gdk_notify_startup_complete_with_id: - * @startup_id: a startup-notification identifier, for which - * notification process should be completed - * - * Indicates to the GUI environment that the application has - * finished loading, using a given identifier. - * - * GTK+ will call this function automatically for #GtkWindow - * with custom startup-notification identifier unless - * gtk_window_set_auto_startup_notification() is called to - * disable that feature. - * - * Since: 2.12 - */ -void -gdk_notify_startup_complete_with_id (const gchar* startup_id) -{ - GdkDisplay *display; - - display = gdk_display_get_default (); - if (display) - gdk_display_notify_startup_complete (display, startup_id); -} - /** * gdk_display_notify_startup_complete: * @display: a #GdkDisplay diff --git a/gdk/gdkmain.h b/gdk/gdkmain.h index d88cd86fd1..93a07bd450 100644 --- a/gdk/gdkmain.h +++ b/gdk/gdkmain.h @@ -45,11 +45,6 @@ const gchar * gdk_get_program_class (void); GDK_AVAILABLE_IN_ALL void gdk_set_program_class (const gchar *program_class); -GDK_AVAILABLE_IN_ALL -void gdk_notify_startup_complete (void); -GDK_AVAILABLE_IN_ALL -void gdk_notify_startup_complete_with_id (const gchar* startup_id); - /* Push and pop error handlers for X errors */ GDK_AVAILABLE_IN_ALL |