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



commit 0ca2fc3e35ac9cc507a74f413c4de01c8d3f4986
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 c558b3c2f9..5f6760111c 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -8694,30 +8694,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]