gtk+ r19923 - in trunk: . gtk
- From: mbarnes svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r19923 - in trunk: . gtk
- Date: Sat, 22 Mar 2008 17:53:43 +0000 (GMT)
Author: mbarnes
Date: Sat Mar 22 17:53:42 2008
New Revision: 19923
URL: http://svn.gnome.org/viewvc/gtk+?rev=19923&view=rev
Log:
2008-03-22 Matthew Barnes <mbarnes redhat com>
* gtk/gtkentrycompletion.c (gtk_entry_completion_get_cells):
New function implements GtkCellLayoutClass::get_cells. (#523787)
Modified:
trunk/ChangeLog
trunk/gtk/gtkentrycompletion.c
Modified: trunk/gtk/gtkentrycompletion.c
==============================================================================
--- trunk/gtk/gtkentrycompletion.c (original)
+++ trunk/gtk/gtkentrycompletion.c Sat Mar 22 17:53:42 2008
@@ -98,6 +98,7 @@
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 @@
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_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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]