[Goodies-commits] r3214 - ristretto/trunk/src

Stephan Arts stephan at xfce.org
Wed Sep 12 22:20:15 CEST 2007


Author: stephan
Date: 2007-09-12 20:20:15 +0000 (Wed, 12 Sep 2007)
New Revision: 3214

Modified:
   ristretto/trunk/src/main.c
Log:
think i fixed it.


Modified: ristretto/trunk/src/main.c
===================================================================
--- ristretto/trunk/src/main.c	2007-09-12 20:15:45 UTC (rev 3213)
+++ ristretto/trunk/src/main.c	2007-09-12 20:20:15 UTC (rev 3214)
@@ -548,9 +548,16 @@
 static void
 cb_rstto_nav_file_changed(RsttoNavigator *navigator, gint nr, RsttoNavigatorEntry *entry, GtkWindow *window)
 {
-    ThunarVfsInfo *info = rstto_navigator_entry_get_info(entry);
-    const gchar *filename = info->display_name;
+    ThunarVfsInfo *info = NULL;
+    const gchar *filename = NULL;
     gchar *title;
+
+    if(entry)
+    {
+        info = rstto_navigator_entry_get_info(entry);
+        filename = info->display_name;
+    }
+
     if(filename)
     {
         title = g_strconcat(PACKAGE_NAME, " - ", filename, NULL);




More information about the Goodies-commits mailing list