[gtk+/treeview-refactor] Fixing GtkTreeViewColumn to use the new _gtk_cell_layout_buildable_custom_tag_end correctly.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/treeview-refactor] Fixing GtkTreeViewColumn to use the new _gtk_cell_layout_buildable_custom_tag_end correctly.
- Date: Sat, 4 Dec 2010 08:05:37 +0000 (UTC)
commit 9c7e00f744e571393a25bb0a939b6df16507ed17
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sat Dec 4 17:10:31 2010 +0900
Fixing GtkTreeViewColumn to use the new _gtk_cell_layout_buildable_custom_tag_end correctly.
gtk/gtkentrycompletion.c | 4 ++--
gtk/gtktreeviewcolumn.c | 13 ++++++++++++-
2 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index 922e84e..8d21b64 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -399,7 +399,7 @@ gtk_entry_completion_class_init (GtkEntryCompletionClass *klass)
static void
-_gtk_entry_completion_buildable_custom_tag_end (GtkBuildable *buildable,
+gtk_entry_completion_buildable_custom_tag_end (GtkBuildable *buildable,
GtkBuilder *builder,
GObject *child,
const gchar *tagname,
@@ -414,7 +414,7 @@ gtk_entry_completion_buildable_init (GtkBuildableIface *iface)
{
iface->add_child = _gtk_cell_layout_buildable_add_child;
iface->custom_tag_start = _gtk_cell_layout_buildable_custom_tag_start;
- iface->custom_tag_end = _gtk_entry_completion_buildable_custom_tag_end;
+ iface->custom_tag_end = gtk_entry_completion_buildable_custom_tag_end;
}
static void
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index ed3ac96..f49e8fa 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -360,11 +360,22 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
}
static void
+gtk_tree_view_column_custom_tag_end (GtkBuildable *buildable,
+ GtkBuilder *builder,
+ GObject *child,
+ const gchar *tagname,
+ gpointer *data)
+{
+ /* Just ignore the boolean return from here */
+ _gtk_cell_layout_buildable_custom_tag_end (buildable, builder, child, tagname, data);
+}
+
+static void
gtk_tree_view_column_buildable_init (GtkBuildableIface *iface)
{
iface->add_child = _gtk_cell_layout_buildable_add_child;
iface->custom_tag_start = _gtk_cell_layout_buildable_custom_tag_start;
- iface->custom_tag_end = _gtk_cell_layout_buildable_custom_tag_end;
+ iface->custom_tag_end = gtk_tree_view_column_custom_tag_end;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]