[gtk/wip/ebassi/shortcut: 200/203] Bring back gtk_widget_buildable_custom_tag_end



commit 50421495647afe0ae80417c652723e51c48385a8
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 9 15:26:28 2020 -0500

    Bring back gtk_widget_buildable_custom_tag_end
    
    Buildable implementations assume tha they can chain
    up. Removing the default implementation break that

 gtk/gtkwidget.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index f8b2b15d0e..61edb7e121 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -673,6 +673,11 @@ static gboolean         gtk_widget_buildable_custom_tag_start   (GtkBuildable
                                                                  const gchar        *tagname,
                                                                  GtkBuildableParser *parser,
                                                                  gpointer           *data);
+static void             gtk_widget_buildable_custom_tag_end     (GtkBuildable       *buildable,
+                                                                 GtkBuilder         *builder,
+                                                                 GObject            *child,
+                                                                 const gchar        *tagname,
+                                                                 gpointer            data);
 static void             gtk_widget_buildable_custom_finished    (GtkBuildable       *buildable,
                                                                  GtkBuilder         *builder,
                                                                  GObject            *child,
@@ -8802,6 +8807,7 @@ gtk_widget_buildable_interface_init (GtkBuildableIface *iface)
   iface->get_internal_child = gtk_widget_buildable_get_internal_child;
   iface->parser_finished = gtk_widget_buildable_parser_finished;
   iface->custom_tag_start = gtk_widget_buildable_custom_tag_start;
+  iface->custom_tag_end = gtk_widget_buildable_custom_tag_end;
   iface->custom_finished = gtk_widget_buildable_custom_finished;
   iface->add_child = gtk_widget_buildable_add_child;
 }
@@ -9345,6 +9351,15 @@ gtk_widget_buildable_custom_tag_start (GtkBuildable       *buildable,
   return FALSE;
 }
 
+static void
+gtk_widget_buildable_custom_tag_end (GtkBuildable  *buildable,
+                                     GtkBuilder    *builder,
+                                     GObject       *child,
+                                     const gchar   *tagname,
+                                     gpointer       data)
+{
+}
+
 static void
 gtk_widget_buildable_finish_layout_properties (GtkWidget *widget,
                                                GtkWidget *parent,


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