diff options
author | markt <markt> | 2007-07-24 12:12:45 (GMT) |
---|---|---|
committer | markt <markt> | 2007-07-24 12:12:45 (GMT) |
commit | 363764db5b36dbffcc019cec8ffb405d357d7130 (patch) | |
tree | 6523b122a926e06abfa9b96f3b31fffe4868495d /src/FbTk | |
parent | 9545871f7a0d44edf400715cd8cdd21d78f36884 (diff) | |
download | fluxbox-363764db5b36dbffcc019cec8ffb405d357d7130.zip fluxbox-363764db5b36dbffcc019cec8ffb405d357d7130.tar.bz2 |
fix ToggleDecor for fullscreen and decorationless windows, plus some other cleanup
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/ImageImlib2.cc | 4 | ||||
-rw-r--r-- | src/FbTk/KeyUtil.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/FbTk/ImageImlib2.cc b/src/FbTk/ImageImlib2.cc index 2d3ff6c..b4ef415 100644 --- a/src/FbTk/ImageImlib2.cc +++ b/src/FbTk/ImageImlib2.cc | |||
@@ -52,7 +52,7 @@ ImageImlib2::ImageImlib2() { | |||
52 | 52 | ||
53 | // TODO: this are the potential candidates, | 53 | // TODO: this are the potential candidates, |
54 | // choose only sane ones. open for discussion | 54 | // choose only sane ones. open for discussion |
55 | static char* format_list[] = { | 55 | static const char* format_list[] = { |
56 | "PNG", // pngloader | 56 | "PNG", // pngloader |
57 | "JPEG", "JPG", "JFI", "JFIF", // jpegloader | 57 | "JPEG", "JPG", "JFI", "JFIF", // jpegloader |
58 | // "TIFF", "TIF", // tiffloader | 58 | // "TIFF", "TIF", // tiffloader |
@@ -67,7 +67,7 @@ ImageImlib2::ImageImlib2() { | |||
67 | NULL | 67 | NULL |
68 | }; | 68 | }; |
69 | 69 | ||
70 | char** format = NULL; | 70 | const char** format = NULL; |
71 | for(format = format_list; *format != NULL; format++) { | 71 | for(format = format_list; *format != NULL; format++) { |
72 | Image::registerType(*format, *this); | 72 | Image::registerType(*format, *this); |
73 | } | 73 | } |
diff --git a/src/FbTk/KeyUtil.cc b/src/FbTk/KeyUtil.cc index 1830dca..a6ca632 100644 --- a/src/FbTk/KeyUtil.cc +++ b/src/FbTk/KeyUtil.cc | |||
@@ -34,7 +34,7 @@ | |||
34 | namespace { | 34 | namespace { |
35 | 35 | ||
36 | struct t_modlist{ | 36 | struct t_modlist{ |
37 | char *str; | 37 | const char *str; |
38 | unsigned int mask; | 38 | unsigned int mask; |
39 | bool operator == (const char *modstr) const { | 39 | bool operator == (const char *modstr) const { |
40 | return (strcasecmp(str, modstr) == 0 && mask !=0); | 40 | return (strcasecmp(str, modstr) == 0 && mask !=0); |