diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2009-06-24 10:20:00 +0300 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2009-06-24 19:29:42 +0300 |
commit | a39066c813c7b6efa34223bcbb93f2c377745094 (patch) | |
tree | 7d3cbea213ba693dbf8d715331c6e05374af36b7 /hildon/hildon-note.c | |
parent | f318528f871c4839e3f36d18cfe6fb126684da74 (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 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; |