* Fixes NB#90831, removed an unused funcion
authorSergio Villar Senin <svillar@igalia.com>
Fri, 24 Oct 2008 07:45:56 +0000 (07:45 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Fri, 24 Oct 2008 07:45:56 +0000 (07:45 +0000)
pmo-trunk-r6156

src/hildon2/modest-platform.c
src/maemo/modest-platform.c
src/modest-platform.h

index aa35b12..295db86 100644 (file)
@@ -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,
index 9ea8117..e09ca43 100644 (file)
@@ -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,
index f728f3e..454713a 100644 (file)
@@ -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