diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2008-03-22 17:53:42 +0000 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2008-03-22 17:53:42 +0000 |
commit | 2034ab8642d0bdaa9ace9baffeb5ea83389b73c9 (patch) | |
tree | 2490fdd307b60547f3d11c03cf6a177749630baf /gtk/gtkentrycompletion.c | |
parent | a04b79df4330685014c8036afe96cba63dbe7197 (diff) | |
download | gtk+-2034ab8642d0bdaa9ace9baffeb5ea83389b73c9.tar.gz |
New function implements GtkCellLayoutClass::get_cells. (#523787)
2008-03-22 Matthew Barnes <mbarnes@redhat.com>
* gtk/gtkentrycompletion.c (gtk_entry_completion_get_cells):
New function implements GtkCellLayoutClass::get_cells. (#523787)
svn path=/trunk/; revision=19923
Diffstat (limited to 'gtk/gtkentrycompletion.c')
-rw-r--r-- | gtk/gtkentrycompletion.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c index cc01b1e3df..ed1d3c1fe3 100644 --- a/gtk/gtkentrycompletion.c +++ b/gtk/gtkentrycompletion.c @@ -98,6 +98,7 @@ static void gtk_entry_completion_clear_attributes (GtkCellLayout static void gtk_entry_completion_reorder (GtkCellLayout *cell_layout, GtkCellRenderer *cell, gint position); +static GList * gtk_entry_completion_get_cells (GtkCellLayout *cell_layout); static gboolean gtk_entry_completion_visible_func (GtkTreeModel *model, GtkTreeIter *iter, @@ -410,6 +411,7 @@ gtk_entry_completion_cell_layout_init (GtkCellLayoutIface *iface) iface->set_cell_data_func = gtk_entry_completion_set_cell_data_func; iface->clear_attributes = gtk_entry_completion_clear_attributes; iface->reorder = gtk_entry_completion_reorder; + iface->get_cells = gtk_entry_completion_get_cells; } static void @@ -747,6 +749,16 @@ gtk_entry_completion_reorder (GtkCellLayout *cell_layout, gtk_cell_layout_reorder (GTK_CELL_LAYOUT (priv->column), cell, position); } +static GList * +gtk_entry_completion_get_cells (GtkCellLayout *cell_layout) +{ + GtkEntryCompletionPrivate *priv; + + priv = GTK_ENTRY_COMPLETION_GET_PRIVATE (cell_layout); + + return gtk_tree_view_column_get_cell_renderers (priv->column); +} + /* all those callbacks */ static gboolean gtk_entry_completion_default_completion_func (GtkEntryCompletion *completion, |