diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-05-02 16:16:05 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-05-02 16:17:33 -0400 |
commit | caacab13e96f3d79a197ad93195b5b30f6775c9e (patch) | |
tree | ad7ed6e5b8cfac287f29fb9c01a1cf9c3b82ae30 | |
parent | e0a741c8ee76b674d6d1cefb60e1e31deeadfbd8 (diff) | |
download | gtk+-caacab13e96f3d79a197ad93195b5b30f6775c9e.tar.gz |
Remove the gdk backend API too
The GTK+ level API for this is already gone.
-rw-r--r-- | gdk/x11/gdkwindow-x11.c | 43 | ||||
-rw-r--r-- | gdk/x11/gdkx11window.h | 3 |
2 files changed, 0 insertions, 46 deletions
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index 87330dfe74..2bf01f7ee6 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -3050,49 +3050,6 @@ gdk_x11_window_set_utf8_property (GdkWindow *window, } } -/** - * gdk_x11_window_set_hide_titlebar_when_maximized: - * @window: (type GdkX11Window): a #GdkWindow - * @hide_titlebar_when_maximized: whether to hide the titlebar when - * maximized - * - * Set a hint for the window manager, requesting that the titlebar - * should be hidden when the window is maximized. - * - * Note that this property is automatically updated by GTK+, so this - * function should only be used by applications which do not use GTK+ - * to create toplevel windows. - * - * Since: 3.4 - */ -void -gdk_x11_window_set_hide_titlebar_when_maximized (GdkWindow *window, - gboolean hide_titlebar_when_maximized) -{ - GdkDisplay *display; - - if (!WINDOW_IS_TOPLEVEL (window)) - return; - - display = gdk_window_get_display (window); - - if (hide_titlebar_when_maximized) - { - gulong hide = 1; - XChangeProperty (GDK_DISPLAY_XDISPLAY (display), - GDK_WINDOW_XID (window), - gdk_x11_get_xatom_by_name_for_display (display, "_GTK_HIDE_TITLEBAR_WHEN_MAXIMIZED"), - XA_CARDINAL, 32, - PropModeReplace, (guchar *)&hide, 1); - } - else - { - XDeleteProperty (GDK_DISPLAY_XDISPLAY (display), - GDK_WINDOW_XID (window), - gdk_x11_get_xatom_by_name_for_display (display, "_GTK_HIDE_TITLEBAR_WHEN_MAXIMIZED")); - } -} - static void gdk_x11_window_set_shadow_width (GdkWindow *window, int left, diff --git a/gdk/x11/gdkx11window.h b/gdk/x11/gdkx11window.h index b4fac2ff90..8257941a52 100644 --- a/gdk/x11/gdkx11window.h +++ b/gdk/x11/gdkx11window.h @@ -71,9 +71,6 @@ void gdk_x11_window_set_frame_extents (GdkWindow *window, int right, int top, int bottom); -GDK_AVAILABLE_IN_3_4 -void gdk_x11_window_set_hide_titlebar_when_maximized (GdkWindow *window, - gboolean hide_titlebar_when_maximized); GDK_AVAILABLE_IN_ALL void gdk_x11_window_move_to_current_desktop (GdkWindow *window); |