]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/toolbar.cpp
No changes, just remove duplicate flags checks in wxUniv wxTLW.
[wxWidgets.git] / src / gtk / toolbar.cpp
index 2c2e60441b4d4f95cff5265ccc0b63d6386b8680..3050ca96c2a63ac2d2d88f5ad29c503dde64bc19 100644 (file)
@@ -312,7 +312,7 @@ void wxToolBarTool::ShowDropdown(GtkToggleButton* button)
         if (menu)
         {
             GtkAllocation alloc;
-            gtk_widget_set_allocation(GTK_WIDGET(button), &alloc);
+            gtk_widget_get_allocation(GTK_WIDGET(button), &alloc);
             int x = alloc.x;
             int y = alloc.y;
             if (toolbar->HasFlag(wxTB_LEFT | wxTB_RIGHT))
@@ -502,7 +502,7 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase)
                     break;
                 case wxITEM_RADIO:
                     radioGroup = GetRadioGroup(pos);
-                    if (radioGroup)
+                    if (!radioGroup)
                     {
                         // this is the first button in the radio button group,
                         // it will be toggled automatically by GTK so bring the