From: Claudio Saavedra Date: Wed, 24 Jun 2009 07:20:00 +0000 (+0300) Subject: Use gtk_dialog_set_padding() to set HildonNote margins X-Git-Tag: 2.1.86-1~8 X-Git-Url: http://git.maemo.org/git/?p=hildon;a=commitdiff_plain;h=a39066c813c7b6efa34223bcbb93f2c377745094 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) --- 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;