http://packetstormsecurity.org/UNIX/admin/xscreensaver-4.03.tar.gz
[xscreensaver] / driver / demo-Gtk-support.c
index df64c82f164869263f2b2bed25fe5252ea4bfb71..ce5ea475141512a9d05f1f318ee0f18fc72fbe00 100644 (file)
@@ -113,12 +113,12 @@ create_pixmap                          (GtkWidget       *widget,
   /* If we haven't found the pixmap, try the source directory. */
   if (!found_filename)
     {
-      found_filename = check_file_exists ("", filename);
+      found_filename = check_file_exists ("../utils/images", filename);
     }
 
   if (!found_filename)
     {
-      g_warning ("Couldn't find pixmap file: %s", filename);
+      g_warning (_("Couldn't find pixmap file: %s"), filename);
       return create_dummy_pixmap (widget);
     }
 
@@ -127,7 +127,7 @@ create_pixmap                          (GtkWidget       *widget,
                                                    NULL, found_filename);
   if (gdkpixmap == NULL)
     {
-      g_warning ("Error loading pixmap file: %s", found_filename);
+      g_warning (_("Error loading pixmap file: %s"), found_filename);
       g_free (found_filename);
       return create_dummy_pixmap (widget);
     }
@@ -139,7 +139,7 @@ create_pixmap                          (GtkWidget       *widget,
 }
 
 /* This is an internally used function to check if a pixmap file exists. */
-gchar*
+static gchar*
 check_file_exists                      (const gchar     *directory,
                                         const gchar     *filename)
 {