From 0c9c0319622a8052ab310080ac446b60a26285b2 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Sat, 4 Dec 2010 17:14:32 +0900 Subject: Fixing GtkCellView to not strcmp() in buildable_custom_tag_end() GtkCellLayout function now returns boolean if one of the tags it was interested in was handled. --- gtk/gtkcellview.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk/gtkcellview.c') diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c index a63b7f5ba8..402fb48dbb 100644 --- a/gtk/gtkcellview.c +++ b/gtk/gtkcellview.c @@ -832,9 +832,9 @@ gtk_cell_view_buildable_custom_tag_end (GtkBuildable *buildable, const gchar *tagname, gpointer *data) { - if (strcmp (tagname, "attributes") == 0 || strcmp (tagname, "cell-packing") == 0) - _gtk_cell_layout_buildable_custom_tag_end (buildable, builder, child, tagname, - data); + if (_gtk_cell_layout_buildable_custom_tag_end (buildable, builder, child, tagname, + data)) + return; else if (parent_buildable_iface->custom_tag_end) parent_buildable_iface->custom_tag_end (buildable, builder, child, tagname, data); -- cgit v1.2.1