[gtk/wip/baedert/for-master: 38/38] window: Remove public user_ref_count API



commit c7114cb4f4fe65986fca76645f90784dec2fe8e0
Author: Timm Bäder <mail baedert org>
Date:   Wed Feb 5 16:15:08 2020 +0100

    window: Remove public user_ref_count API

 gtk/gtkwindow.c | 24 ------------------------
 gtk/gtkwindow.h |  4 ----
 2 files changed, 28 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 7a980dc5f3..a243cfdf59 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -8480,30 +8480,6 @@ gtk_window_set_focus_visible (GtkWindow *window,
     }
 }
 
-/**
- * gtk_window_set_has_user_ref_count:
- * @window: a #GtkWindow
- * @setting: the new value
- *
- * Tells GTK+ whether to drop its extra reference to the window
- * when gtk_widget_destroy() is called.
- *
- * This function is only exported for the benefit of language
- * bindings which may need to keep the window alive until their
- * wrapper object is garbage collected. There is no justification
- * for ever calling this function in an application.
- */
-void
-gtk_window_set_has_user_ref_count (GtkWindow *window,
-                                   gboolean   setting)
-{
-  GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
-
-  g_return_if_fail (GTK_IS_WINDOW (window));
-
-  priv->has_user_ref_count = setting;
-}
-
 static void
 ensure_state_flag_backdrop (GtkWidget *widget)
 {
diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h
index 3776bfd137..78802a5a95 100644
--- a/gtk/gtkwindow.h
+++ b/gtk/gtkwindow.h
@@ -231,10 +231,6 @@ GDK_AVAILABLE_IN_ALL
 GListModel *gtk_window_get_toplevels (void);
 GDK_AVAILABLE_IN_ALL
 GList*     gtk_window_list_toplevels (void);
-GDK_AVAILABLE_IN_ALL
-void       gtk_window_set_has_user_ref_count (GtkWindow *window,
-                                              gboolean   setting);
-
 GDK_AVAILABLE_IN_ALL
 void     gtk_window_add_mnemonic          (GtkWindow       *window,
                                           guint            keyval,


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