[gtk+/combo-refactor: 45/48] Fixing GtkCellView to not strcmp() in buildable_custom_tag_end()
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/combo-refactor: 45/48] Fixing GtkCellView to not strcmp() in buildable_custom_tag_end()
- Date: Tue, 7 Dec 2010 08:05:10 +0000 (UTC)
commit f3b7643a5a3dbdc0da27a97b91427a6605130f1d
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sat Dec 4 17:14:32 2010 +0900
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 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index 0bea37a..88a677b 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]