From: Sergio Villar Senin Date: Fri, 24 Oct 2008 07:45:56 +0000 (+0000) Subject: * Fixes NB#90831, removed an unused funcion X-Git-Tag: git_migration_finished~1103 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=36c5b9c497b9774e19ade127c059d505944bcb7f * Fixes NB#90831, removed an unused funcion pmo-trunk-r6156 --- diff --git a/src/hildon2/modest-platform.c b/src/hildon2/modest-platform.c index aa35b12..295db86 100644 --- a/src/hildon2/modest-platform.c +++ b/src/hildon2/modest-platform.c @@ -853,6 +853,8 @@ modest_platform_run_confirmation_dialog_with_buttons (GtkWindow *parent_window, 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); @@ -863,27 +865,6 @@ modest_platform_run_confirmation_dialog_with_buttons (GtkWindow *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, diff --git a/src/maemo/modest-platform.c b/src/maemo/modest-platform.c index 9ea8117..e09ca43 100644 --- a/src/maemo/modest-platform.c +++ b/src/maemo/modest-platform.c @@ -863,28 +863,6 @@ modest_platform_run_confirmation_dialog_with_buttons (GtkWindow *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), 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, diff --git a/src/modest-platform.h b/src/modest-platform.h index f728f3e..454713a 100644 --- a/src/modest-platform.h +++ b/src/modest-platform.h @@ -211,19 +211,6 @@ modest_platform_run_confirmation_dialog_with_buttons (GtkWindow *parent_window, 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