From a39066c813c7b6efa34223bcbb93f2c377745094 Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Wed, 24 Jun 2009 10:20:00 +0300 Subject: [PATCH] Use gtk_dialog_set_padding() to set HildonNote margins * configure.ac: Bump GTK+ requirement to 2.14.3. * hildon/hildon-note.c: (hildon_note_rebuild): Use gtk_dialog_set_padding() when using maemo-gtk to define proper margins for the notes. Fixes: NB#124408 (Confirmation notes: the 'Yes' button overlaps with the dialog edge) --- hildon/hildon-note.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hildon/hildon-note.c b/hildon/hildon-note.c index 7ffc0af..14c77c1 100644 --- a/hildon/hildon-note.c +++ b/hildon/hildon-note.c @@ -763,6 +763,13 @@ hildon_note_rebuild (HildonNote *note) g_object_get (priv->okButton, "width-request", &priv->button_width, NULL); gtk_widget_set_no_show_all (priv->cancelButton, FALSE); +#ifdef MAEMO_GTK + gtk_dialog_set_padding (dialog, + HILDON_MARGIN_DOUBLE, + HILDON_MARGIN_DEFAULT, + HILDON_MARGIN_DOUBLE, + HILDON_MARGIN_DOUBLE); +#endif /* MAEMO_GTK */ break; case HILDON_NOTE_TYPE_PROGRESSBAR: @@ -774,6 +781,13 @@ hildon_note_rebuild (HildonNote *note) case HILDON_NOTE_TYPE_INFORMATION_THEME: case HILDON_NOTE_TYPE_INFORMATION: +#ifdef MAEMO_GTK + gtk_dialog_set_padding (dialog, + HILDON_MARGIN_DOUBLE, + HILDON_MARGIN_DOUBLE, + 0, + 0); +#endif /* MAEMO_GTK */ is_info_note = TRUE; break; -- 1.7.9.5