* src/hildon-dialog.c (hildon_dialog_add_button):
Set fixed width to all buttons in the HildonDialog.
2008-10-06 Alberto Garcia <agarcia@igalia.com>
+ * src/hildon-dialog.c (hildon_dialog_add_button):
+ Set fixed width to all buttons in the HildonDialog.
+
+2008-10-06 Alberto Garcia <agarcia@igalia.com>
+
Patch contributed by Daniel Borgmann (danielb@openismus.com)
* src/hildon-gtk.c (hildon_gtk_widget_set_theme_size):
G_DEFINE_TYPE (HildonDialog, hildon_dialog, GTK_TYPE_DIALOG);
+/* Buttons on a HildonDialog have fixed size */
+#define HILDON_DIALOG_BUTTON_WIDTH 174
+
static void
hildon_dialog_class_init (HildonDialogClass *dialog_class)
{
GtkWidget *button;
button = gtk_dialog_add_button (GTK_DIALOG (dialog), button_text, response_id);
hildon_gtk_widget_set_theme_size (button, HILDON_SIZE_AUTO_WIDTH | HILDON_SIZE_FINGER_HEIGHT);
+ g_object_set (button, "width-request", HILDON_DIALOG_BUTTON_WIDTH, NULL);
return button;
}