- GtkLabel *label = GTK_LABEL( GTK_BUTTON(button)->child );
- GdkFont *font = m_widget->style->font;
- int len = 22+gdk_string_measure( font, label->label );
- if (len > max_len) max_len = len;
+
+ GtkRequisition req;
+ req.width = 2;
+ req.height = 2;
+ (* GTK_WIDGET_CLASS( GTK_OBJECT(button)->klass )->size_request )
+ (button, &req );
+
+ if (req.width > max_len) max_len = req.width;