[gtk+] window: Remove resize grip API



commit 7fa4ac08ea524107031b4963572ef4cbfbade300
Author: Timm Bäder <mail baedert org>
Date:   Tue Oct 4 10:30:57 2016 +0200

    window: Remove resize grip API

 docs/reference/gtk/gtk4-sections.txt |    4 -
 gtk/gtkwindow.c                      |  135 ----------------------------------
 gtk/gtkwindow.h                      |   14 ----
 3 files changed, 0 insertions(+), 153 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 4754d99..a783f58 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -5669,10 +5669,6 @@ gtk_window_get_mnemonics_visible
 gtk_window_set_mnemonics_visible
 gtk_window_get_focus_visible
 gtk_window_set_focus_visible
-gtk_window_set_has_resize_grip
-gtk_window_get_has_resize_grip
-gtk_window_resize_grip_is_visible
-gtk_window_get_resize_grip_area
 gtk_window_get_application
 gtk_window_set_application
 gtk_window_set_has_user_ref_count
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index a943b4a..022b331 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -314,8 +314,6 @@ enum {
   PROP_GRAVITY,
   PROP_TRANSIENT_FOR,
   PROP_ATTACHED_TO,
-  PROP_HAS_RESIZE_GRIP,
-  PROP_RESIZE_GRIP_VISIBLE,
   PROP_APPLICATION,
   /* Readonly properties */
   PROP_IS_ACTIVE,
@@ -980,43 +978,6 @@ gtk_window_class_init (GtkWindowClass *klass)
                             GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
 
   /**
-   * GtkWindow:has-resize-grip:
-   *
-   * Whether the window has a corner resize grip.
-   *
-   * Note that the resize grip is only shown if the window is
-   * actually resizable and not maximized. Use
-   * #GtkWindow:resize-grip-visible to find out if the resize
-   * grip is currently shown.
-   *
-   * Deprecated: 3.14: Resize grips have been removed.
-   *
-   * Since: 3.0
-   */
-  window_props[PROP_HAS_RESIZE_GRIP] =
-      g_param_spec_boolean ("has-resize-grip",
-                            P_("Resize grip"),
-                            P_("Specifies whether the window should have a resize grip"),
-                            FALSE,
-                            GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY|G_PARAM_DEPRECATED);
-
-  /**
-   * GtkWindow:resize-grip-visible:
-   *
-   * Whether a corner resize grip is currently shown.
-   *
-   * Deprecated: 3.14: Resize grips have been removed.
-   *
-   * Since: 3.0
-   */
-  window_props[PROP_RESIZE_GRIP_VISIBLE] =
-      g_param_spec_boolean ("resize-grip-visible",
-                            P_("Resize grip is visible"),
-                            P_("Specifies whether the window's resize grip is visible."),
-                            FALSE,
-                            GTK_PARAM_READABLE|G_PARAM_DEPRECATED);
-
-  /**
    * GtkWindow:gravity:
    *
    * The window gravity of the window. See gtk_window_move() and #GdkGravity for
@@ -1830,9 +1791,6 @@ gtk_window_set_property (GObject      *object,
     case PROP_ATTACHED_TO:
       gtk_window_set_attached_to (window, g_value_get_object (value));
       break;
-    case PROP_HAS_RESIZE_GRIP:
-      /* Do nothing. */
-      break;
     case PROP_APPLICATION:
       gtk_window_set_application (window, g_value_get_object (value));
       break;
@@ -1951,12 +1909,6 @@ gtk_window_get_property (GObject      *object,
     case PROP_ATTACHED_TO:
       g_value_set_object (value, gtk_window_get_attached_to (window));
       break;
-    case PROP_HAS_RESIZE_GRIP:
-      g_value_set_boolean (value, FALSE);
-      break;
-    case PROP_RESIZE_GRIP_VISIBLE:
-      g_value_set_boolean (value, FALSE);
-      break;
     case PROP_APPLICATION:
       g_value_set_object (value, gtk_window_get_application (window));
       break;
@@ -7610,93 +7562,6 @@ gtk_window_state_event (GtkWidget           *widget,
   return FALSE;
 }
 
-/**
- * gtk_window_set_has_resize_grip:
- * @window: a #GtkWindow
- * @value: %TRUE to allow a resize grip
- *
- * Sets whether @window has a corner resize grip.
- *
- * Note that the resize grip is only shown if the window
- * is actually resizable and not maximized. Use
- * gtk_window_resize_grip_is_visible() to find out if the
- * resize grip is currently shown.
- *
- * Since: 3.0
- *
- * Deprecated: 3.14: Resize grips have been removed.
- */
-void
-gtk_window_set_has_resize_grip (GtkWindow *window,
-                                gboolean   value)
-{
-  g_return_if_fail (GTK_IS_WINDOW (window));
-}
-
-/**
- * gtk_window_resize_grip_is_visible:
- * @window: a #GtkWindow
- *
- * Determines whether a resize grip is visible for the specified window.
- *
- * Returns: %TRUE if a resize grip exists and is visible
- *
- * Since: 3.0
- *
- * Deprecated: 3.14: Resize grips have been removed.
- */
-gboolean
-gtk_window_resize_grip_is_visible (GtkWindow *window)
-{
-  g_return_val_if_fail (GTK_IS_WINDOW (window), FALSE);
-
-  return FALSE;
-}
-
-/**
- * gtk_window_get_has_resize_grip:
- * @window: a #GtkWindow
- *
- * Determines whether the window may have a resize grip.
- *
- * Returns: %TRUE if the window has a resize grip
- *
- * Since: 3.0
- *
- * Deprecated: 3.14: Resize grips have been removed.
- */
-gboolean
-gtk_window_get_has_resize_grip (GtkWindow *window)
-
-{
-  g_return_val_if_fail (GTK_IS_WINDOW (window), FALSE);
-
-  return FALSE;
-}
-
-/**
- * gtk_window_get_resize_grip_area:
- * @window: a #GtkWindow
- * @rect: (out): a pointer to a #GdkRectangle which we should store
- *     the resize grip area
- *
- * If a window has a resize grip, this will retrieve the grip
- * position, width and height into the specified #GdkRectangle.
- *
- * Returns: %TRUE if the resize grip’s area was retrieved
- *
- * Since: 3.0
- *
- * Deprecated: 3.14: Resize grips have been removed.
- */
-gboolean
-gtk_window_get_resize_grip_area (GtkWindow    *window,
-                                 GdkRectangle *rect)
-{
-  g_return_val_if_fail (GTK_IS_WINDOW (window), FALSE);
-
-  return FALSE;
-}
 
 /* the accel_key and accel_mods fields of the key have to be setup
  * upon calling this function. it’ll then return whether that key
diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h
index 1f1197a..a57d518 100644
--- a/gtk/gtkwindow.h
+++ b/gtk/gtkwindow.h
@@ -448,20 +448,6 @@ GDK_AVAILABLE_IN_ALL
 void            gtk_window_set_application      (GtkWindow          *window,
                                                  GtkApplication     *application);
 
-
-/* Window grips
- */
-GDK_DEPRECATED_IN_3_14
-void     gtk_window_set_has_resize_grip    (GtkWindow    *window,
-                                            gboolean      value);
-GDK_DEPRECATED_IN_3_14
-gboolean gtk_window_get_has_resize_grip    (GtkWindow    *window);
-GDK_DEPRECATED_IN_3_14
-gboolean gtk_window_resize_grip_is_visible (GtkWindow    *window);
-GDK_DEPRECATED_IN_3_14
-gboolean gtk_window_get_resize_grip_area   (GtkWindow    *window,
-                                            GdkRectangle *rect);
-
 GDK_AVAILABLE_IN_3_10
 void     gtk_window_set_titlebar           (GtkWindow    *window,
                                             GtkWidget    *titlebar);


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