diff options
author | Kristian Rietveld <kris@gtk.org> | 2003-10-01 20:51:54 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2003-10-01 20:51:54 +0000 |
commit | 40743e126f21360608c52beef4bd7f5ca9bbfdb1 (patch) | |
tree | 2c463709dae7c1f2dfaa225ed587dabff421a59f /gtk/gtkcomboboxentry.c | |
parent | c0addc2e40c1d494aa587d6b4268bd03675c4483 (diff) | |
download | gtk+-40743e126f21360608c52beef4bd7f5ca9bbfdb1.tar.gz |
implement the GtkCellLayout interface, drop packing/attribute/cell data
Wed Oct 1 22:43:40 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcellview.[ch]: implement the GtkCellLayout interface, drop
packing/attribute/cell data functions from the header,
(gtk_cell_view_set_cell_data): added support for cell data funcs.
* gtk/gtkcombobox.[ch]: implement the GtkCellLayout interface, drop
packing/attribute/cell data functions from the header, implemented
cell data func support.
* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new): updated
for the move to GtkCellLayout.
* tests/testcombo.c (create_combo_box_grid_demo), (main): ditto.
Diffstat (limited to 'gtk/gtkcomboboxentry.c')
-rw-r--r-- | gtk/gtkcomboboxentry.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk/gtkcomboboxentry.c b/gtk/gtkcomboboxentry.c index 7bba0e11b3..d2e907e6fa 100644 --- a/gtk/gtkcomboboxentry.c +++ b/gtk/gtkcomboboxentry.c @@ -18,6 +18,7 @@ */ #include <gtk/gtkcomboboxentry.h> +#include <gtk/gtkcelllayout.h> #include <gtk/gtkentry.h> #include <gtk/gtkcellrenderertext.h> @@ -156,10 +157,10 @@ gtk_combo_box_entry_new (GtkTreeModel *model, GTK_COMBO_BOX_ENTRY (ret)->priv->text_column = text_column; renderer = gtk_cell_renderer_text_new (); - gtk_combo_box_pack_start (GTK_COMBO_BOX (ret), renderer, TRUE); - gtk_combo_box_set_attributes (GTK_COMBO_BOX (ret), renderer, - "text", text_column, - NULL); + gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (ret), renderer, TRUE); + gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (ret), renderer, + "text", text_column, + NULL); g_signal_connect (GTK_COMBO_BOX_ENTRY (ret)->priv->entry, "changed", G_CALLBACK (gtk_combo_box_entry_contents_changed), ret); |