Drop gdk_notify_startup_complete

This function and its variant are just wrappers
around the display-specific function.
This commit is contained in:
Matthias Clasen 2017-11-16 22:45:52 -05:00
parent dca8c8e189
commit 211f16d68b
3 changed files with 4 additions and 54 deletions

View File

@ -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

View File

@ -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 applications 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

View File

@ -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