[gnumeric] The event box is back for the combo box



commit f6f3bb26bb8d6eabfc57bc50e3fd19b9cae33f0f
Author: Jean Brefort <jean brefort normalesup org>
Date:   Wed Mar 27 20:32:10 2013 +0100

    The event box is back for the combo box

 src/sheet-object-widget.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/sheet-object-widget.c b/src/sheet-object-widget.c
index 8da3128..5763909 100644
--- a/src/sheet-object-widget.c
+++ b/src/sheet-object-widget.c
@@ -3408,8 +3408,9 @@ static GtkWidget *
 sheet_widget_combo_create_widget (SheetObjectWidget *sow)
 {
        SheetWidgetListBase *swl = GNM_SOW_LIST_BASE (sow);
-       GtkWidget *combo = gtk_combo_box_new_with_entry ();
+       GtkWidget *widget = gtk_event_box_new (), *combo;
 
+       combo = gtk_combo_box_new_with_entry ();
        gtk_widget_set_can_focus (gtk_bin_get_child (GTK_BIN (combo)),
                                  FALSE);
        if (swl->model != NULL)
@@ -3426,7 +3427,9 @@ sheet_widget_combo_create_widget (SheetObjectWidget *sow)
        g_signal_connect (G_OBJECT (combo), "changed",
                G_CALLBACK (cb_combo_changed), swl);
 
-       return combo;
+       gtk_container_add (GTK_CONTAINER (widget), combo);
+       gtk_event_box_set_visible_window (GTK_EVENT_BOX (widget), FALSE);
+       return widget;
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]