[gtk+] Remove the gdk backend API too



commit caacab13e96f3d79a197ad93195b5b30f6775c9e
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue May 2 16:16:05 2017 -0400

    Remove the gdk backend API too
    
    The GTK+ level API for this is already gone.

 gdk/x11/gdkwindow-x11.c |   43 -------------------------------------------
 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 87330df..2bf01f7 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 b4fac2f..8257941 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);
 


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