[gtk/window-destroy: 72/74] window: Remove _set_has_user_ref_count
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/window-destroy: 72/74] window: Remove _set_has_user_ref_count
- Date: Mon, 11 May 2020 15:21:48 +0000 (UTC)
commit 887cb4218593e24c7111efcf6a32b20f2f09659a
Author: Matthias Clasen <mclasen redhat com>
Date: Sat May 9 15:55:20 2020 -0400
window: Remove _set_has_user_ref_count
docs/reference/gtk/gtk4-sections.txt | 1 -
gtk/gtkwindow.c | 26 --------------------------
gtk/gtkwindow.h | 3 ---
3 files changed, 30 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 9f1f4acbed..8ae806dae1 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4245,7 +4245,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 4be18552ab..c469ceb7d0 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -218,7 +218,6 @@ typedef struct
guint deletable : 1;
guint destroy_with_parent : 1;
guint fullscreen_initially : 1;
- guint has_user_ref_count : 1;
guint minimize_initially : 1;
guint is_active : 1;
guint maximize_initially : 1;
@@ -1554,7 +1553,6 @@ gtk_window_init (GtkWindow *window)
priv->initial_fullscreen_monitor = NULL;
g_object_ref_sink (window);
- priv->has_user_ref_count = TRUE;
#ifdef GDK_WINDOWING_X11
g_signal_connect (gtk_settings_get_for_display (priv->display),
@@ -6867,30 +6865,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 8a94876c95..b64c11ee7e 100644
--- a/gtk/gtkwindow.h
+++ b/gtk/gtkwindow.h
@@ -180,9 +180,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_present (GtkWindow *window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]