summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-09-20 00:01:24 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-09-20 00:01:24 -0400
commit0b4817a1c6d0f1de8750fc1847cca21e47ffc044 (patch)
tree48859de7ea8ebeab753b56e418ba6382a4540b93
parent7dab5322df21df9096572cf380be34de8e688b55 (diff)
downloadgtk+-0b4817a1c6d0f1de8750fc1847cca21e47ffc044.tar.gz
window: Drop some dead code
The gtk_window_set_buildable_property implementation was only used to set the unused builder_visible flag. Remove both the flag and the vfunc. This means we no longer have any set_buildable_property implementations and could eventually drop that vfunc and the support for it in GtkBuilder.
-rw-r--r--gtk/gtkwindow.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index d17d102441..a1a34359c9 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -211,7 +211,6 @@ typedef struct
*/
guint need_default_size : 1;
- guint builder_visible : 1;
guint decorated : 1;
guint deletable : 1;
guint destroy_with_parent : 1;
@@ -472,10 +471,6 @@ static void gtk_window_buildable_add_child (GtkBuildable
GtkBuilder *builder,
GObject *child,
const char *type);
-static void gtk_window_buildable_set_buildable_property (GtkBuildable *buildable,
- GtkBuilder *builder,
- const char *name,
- const GValue *value);
static void gtk_window_shortcut_manager_interface_init (GtkShortcutManagerInterface *iface);
/* GtkRoot */
@@ -1916,7 +1911,6 @@ static void
gtk_window_buildable_interface_init (GtkBuildableIface *iface)
{
parent_buildable_iface = g_type_interface_peek_parent (iface);
- iface->set_buildable_property = gtk_window_buildable_set_buildable_property;
iface->add_child = gtk_window_buildable_add_child;
}
@@ -1935,23 +1929,6 @@ gtk_window_buildable_add_child (GtkBuildable *buildable,
}
static void
-gtk_window_buildable_set_buildable_property (GtkBuildable *buildable,
- GtkBuilder *builder,
- const char *name,
- const GValue *value)
-{
- GtkWindow *window = GTK_WINDOW (buildable);
- GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
-
- if (strcmp (name, "visible") == 0 && g_value_get_boolean (value))
- priv->builder_visible = TRUE;
- else if (parent_buildable_iface->set_buildable_property)
- parent_buildable_iface->set_buildable_property (buildable, builder, name, value);
- else
- g_object_set_property (G_OBJECT (buildable), name, value);
-}
-
-static void
gtk_window_shortcut_manager_interface_init (GtkShortcutManagerInterface *iface)
{
}