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

Stephan Arts stephan at xfce.org
Tue Aug 28 07:38:25 CEST 2007


Author: stephan
Date: 2007-08-28 05:38:25 +0000 (Tue, 28 Aug 2007)
New Revision: 3088

Modified:
   ristretto/trunk/src/main.c
Log:
add message when path == NULL

Modified: ristretto/trunk/src/main.c
===================================================================
--- ristretto/trunk/src/main.c	2007-08-28 05:29:20 UTC (rev 3087)
+++ ristretto/trunk/src/main.c	2007-08-28 05:38:25 UTC (rev 3088)
@@ -713,10 +713,17 @@
             g_free(file_media);
             thunar_vfs_path_unref(path);
         }
-
-
+        else
+        {
+            gtk_widget_destroy(dialog);
+            dialog = gtk_message_dialog_new(GTK_WINDOW(window),
+                                            GTK_DIALOG_MODAL,
+                                            GTK_MESSAGE_ERROR,
+                                            GTK_BUTTONS_OK,
+                                            _("Could not open file"));
+            gtk_dialog_run(GTK_DIALOG(dialog));
+        }
     }
-
     gtk_widget_destroy(dialog);
 }
 




More information about the Goodies-commits mailing list