button_accept, GTK_RESPONSE_ACCEPT,
button_cancel, GTK_RESPONSE_CANCEL,
NULL);
+ gtk_widget_set_no_show_all (button_cancel, FALSE);
+
modest_window_mgr_set_modal (modest_runtime_get_window_mgr (),
GTK_WINDOW (dialog), parent_window);
return response;
}
-gint
-modest_platform_run_yes_no_dialog (GtkWindow *parent_window,
- const gchar *message)
-{
- GtkWidget *dialog;
- gint response;
-
- dialog = hildon_note_new_confirmation_add_buttons (parent_window, message,
- _("mcen_bd_yes"), GTK_RESPONSE_YES,
- _("mcen_bd_no"), GTK_RESPONSE_NO,
- NULL);
- modest_window_mgr_set_modal (modest_runtime_get_window_mgr (), GTK_WINDOW (dialog), parent_window);
- response = gtk_dialog_run (GTK_DIALOG (dialog));
-
- on_destroy_dialog (dialog);
-
- return response;
-}
-
-
-
void
modest_platform_run_information_dialog (GtkWindow *parent_window,
const gchar *message,
return response;
}
-gint
-modest_platform_run_yes_no_dialog (GtkWindow *parent_window,
- const gchar *message)
-{
- GtkWidget *dialog;
- gint response;
-
- dialog = hildon_note_new_confirmation_add_buttons (parent_window, message,
- _("mcen_bd_yes"), GTK_RESPONSE_YES,
- _("mcen_bd_no"), GTK_RESPONSE_NO,
- NULL);
- modest_window_mgr_set_modal (modest_runtime_get_window_mgr (),
- GTK_WINDOW (dialog), GTK_WINDOW (parent_window));
- response = gtk_dialog_run (GTK_DIALOG (dialog));
-
- on_destroy_dialog (dialog);
-
- return response;
-}
-
-
-
void
modest_platform_run_information_dialog (GtkWindow *parent_window,
const gchar *message,
const gchar *button_cancel);
/**
- * modest_platform_run_yes_no_dialog:
- * @parent_window: the parent #GtkWindow of the dialog
- * @message: the message to show to the user
- *
- * runs a dialog that offers yes and no buttons.
- *
- * Returns: GTK_RESPONSE_YES or GTK_RESPONSE_NO
- **/
-gint modest_platform_run_yes_no_dialog (GtkWindow *parent_window,
- const gchar *message);
-
-
-/**
* modest_platform_run_information_dialog:
* @parent_window: the parent #GtkWindow of the dialog
* @message: the message to show