diff options
author | Tomasz Sterna <tomek@xiaoka.com> | 2012-01-04 23:58:10 +0100 |
---|---|---|
committer | Tomasz Sterna <tomek@xiaoka.com> | 2012-01-24 00:36:01 +0100 |
commit | 66b5569ee4af3c6044c8e94b749fe8f22659a24a (patch) | |
tree | c3bed53057fe0fa204097f9bca13c8902fa1155e /hildon/hildon-note.c | |
parent | df3f3c11dfadc3d0d191f8a642b407d29fca2084 (diff) |
Removed MAEMO_CHANGES and MAEMO_GTK
Diffstat (limited to 'hildon/hildon-note.c')
-rw-r--r-- | hildon/hildon-note.c | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/hildon/hildon-note.c b/hildon/hildon-note.c index 00781e0..ac74028 100644 --- a/hildon/hildon-note.c +++ b/hildon/hildon-note.c @@ -118,11 +118,6 @@ hildon_note_init (HildonNote *dialog); static void hildon_note_rebuild (HildonNote *note); -#ifdef MAEMO_GTK -static void -hildon_note_set_padding (HildonNote *note); -#endif /* MAEMO_GTK */ - static void hildon_note_rename (HildonNote *note); @@ -647,39 +642,6 @@ hildon_note_rename (HildonNote *note) g_type_class_unref (enum_class); } -#ifdef MAEMO_GTK -static void -hildon_note_set_padding (HildonNote *note) -{ - HildonNotePrivate *priv; - - priv = HILDON_NOTE_GET_PRIVATE (note); - - switch (priv->note_n) { - case HILDON_NOTE_TYPE_INFORMATION: - case HILDON_NOTE_TYPE_INFORMATION_THEME: - gtk_dialog_set_padding (GTK_DIALOG (note), - HILDON_MARGIN_DOUBLE, - HILDON_MARGIN_DOUBLE, - 0, - 0); - break; - - case HILDON_NOTE_TYPE_CONFIRMATION: - case HILDON_NOTE_TYPE_CONFIRMATION_BUTTON: - gtk_dialog_set_padding (GTK_DIALOG (note), - HILDON_MARGIN_DOUBLE, - HILDON_MARGIN_DEFAULT, - HILDON_MARGIN_DOUBLE, - HILDON_MARGIN_DOUBLE); - break; - - default: - break; - } -} -#endif /* MAEMO_GTK */ - static void hildon_note_rebuild (HildonNote *note) { @@ -725,13 +687,6 @@ 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: @@ -742,13 +697,6 @@ hildon_note_rebuild (HildonNote *note) break; 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; @@ -783,10 +731,6 @@ hildon_note_rebuild (HildonNote *note) gtk_alignment_set_padding (GTK_ALIGNMENT (priv->align), 0, 0, 0, 0); } -#ifdef MAEMO_GTK - hildon_note_set_padding (note); -#endif /* MAEMO_GTK */ - gtk_container_add (GTK_CONTAINER (dialog->vbox), priv->event_box); gtk_widget_show_all (priv->event_box); |