X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Fdemo-Gtk-support.c;h=ce5ea475141512a9d05f1f318ee0f18fc72fbe00;hb=40eacb5812ef7c0e3374fb139afbb4f5bc8bbfb5;hp=df64c82f164869263f2b2bed25fe5252ea4bfb71;hpb=8eb2873d7054e705c4e83f22d18c40946a9e2529;p=xscreensaver diff --git a/driver/demo-Gtk-support.c b/driver/demo-Gtk-support.c index df64c82f..ce5ea475 100644 --- a/driver/demo-Gtk-support.c +++ b/driver/demo-Gtk-support.c @@ -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) {