[gtk/wip/matthiasc/popup5: 115/145] Drop gtk_widget_is_toplevel



commit 0f669ced4a53376d1d8234534737c6e3adaa9b37
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon May 20 03:53:43 2019 +0000

    Drop gtk_widget_is_toplevel
    
    No longer used.

 docs/reference/gtk/gtk4-sections.txt |  1 -
 gtk/gtkwidget.c                      | 20 --------------------
 gtk/gtkwidget.h                      |  2 --
 gtk/gtkwidgetprivate.h               |  6 ------
 4 files changed, 29 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 9ebb6fb53a..d2e385604b 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4527,7 +4527,6 @@ gtk_widget_has_focus
 gtk_widget_has_visible_focus
 gtk_widget_has_grab
 gtk_widget_is_drawable
-gtk_widget_is_toplevel
 gtk_widget_set_receives_default
 gtk_widget_get_receives_default
 gtk_widget_set_support_multidevice
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 5c8db1726e..ce6bee16f4 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -6169,26 +6169,6 @@ gtk_widget_is_visible (GtkWidget *widget)
   return TRUE;
 }
 
-/**
- * gtk_widget_is_toplevel:
- * @widget: a #GtkWidget
- *
- * Determines whether @widget is a toplevel widget.
- *
- * Currently only #GtkWindows are toplevel widgets.
- * Toplevel widgets have no parent widget and implement
- * the #GtkRoot interface.
- *
- * Returns: %TRUE if @widget is a toplevel, %FALSE otherwise
- **/
-gboolean
-gtk_widget_is_toplevel (GtkWidget *widget)
-{
-  g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
-
-  return GTK_IS_ROOT (widget);
-}
-
 /**
  * gtk_widget_is_drawable:
  * @widget: a #GtkWidget
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 7ef819b8a1..f456393e85 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -525,8 +525,6 @@ gboolean              gtk_widget_get_visible            (GtkWidget    *widget);
 GDK_AVAILABLE_IN_ALL
 gboolean              gtk_widget_is_visible             (GtkWidget    *widget);
 
-GDK_AVAILABLE_IN_ALL
-gboolean              gtk_widget_is_toplevel            (GtkWidget    *widget);
 GDK_AVAILABLE_IN_ALL
 gboolean              gtk_widget_is_drawable            (GtkWidget    *widget);
 GDK_AVAILABLE_IN_ALL
diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h
index 0f111ca805..f67b24ab85 100644
--- a/gtk/gtkwidgetprivate.h
+++ b/gtk/gtkwidgetprivate.h
@@ -406,12 +406,6 @@ _gtk_widget_get_realized (GtkWidget *widget)
   return widget->priv->realized;
 }
 
-static inline gboolean
-_gtk_widget_is_toplevel (GtkWidget *widget)
-{
-  return GTK_IS_ROOT (widget);
-}
-
 static inline GtkStateFlags
 _gtk_widget_get_state_flags (GtkWidget *widget)
 {


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