[Xfce4-commits] <squeeze:master> Fixed the open dialog so it will provide gfiles to archive open

Peter de Ridder noreply at xfce.org
Sun Aug 21 11:36:01 CEST 2011


Updating branch refs/heads/master
         to 72da5b00a24a60603191f5aba057a80b97527a8c (commit)
       from d5aac01c233f811836d38e67a9c61b0c8bad51c4 (commit)

commit 72da5b00a24a60603191f5aba057a80b97527a8c
Author: Peter de Ridder <peter at xfce.org>
Date:   Sun Aug 21 11:31:02 2011 +0200

    Fixed the open dialog so it will provide gfiles to archive open

 src/main_window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main_window.c b/src/main_window.c
index 3dd1ef5..04f8d22 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -776,7 +776,7 @@ cb_sq_main_open_archive(GtkWidget *widget, gpointer userdata)
 	}
 	if(result == GTK_RESPONSE_OK)
 	{
-		open_archive_paths = gtk_file_chooser_get_filenames(GTK_FILE_CHOOSER(dialog));
+		open_archive_paths = gtk_file_chooser_get_files(GTK_FILE_CHOOSER(dialog));
 		_open_archive_paths = open_archive_paths;
 		while(_open_archive_paths)
 		{
@@ -792,7 +792,7 @@ cb_sq_main_open_archive(GtkWidget *widget, gpointer userdata)
 			*/
 			_open_archive_paths = _open_archive_paths->next;
 		}
-		g_slist_foreach(open_archive_paths, (GFunc)g_free, NULL);
+		g_slist_foreach(open_archive_paths, (GFunc)g_object_unref, NULL);
 		g_slist_free(open_archive_paths);
 		gtk_widget_destroy(dialog);
 	}


More information about the Xfce4-commits mailing list