[gthumb] [burn_disc] set the watch cursor while burning the disc



commit d2c93cbd605c2539b3e629fed7b26ccd495e6cd9
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Mar 1 12:44:32 2010 +0100

    [burn_disc] set the watch cursor while burning the disc

 extensions/burn_disc/gth-burn-task.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/extensions/burn_disc/gth-burn-task.c b/extensions/burn_disc/gth-burn-task.c
index ef93a92..8985d6b 100644
--- a/extensions/burn_disc/gth-burn-task.c
+++ b/extensions/burn_disc/gth-burn-task.c
@@ -209,19 +209,22 @@ static void
 burn_content_to_disc (GthBurnTask *task)
 {
 	static gboolean  initialized = FALSE;
+	GdkCursor       *cursor;
 	GtkWidget       *dialog;
 	GtkBuilder      *builder;
 	GtkWidget       *options;
 	GtkResponseType  result;
 
+	cursor = gdk_cursor_new (GDK_WATCH);
+	gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (task->priv->browser)), cursor);
+	gdk_cursor_unref (cursor);
+
 	if (! initialized) {
 		brasero_media_library_start ();
 		brasero_burn_library_start (NULL, NULL);
 		initialized = TRUE;
 	}
 
-	gth_task_dialog (GTH_TASK (task), TRUE);
-
 	task->priv->session = brasero_session_cfg_new ();
 	task->priv->track = brasero_track_data_cfg_new ();
 	brasero_burn_session_add_track (BRASERO_BURN_SESSION (task->priv->session),
@@ -247,6 +250,7 @@ burn_content_to_disc (GthBurnTask *task)
 	gtk_widget_show (options);
 	brasero_burn_options_add_options (BRASERO_BURN_OPTIONS (dialog), options);
 
+	gth_task_dialog (GTH_TASK (task), TRUE);
 	result = gtk_dialog_run (GTK_DIALOG (dialog));
 	gtk_widget_destroy (dialog);
 
@@ -263,6 +267,8 @@ burn_content_to_disc (GthBurnTask *task)
 		gtk_widget_destroy (dialog);
 	}
 
+	gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (task->priv->browser)), NULL);
+
 	g_object_unref (task->priv->session);
 	gth_task_completed (GTH_TASK (task), NULL);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]