[Goodies-commits] r4075 - ristretto/trunk/src
Stephan Arts
stephan at xfce.org
Fri Mar 21 14:03:24 CET 2008
Author: stephan
Date: 2008-03-21 13:03:24 +0000 (Fri, 21 Mar 2008)
New Revision: 4075
Modified:
ristretto/trunk/src/main.c
Log:
When closing ristretto while it is opening a folder with images, it wont crash inside the navigator-code. It will inside the main_window (iter_changed signal
handler), one step further in fixing this.
Modified: ristretto/trunk/src/main.c
===================================================================
--- ristretto/trunk/src/main.c 2008-03-21 12:55:41 UTC (rev 4074)
+++ ristretto/trunk/src/main.c 2008-03-21 13:03:24 UTC (rev 4075)
@@ -28,6 +28,7 @@
typedef struct {
RsttoNavigator *navigator;
+ RsttoMainWindow *main_window;
GSList *files;
} RsttoOpenFiles;
@@ -282,6 +283,7 @@
rof.files = NULL;
rof.navigator = navigator;
+ rof.main_window = RSTTO_MAIN_WINDOW(window);
for (n = 1; n < argc; ++n)
{
rof.files = g_slist_prepend(rof.files, argv[n]);
@@ -410,6 +412,8 @@
{
gchar *path_dir = NULL;
RsttoNavigator *navigator = rof->navigator;
+ g_object_ref(navigator);
+ g_object_ref(rof->main_window);
if (g_slist_length(rof->files) >= 1)
{
@@ -449,5 +453,7 @@
if (g_slist_length(rof->files) > 1)
rstto_navigator_jump_first(navigator);
}
+ g_object_unref(rof->main_window);
+ g_object_unref(navigator);
return FALSE;
}
More information about the Goodies-commits
mailing list