summaryrefslogtreecommitdiff
path: root/gtk/gtkcellview.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-12-04 17:14:32 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2011-01-04 23:37:11 +0900
commit0c9c0319622a8052ab310080ac446b60a26285b2 (patch)
treecec5b524dc7e2826982d130236bd2157da24f097 /gtk/gtkcellview.c
parent85609d124a69ae3be89e50202481beee46ee08bc (diff)
downloadgtk+-0c9c0319622a8052ab310080ac446b60a26285b2.tar.gz
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.
Diffstat (limited to 'gtk/gtkcellview.c')
-rw-r--r--gtk/gtkcellview.c6
1 files changed, 3 insertions, 3 deletions
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);