diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c index 5ef58dbfdb..630aea4c72 100644 --- a/gdk/gdksurface.c +++ b/gdk/gdksurface.c @@ -2766,61 +2766,6 @@ gdk_surface_focus (GdkSurface *surface, GDK_SURFACE_GET_CLASS (surface)->focus (surface, timestamp); } -/** - * gdk_surface_set_title: - * @surface: a toplevel #GdkSurface - * @title: title of @surface - * - * Sets the title of a toplevel surface, to be displayed in the titlebar. - * If you haven’t explicitly set the icon name for the surface - * (using gdk_surface_set_icon_name()), the icon name will be set to - * @title as well. @title must be in UTF-8 encoding (as with all - * user-readable strings in GDK and GTK). @title may not be %NULL. - **/ -void -gdk_surface_set_title (GdkSurface *surface, - const gchar *title) -{ - GDK_SURFACE_GET_CLASS (surface)->set_title (surface, title); -} - -/** - * gdk_surface_set_startup_id: - * @surface: a toplevel #GdkSurface - * @startup_id: a string with startup-notification identifier - * - * When using GTK, typically you should use gtk_window_set_startup_id() - * instead of this low-level function. - **/ -void -gdk_surface_set_startup_id (GdkSurface *surface, - const gchar *startup_id) -{ - GDK_SURFACE_GET_CLASS (surface)->set_startup_id (surface, startup_id); -} - -/** - * gdk_surface_set_transient_for: - * @surface: a toplevel #GdkSurface - * @parent: another toplevel #GdkSurface - * - * Indicates to the window manager that @surface is a transient dialog - * associated with the application surface @parent. This allows the - * window manager to do things like center @surface on @parent and - * keep @surface above @parent. - * - * See gtk_window_set_transient_for() if you’re using #GtkWindow or - * #GtkDialog. - **/ -void -gdk_surface_set_transient_for (GdkSurface *surface, - GdkSurface *parent) -{ - surface->transient_for = parent; - - GDK_SURFACE_GET_CLASS (surface)->set_transient_for (surface, parent); -} - /** * gdk_surface_set_accept_focus: * @surface: a toplevel #GdkSurface @@ -2860,54 +2805,6 @@ gdk_surface_set_focus_on_map (GdkSurface *surface, GDK_SURFACE_GET_CLASS (surface)->set_focus_on_map (surface, focus_on_map); } -/** - * gdk_surface_set_icon_list: - * @surface: The #GdkSurface toplevel surface to set the icon of. - * @surfaces: (transfer none) (element-type GdkTexture): - * A list of image surfaces, of different sizes. - * - * Sets a list of icons for the surface. One of these will be used - * to represent the surface when it has been iconified. The icon is - * usually shown in an icon box or some sort of task bar. Which icon - * size is shown depends on the window manager. The window manager - * can scale the icon but setting several size icons can give better - * image quality since the window manager may only need to scale the - * icon by a small amount or not at all. - * - * Note that some platforms don't support surface icons. - */ -void -gdk_surface_set_icon_list (GdkSurface *surface, - GList *textures) -{ - GDK_SURFACE_GET_CLASS (surface)->set_icon_list (surface, textures); -} - -/** - * gdk_surface_set_icon_name: - * @surface: a toplevel #GdkSurface - * @name: (allow-none): name of surface while iconified (minimized) - * - * Surfaces may have a name used while minimized, distinct from the - * name they display in their titlebar. Most of the time this is a bad - * idea from a user interface standpoint. But you can set such a name - * with this function, if you like. - * - * After calling this with a non-%NULL @name, calls to gdk_surface_set_title() - * will not update the icon title. - * - * Using %NULL for @name unsets the icon title; further calls to - * gdk_surface_set_title() will again update the icon title as well. - * - * Note that some platforms don't support surface icons. - **/ -void -gdk_surface_set_icon_name (GdkSurface *surface, - const gchar *name) -{ - GDK_SURFACE_GET_CLASS (surface)->set_icon_name (surface, name); -} - /** * gdk_surface_minimize: * @surface: a toplevel #GdkSurface diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h index 25e0dfa1ac..951341782b 100644 --- a/gdk/gdksurface.h +++ b/gdk/gdksurface.h @@ -387,16 +387,6 @@ gboolean gdk_surface_is_viewable (GdkSurface *surface); GDK_AVAILABLE_IN_ALL gboolean gdk_surface_get_mapped (GdkSurface *surface); -GDK_AVAILABLE_IN_ALL -void gdk_surface_set_title (GdkSurface *surface, - const gchar *title); -GDK_AVAILABLE_IN_ALL -void gdk_surface_set_startup_id (GdkSurface *surface, - const gchar *startup_id); -GDK_AVAILABLE_IN_ALL -void gdk_surface_set_transient_for (GdkSurface *surface, - GdkSurface *parent); - GDK_AVAILABLE_IN_ALL void gdk_surface_set_cursor (GdkSurface *surface, GdkCursor *cursor); @@ -429,12 +419,6 @@ void gdk_surface_get_device_position (GdkSurface *surface, double *y, GdkModifierType *mask); GDK_AVAILABLE_IN_ALL -void gdk_surface_set_icon_list (GdkSurface *surface, - GList *surfaces); -GDK_AVAILABLE_IN_ALL -void gdk_surface_set_icon_name (GdkSurface *surface, - const gchar *name); -GDK_AVAILABLE_IN_ALL void gdk_surface_set_decorations (GdkSurface *surface, GdkWMDecoration decorations); GDK_AVAILABLE_IN_ALL