X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=inline;f=src%2Fhildon2%2Fmodest-platform.c;h=49136a09ea9f07ddce0026c4976dbca85f5604ab;hb=564a7388a2f74368147b0a241ca4a0b65c68167f;hp=295db86ae1493150b0ae833dfdd2a3fa2d7a5d39;hpb=36c5b9c497b9774e19ade127c059d505944bcb7f;p=modest diff --git a/src/hildon2/modest-platform.c b/src/hildon2/modest-platform.c index 295db86..49136a0 100644 --- a/src/hildon2/modest-platform.c +++ b/src/hildon2/modest-platform.c @@ -55,9 +55,10 @@ #include #include #include -#include "modest-hildon-sort-dialog.h" +#include "modest-hildon2-sort-dialog.h" #include #include +#include "hildon2/modest-hildon2-details-dialog.h" #ifdef MODEST_HAVE_MCE #include @@ -853,7 +854,6 @@ 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); @@ -1066,7 +1066,7 @@ modest_platform_create_sort_dialog (GtkWindow *parent_window) { GtkWidget *dialog; - dialog = modest_hildon_sort_dialog_new (parent_window); + dialog = modest_hildon2_sort_dialog_new (parent_window); hildon_help_dialog_help_enable (GTK_DIALOG(dialog), "applications_email_sort", @@ -2101,3 +2101,43 @@ modest_platform_check_memory_low (ModestWindow *win, return lowmem; } + +void +modest_platform_run_folder_details_dialog (GtkWindow *parent_window, + TnyFolder *folder) +{ + GtkWidget *dialog; + + /* Create dialog */ + dialog = modest_hildon2_details_dialog_new_with_folder (parent_window, folder); + + /* Run dialog */ + modest_window_mgr_set_modal (modest_runtime_get_window_mgr (), + GTK_WINDOW (dialog), + parent_window); + gtk_widget_show_all (dialog); + + g_signal_connect_swapped (dialog, "response", + G_CALLBACK (gtk_widget_destroy), + dialog); +} + +void +modest_platform_run_header_details_dialog (GtkWindow *parent_window, + TnyHeader *header) +{ + GtkWidget *dialog; + + /* Create dialog */ + dialog = modest_hildon2_details_dialog_new_with_header (parent_window, header); + + /* Run dialog */ + modest_window_mgr_set_modal (modest_runtime_get_window_mgr (), + GTK_WINDOW (dialog), + parent_window); + gtk_widget_show_all (dialog); + + g_signal_connect_swapped (dialog, "response", + G_CALLBACK (gtk_widget_destroy), + dialog); +}