]> git.saurik.com Git - wxWidgets.git/commitdiff
Correct wxComboBox height in wxToolbar for old
authorRobert Roebling <robert@roebling.de>
Mon, 16 Oct 2006 21:44:22 +0000 (21:44 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 16 Oct 2006 21:44:22 +0000 (21:44 +0000)
   GtkCombo-based implementation.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp

index f2022e177edd816cb5090f158794918562674938..de71af2416030ed5a1696935d192bfd86af2c668 100644 (file)
@@ -438,10 +438,16 @@ void wxgtk_combo_size_request_callback(GtkWidget *widget,
     GtkRequisition entry_req;
     entry_req.width = 2;
     entry_req.height = 2;
-    (* GTK_WIDGET_CLASS( GTK_OBJECT_GET_CLASS(gcombo->button) )->size_request )
-        (gcombo->button, &entry_req );
+    (* GTK_WIDGET_CLASS( GTK_OBJECT_GET_CLASS(gcombo->entry) )->size_request )
+        (gcombo->entry, &entry_req );
 
-    requisition->width = w - entry_req.width;
+    GtkRequisition button_req;
+    button_req.width = 2;
+    button_req.height = 2;
+    (* GTK_WIDGET_CLASS( GTK_OBJECT_GET_CLASS(gcombo->button) )->size_request )
+        (gcombo->button, &button_req );
+        
+    requisition->width = w - button_req.width;
     requisition->height = entry_req.height;
 }
 }