- ppriv->msg_format = modest_selector_picker_new (MODEST_EDITABLE_SIZE,
- HILDON_BUTTON_ARRANGEMENT_VERTICAL,
- ppriv->msg_format_list, g_int_equal);
- modest_maemo_utils_set_vbutton_layout (title_size_group,
- _("mcen_fi_options_messageformat"),
- ppriv->msg_format);
+ ppriv->msg_format = modest_toolkit_factory_create_selector (modest_runtime_get_toolkit_factory (),
+ ppriv->msg_format_list, g_int_equal);
+ if (GTK_IS_COMBO_BOX (ppriv->msg_format)) {
+ GtkWidget *caption;
+ caption = modest_toolkit_utils_create_vcaptioned (title_size_group,
+ _("mcen_fi_options_messageformat"), FALSE,
+ ppriv->msg_format);
+ gtk_widget_show (caption);
+ gtk_box_pack_start (GTK_BOX (vbox), caption, FALSE, FALSE, 0);
+ } else {
+ modest_toolkit_utils_set_vbutton_layout (title_size_group,
+ _("mcen_fi_options_messageformat"),
+ ppriv->msg_format);
+ gtk_box_pack_start (GTK_BOX (vbox), ppriv->msg_format, FALSE, FALSE, 0);
+ }
+
+
+ /* Incoming notifications */
+ ppriv->notifications = hildon_check_button_new (MODEST_EDITABLE_SIZE);
+ gtk_button_set_label (GTK_BUTTON (ppriv->notifications), _("mcen_fi_options_incoming_notifications"));
+ gtk_button_set_alignment (GTK_BUTTON (ppriv->notifications), 0.0, 0.5);
+ gtk_box_pack_start (GTK_BOX (vbox), ppriv->notifications, FALSE, FALSE, 0);