[gtk+] Drop gdk_notify_startup_complete



commit 211f16d68b48e2874da36f4bf55d63c501e49daf
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Nov 16 22:45:52 2017 -0500

    Drop gdk_notify_startup_complete
    
    This function and its variant are just wrappers
    around the display-specific function.

 docs/reference/gdk/gdk4-sections.txt |    6 ++--
 gdk/gdkdisplay.c                     |   47 +---------------------------------
 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 a407558..97d1d25 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 7a5440d..6e3f9f2 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 d88cd86..93a07bd 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]