X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=util%2Fbsetroot.cc;h=e578cfa0580d5d02948170481a608cc930706e65;hb=390d447d9ba92878fbd1a0f7955edb5f83256195;hp=460dc350ac9891803a31452cee22b7526309ac89;hpb=923c381dc177aa64b1da847ae6a27bff19ec817c;p=chaz%2Fopenbox diff --git a/util/bsetroot.cc b/util/bsetroot.cc index 460dc350..e578cfa0 100644 --- a/util/bsetroot.cc +++ b/util/bsetroot.cc @@ -43,15 +43,11 @@ extern "C" { #endif // HAVE_CTYPE_H } -#include "../src/i18n.hh" -#include "../src/GCCache.hh" -#include "../src/Texture.hh" -#include "../src/Util.hh" +#include "gccache.hh" +#include "texture.hh" +#include "util.hh" #include "bsetroot.hh" - -I18n i18n; - bsetroot::bsetroot(int argc, char **argv, char *dpy_name) : BaseDisplay(argv[0], dpy_name) { @@ -106,8 +102,7 @@ bsetroot::bsetroot(int argc, char **argv, char *dpy_name) if ((mod + sol + grd) != True) { fprintf(stderr, - i18n(bsetrootSet, bsetrootMustSpecify, - "%s: error: must specify one of: -solid, -mod, -gradient\n"), + "%s: error: must specify one of: -solid, -mod, -gradient\n", getApplicationName()); usage(2); @@ -348,19 +343,18 @@ void bsetroot::gradient(void) { void bsetroot::usage(int exit_code) { fprintf(stderr, - i18n(bsetrootSet, bsetrootUsage, - "%s 2.0\n\n" - "Copyright (c) 1997-2000, 2002 Bradley T Hughes\n" - "Copyright (c) 2001-2002 Sean 'Shaleh' Perry\n\n" - " -display use display connection\n" - " -mod modula pattern\n" - " -foreground, -fg modula foreground color\n" - " -background, -bg modula background color\n\n" - " -gradient gradient texture\n" - " -from gradient start color\n" - " -to gradient end color\n\n" - " -solid solid color\n\n" - " -help print this help text and exit\n"), + "%s 2.0\n\n" + "Copyright (c) 1997-2000, 2002 Bradley T Hughes\n" + "Copyright (c) 2001-2002 Sean 'Shaleh' Perry\n\n" + " -display use display connection\n" + " -mod modula pattern\n" + " -foreground, -fg modula foreground color\n" + " -background, -bg modula background color\n\n" + " -gradient gradient texture\n" + " -from gradient start color\n" + " -to gradient end color\n\n" + " -solid solid color\n\n" + " -help print this help text and exit\n", getApplicationName()); exit(exit_code); @@ -369,15 +363,12 @@ void bsetroot::usage(int exit_code) { int main(int argc, char **argv) { char *display_name = (char *) 0; - i18n.openCatalog("openbox.cat"); - for (int i = 1; i < argc; i++) { if (! strcmp(argv[i], "-display")) { // check for -display option if ((++i) >= argc) { - fprintf(stderr, i18n(mainSet, mainDISPLAYRequiresArg, - "error: '-display' requires an argument\n")); + fprintf(stderr, "error: '-display' requires an argument\n"); ::exit(1); }