diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2009-06-24 10:20:00 +0300 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2009-06-24 17:33:32 +0300 |
commit | c282dda846c691b2e125b7280411d5d1811481ba (patch) | |
tree | cea8be48321c69f9499e1f0cec31ab2179105da2 /hildon/hildon-note.c | |
parent | ab585627501b31f5e49c2a5f1e4d0b425c960b5f (diff) |
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)
Diffstat (limited to 'hildon/hildon-note.c')
-rw-r--r-- | hildon/hildon-note.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/hildon/hildon-note.c b/hildon/hildon-note.c index 5403d39..e1d67f0 100644 --- a/hildon/hildon-note.c +++ b/hildon/hildon-note.c @@ -709,6 +709,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: @@ -720,6 +727,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; |