[gtk+/combo-refactor] Fixed GtkComboBox to let the cell-layout implementation handle <cell-packing>



commit a41d15be9fa709e23da983949e3652cd553bf091
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Mon Dec 13 19:24:51 2010 +0900

    Fixed GtkComboBox to let the cell-layout implementation handle <cell-packing>

 gtk/gtkcombobox.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 5d8f208..a22ca2b 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -5166,12 +5166,8 @@ gtk_combo_box_buildable_custom_tag_end (GtkBuildable *buildable,
 					const gchar  *tagname,
 					gpointer     *data)
 {
-  if (strcmp (tagname, "attributes") == 0)
-    _gtk_cell_layout_buildable_custom_tag_end (buildable, builder, child, tagname,
-					       data);
-  else
-    parent_buildable_iface->custom_tag_end (buildable, builder, child, tagname,
-					    data);
+  if (!_gtk_cell_layout_buildable_custom_tag_end (buildable, builder, child, tagname, data))
+    parent_buildable_iface->custom_tag_end (buildable, builder, child, tagname, data);
 }
 
 static GObject *



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