From: Jose Dapena Paz Date: Thu, 23 Apr 2009 09:51:48 +0000 (+0000) Subject: Add activity hint in move to dialog, for fetching folders and accounts X-Git-Tag: git_migration_finished~27 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=b71db5829cbf156097d4f3bf6c8b8d5b4e0fcb52 Add activity hint in move to dialog, for fetching folders and accounts pmo-trunk-r9072 --- diff --git a/src/hildon2/modest-platform.c b/src/hildon2/modest-platform.c index 0eb8aaa..15aa68a 100644 --- a/src/hildon2/modest-platform.c +++ b/src/hildon2/modest-platform.c @@ -2858,6 +2858,12 @@ on_move_to_dialog_action_clicked (GtkButton *selection, } } +static void +move_to_dialog_activity_changed (ModestFolderView *folder_view, gboolean activity, GtkDialog *dialog) +{ + hildon_gtk_window_set_progress_indicator (GTK_WINDOW (dialog), activity?1:0); +} + GtkWidget * modest_platform_create_move_to_dialog (GtkWindow *parent_window, GtkWidget **folder_view) @@ -2886,6 +2892,8 @@ modest_platform_create_move_to_dialog (GtkWindow *parent_window, /* Create folder view */ *folder_view = modest_platform_create_folder_view_full (NULL, FALSE); + g_signal_connect (G_OBJECT (*folder_view), "activity-changed", G_CALLBACK (move_to_dialog_activity_changed), + dialog); modest_folder_view_set_cell_style (MODEST_FOLDER_VIEW (*folder_view), MODEST_FOLDER_VIEW_CELL_STYLE_COMPACT);