[gtk+/refactor: 13/16] gtkcombobox: Do not access GtkEntry internals
- From: Javier Jardón <jjardon src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk+/refactor: 13/16] gtkcombobox: Do not access GtkEntry internals
 
- Date: Fri, 22 Oct 2010 09:39:11 +0000 (UTC)
 
commit b2e16e127346bfe0bd759f8469e496778f5076a4
Author: Javier Jardón <jjardon gnome org>
Date:   Thu Oct 21 13:39:42 2010 +0200
    gtkcombobox: Do not access GtkEntry internals
    
    It's not needed anymore
 gtk/gtkcombobox.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 69f6078..ab15f2e 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -1420,10 +1420,6 @@ 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 (widget)->is_cell_renderer = TRUE;
-
       g_signal_connect (widget, "changed",
 			G_CALLBACK (gtk_combo_box_entry_contents_changed),
 			combo_box);
@@ -1451,7 +1447,6 @@ gtk_combo_box_remove (GtkContainer *container,
 	  g_signal_handlers_disconnect_by_func (widget,
 						gtk_combo_box_entry_contents_changed,
 						container);
-	  GTK_ENTRY (widget)->is_cell_renderer = FALSE;
 	}
     }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]