+ /* the default button has a border around it */
+ wxWindow* parent = win->GetParent();
+ if (parent && parent->m_wxwindow && gtk_widget_get_can_default(widget))
+ {
+ GtkBorder* border = NULL;
+ gtk_widget_style_get(widget, "default_border", &border, NULL);
+ if (border)
+ {
+ win->MoveWindow(
+ win->m_x - border->left,
+ win->m_y - border->top,
+ win->m_width + border->left + border->right,
+ win->m_height + border->top + border->bottom);
+ gtk_border_free(border);
+ }
+ }