X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/385e8575dd1f9219fb0e3f7fa26ffe4c24d2fdbb..726cc8697cd44a41b43257f05ca8cdd42b71a711:/src/gtk/toolbar.cpp?ds=inline diff --git a/src/gtk/toolbar.cpp b/src/gtk/toolbar.cpp index 2c2e60441b..aeb1dff251 100644 --- a/src/gtk/toolbar.cpp +++ b/src/gtk/toolbar.cpp @@ -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))