diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-11-27 04:38:17 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-12-04 22:06:02 -0500 |
commit | d351b40a0bd9ee247c5f64858c377378a1eccdbe (patch) | |
tree | 281f93a2ae04b4df90337d7c1fded6c633bfe8f9 /gtk/gtkcombobox.c | |
parent | 5fdc140dd8f86bdcd25ec6b596b6c92ddfe661ed (diff) | |
download | gtk+-d351b40a0bd9ee247c5f64858c377378a1eccdbe.tar.gz |
Add internal accessor for GtkEntry->is_cell_renderer
This fixes commit fb3429e5072508570d78dcc7cccb6ef425586bb2
Diffstat (limited to 'gtk/gtkcombobox.c')
-rw-r--r-- | gtk/gtkcombobox.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index 0cf07377b0..4775fe930d 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -50,6 +50,7 @@ #include "gtkmarshalers.h" #include "gtkintl.h" +#include "gtkentryprivate.h" #include "gtktreeprivate.h" @@ -1495,6 +1496,10 @@ gtk_combo_box_add (GtkContainer *container, if (priv->has_entry) { + /* this flag is a hack to tell the entry to fill its allocation. + */ + _gtk_entry_set_is_cell_renderer (GTK_ENTRY (widget), TRUE); + g_signal_connect (widget, "changed", G_CALLBACK (gtk_combo_box_entry_contents_changed), combo_box); @@ -1522,6 +1527,7 @@ gtk_combo_box_remove (GtkContainer *container, g_signal_handlers_disconnect_by_func (widget, gtk_combo_box_entry_contents_changed, container); + _gtk_entry_set_is_cell_renderer (GTK_ENTRY (widget), FALSE); } } |