[gtk/grab-leftovers] Drop gtk_widget_has_grab



commit b2deab6adffa07170e0e18f5c7396cd828ed4bf9
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Apr 23 13:23:24 2020 -0400

    Drop gtk_widget_has_grab
    
    This was just a leftover in our public api.
    All other grab-related apis are gone.

 docs/reference/gtk/gtk4-sections.txt |  1 -
 gtk/gtkwidget.c                      | 10 +++++-----
 gtk/gtkwidget.h                      |  3 ---
 gtk/gtkwidgetprivate.h               |  1 +
 4 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 5e372b3a28..42a1f9b114 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4070,7 +4070,6 @@ gtk_widget_get_state_flags
 gtk_widget_has_default
 gtk_widget_has_focus
 gtk_widget_has_visible_focus
-gtk_widget_has_grab
 gtk_widget_is_drawable
 gtk_widget_set_receives_default
 gtk_widget_get_receives_default
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 74b8b46ee8..da4f588f19 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -5093,10 +5093,10 @@ gtk_widget_has_focus (GtkWidget *widget)
  * @widget: a #GtkWidget
  *
  * Determines if the widget should show a visible indication that
- * it has the global input focus. This is a convenience function for
- * use in ::draw handlers that takes into account whether focus
- * indication should currently be shown in the toplevel window of
- * @widget. See gtk_window_get_focus_visible() for more information
+ * it has the global input focus. This is a convenience function
+ * that takes into account whether focus indication should currently
+ * be shown in the toplevel window of @widget.
+ * See gtk_window_get_focus_visible() for more information
  * about focus indication.
  *
  * To find out if the widget has the global input focus, use
@@ -5281,7 +5281,7 @@ gtk_widget_get_receives_default (GtkWidget *widget)
   return priv->receives_default;
 }
 
-/**
+/*< private >
  * gtk_widget_has_grab:
  * @widget: a #GtkWidget
  *
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index c43049961b..631547484f 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -437,9 +437,6 @@ void      gtk_widget_set_receives_default (GtkWidget           *widget,
 GDK_AVAILABLE_IN_ALL
 gboolean  gtk_widget_get_receives_default (GtkWidget           *widget);
 
-GDK_AVAILABLE_IN_ALL
-gboolean   gtk_widget_has_grab            (GtkWidget           *widget);
-
 GDK_AVAILABLE_IN_ALL
 gboolean   gtk_widget_device_is_shadowed  (GtkWidget           *widget,
                                            GdkDevice           *device);
diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h
index ad7cece066..5085353525 100644
--- a/gtk/gtkwidgetprivate.h
+++ b/gtk/gtkwidgetprivate.h
@@ -244,6 +244,7 @@ void              _gtk_widget_set_has_default              (GtkWidget *widget,
 void              _gtk_widget_set_has_grab                 (GtkWidget *widget,
                                                             gboolean   has_grab);
 
+gboolean          gtk_widget_has_grab                      (GtkWidget *widget);
 void              _gtk_widget_grab_notify                  (GtkWidget *widget,
                                                             gboolean   was_grabbed);
 


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