[Xfce4-commits] r25595 - squeeze/branches/squeeze_0_2/src

Stephan Arts stephan at xfce.org
Wed Apr 18 01:37:52 CEST 2007


Author: stephan
Date: 2007-04-17 23:37:52 +0000 (Tue, 17 Apr 2007)
New Revision: 25595

Modified:
   squeeze/branches/squeeze_0_2/src/application.c
Log:
add progress dialog to cmd-line archive creation

Modified: squeeze/branches/squeeze_0_2/src/application.c
===================================================================
--- squeeze/branches/squeeze_0_2/src/application.c	2007-04-17 21:14:57 UTC (rev 25594)
+++ squeeze/branches/squeeze_0_2/src/application.c	2007-04-17 23:37:52 UTC (rev 25595)
@@ -257,14 +257,15 @@
 		}
 	}
 	g_signal_connect(G_OBJECT(lp_archive), "command-terminated", G_CALLBACK(cb_sq_application_archive_command_terminated), app);
+	GtkWidget *message_dialog = sq_message_dialog_new(GTK_WINDOW_TOPLEVEL, lp_archive);
+	gtk_widget_show(message_dialog);
 	if(!lsq_archive_add(lp_archive, files))
 	{
-		/* FIXME: show warning dialog */
 		GtkWidget *warning_dialog = gtk_message_dialog_new(NULL, 
-																											 GTK_DIALOG_DESTROY_WITH_PARENT, 
-																											 GTK_MESSAGE_WARNING,
-																											 GTK_BUTTONS_CLOSE,
-																											 _("Squeeze cannot add files to this archive type,\nthe application to support this is missing."));
+		                            GTK_DIALOG_DESTROY_WITH_PARENT, 
+		                            GTK_MESSAGE_WARNING,
+		                            GTK_BUTTONS_CLOSE,
+		                            _("Squeeze cannot add files to this archive type,\nthe application to support this is missing."));
 		gtk_dialog_run (GTK_DIALOG (warning_dialog) );
 		gtk_widget_destroy(warning_dialog);
 	}



More information about the Xfce4-commits mailing list