[gtk+/wip/baedert/gtk-widget-destroy: 147/149] GtkWindow: Remove _set_has_user_ref_count



commit 4dee7989cf0341d31ed3cf936ab55b19ba9ca621
Author: Timm Bäder <mail baedert org>
Date:   Wed Sep 27 15:37:32 2017 +0200

    GtkWindow: Remove _set_has_user_ref_count

 docs/reference/gtk/gtk4-sections.txt |    1 -
 gtk/gtkwindow.c                      |   26 --------------------------
 gtk/gtkwindow.h                      |    3 ---
 3 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 3519e89..43acd90 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4816,7 +4816,6 @@ gtk_window_get_focus_visible
 gtk_window_set_focus_visible
 gtk_window_get_application
 gtk_window_set_application
-gtk_window_set_has_user_ref_count
 gtk_window_set_titlebar
 gtk_window_get_titlebar
 gtk_window_set_interactive_debugging
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 5b59d6a..3d2da29 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -236,7 +236,6 @@ struct _GtkWindowPrivate
   guint    destroy_with_parent       : 1;
   guint    focus_on_map              : 1;
   guint    fullscreen_initially      : 1;
-  guint    has_user_ref_count        : 1;
   guint    iconify_initially         : 1; /* gtk_window_iconify() called before realization */
   guint    is_active                 : 1;
   guint    maximize_initially        : 1;
@@ -1901,7 +1900,6 @@ gtk_window_init (GtkWindow *window)
   priv->initial_fullscreen_monitor = -1;
 
   g_object_ref_sink (window);
-  priv->has_user_ref_count = TRUE;
   toplevel_list = g_slist_prepend (toplevel_list, window);
   gtk_window_update_debugging ();
 
@@ -10608,30 +10606,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_window_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.
- *
- * Since: 3.0
- */
-void
-gtk_window_set_has_user_ref_count (GtkWindow *window,
-                                   gboolean   setting)
-{
-  g_return_if_fail (GTK_IS_WINDOW (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 382aee3..a0cfaca 100644
--- a/gtk/gtkwindow.h
+++ b/gtk/gtkwindow.h
@@ -314,9 +314,6 @@ GDK_AVAILABLE_IN_ALL
 gboolean   gtk_window_get_modal      (GtkWindow *window);
 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,


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