[Xfce4-commits] r25267 - in squeeze/trunk: libsqueeze src

Stephan Arts stephan at xfce.org
Fri Mar 23 12:20:50 CET 2007


Author: stephan
Date: 2007-03-23 11:20:50 +0000 (Fri, 23 Mar 2007)
New Revision: 25267

Modified:
   squeeze/trunk/libsqueeze/command-builder.c
   squeeze/trunk/src/archive_store.c
   squeeze/trunk/src/main_window.c
   squeeze/trunk/src/notebook.c
Log:
fix extract of selected items

Modified: squeeze/trunk/libsqueeze/command-builder.c
===================================================================
--- squeeze/trunk/libsqueeze/command-builder.c	2007-03-23 11:11:47 UTC (rev 25266)
+++ squeeze/trunk/libsqueeze/command-builder.c	2007-03-23 11:20:50 UTC (rev 25267)
@@ -129,6 +129,8 @@
 	lsq_macro_command_append(LSQ_MACRO_COMMAND(macro), extract);
 	lsq_macro_command_append(LSQ_MACRO_COMMAND(macro), launch);
 
+	g_object_unref(extract);
+	g_object_unref(launch);
 	return macro;
 }
 

Modified: squeeze/trunk/src/archive_store.c
===================================================================
--- squeeze/trunk/src/archive_store.c	2007-03-23 11:11:47 UTC (rev 25266)
+++ squeeze/trunk/src/archive_store.c	2007-03-23 11:20:50 UTC (rev 25267)
@@ -1124,7 +1124,7 @@
 #ifdef DEBUG
 			g_debug("file clicked");
 #endif
-			g_signal_emit(store, sq_archive_store_signals[SQ_ARCHIVE_STORE_SIGNAL_FILE_ACTIVATED], 0, lsq_archive_iter_get_filename(entry), NULL); 
+			g_signal_emit(store, sq_archive_store_signals[SQ_ARCHIVE_STORE_SIGNAL_FILE_ACTIVATED], 0, lsq_archive_iter_get_path(entry), NULL); 
 			return;
 		}
 

Modified: squeeze/trunk/src/main_window.c
===================================================================
--- squeeze/trunk/src/main_window.c	2007-03-23 11:11:47 UTC (rev 25266)
+++ squeeze/trunk/src/main_window.c	2007-03-23 11:20:50 UTC (rev 25267)
@@ -1057,10 +1057,10 @@
 				if(lsq_archive_extract(lp_archive, extract_archive_path, filenames))
 				{
 					GtkWidget *warning_dialog = gtk_message_dialog_new(GTK_WINDOW(window), 
-																														 GTK_DIALOG_DESTROY_WITH_PARENT, 
-																														 GTK_MESSAGE_WARNING,
-																														 GTK_BUTTONS_CLOSE,
-																														 _("Squeeze cannot extract this archive type,\nthe application to support this is missing."));
+																	 GTK_DIALOG_DESTROY_WITH_PARENT, 
+																	 GTK_MESSAGE_WARNING,
+																	 GTK_BUTTONS_CLOSE,
+																	 _("Squeeze cannot extract this archive type,\nthe application to support this is missing."));
 					gtk_dialog_run (GTK_DIALOG (warning_dialog) );
 					gtk_widget_destroy(warning_dialog);
 

Modified: squeeze/trunk/src/notebook.c
===================================================================
--- squeeze/trunk/src/notebook.c	2007-03-23 11:11:47 UTC (rev 25266)
+++ squeeze/trunk/src/notebook.c	2007-03-23 11:20:50 UTC (rev 25267)
@@ -703,9 +703,9 @@
 }
 
 static void
-cb_notebook_file_activated(SQArchiveStore *store, gchar *filename, SQNotebook *notebook)
+cb_notebook_file_activated(SQArchiveStore *store, gchar *path, SQNotebook *notebook)
 {
-	g_signal_emit(G_OBJECT(notebook), sq_notebook_signals[SQ_NOTEBOOK_SIGNAL_FILE_ACTIVATED], 0, filename, NULL);
+	g_signal_emit(G_OBJECT(notebook), sq_notebook_signals[SQ_NOTEBOOK_SIGNAL_FILE_ACTIVATED], 0, path, NULL);
 }
 
 gboolean



More information about the Xfce4-commits mailing list