[gnome-builder/wip/gtk4-port: 447/1774] libide/gui: give access to headerbar with internal-child
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 447/1774] libide/gui: give access to headerbar with internal-child
- Date: Mon, 11 Jul 2022 22:31:12 +0000 (UTC)
commit bd832286ac1bfd5cfd3a524bb362b35d35dd7b9d
Author: Christian Hergert <chergert redhat com>
Date: Wed Apr 6 18:12:42 2022 -0700
libide/gui: give access to headerbar with internal-child
src/libide/gui/ide-header-bar.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
---
diff --git a/src/libide/gui/ide-header-bar.c b/src/libide/gui/ide-header-bar.c
index a0b320554..10bfbb885 100644
--- a/src/libide/gui/ide-header-bar.c
+++ b/src/libide/gui/ide-header-bar.c
@@ -279,12 +279,27 @@ failure:
}
+static GObject *
+ide_header_bar_get_internal_child (GtkBuildable *buildable,
+ GtkBuilder *builder,
+ const char *name)
+{
+ IdeHeaderBar *self = (IdeHeaderBar *)buildable;
+ IdeHeaderBarPrivate *priv = ide_header_bar_get_instance_private (self);
+
+ if (g_strcmp0 (name, "headerbar") == 0)
+ return G_OBJECT (priv->header_bar);
+
+ return buildable_parent_iface->get_internal_child (buildable, builder, name);
+}
+
static void
buildable_iface_init (GtkBuildableIface *iface)
{
buildable_parent_iface = g_type_interface_peek_parent (iface);
iface->add_child = ide_header_bar_add_child;
+ iface->get_internal_child = ide_header_bar_get_internal_child;
}
#define GET_PRIORITY(w) GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w),"PRIORITY"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]