Roxen.git
/
server
/
modules
/
graphics
/
gbutton.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/modules/graphics/gbutton.pike:18:
// icon-data -- inline icon data // align -- left|center|right text alignment // align-icon -- left|center-before|center-after|right icon alignment // valign-icon -- above|middle|below icon vertical alignment // >Button text</gbutton> // // Alignment restriction: when text alignment is either left or right, icons // must also be aligned left or right.
-
constant cvs_version = "$Id: gbutton.pike,v 1.
98
2002
/
11
/
17
17
:
55
:
44
mani Exp $";
+
constant cvs_version = "$Id: gbutton.pike,v 1.
99
2004
/
05
/
16
23
:
21
:
02
mani Exp $";
constant thread_safe = 1; #include <module.h> inherit "module"; roxen.ImageCache button_cache; int do_ext; constant module_type = MODULE_TAG; constant module_name = "Graphics: GButton";
Roxen.git/server/modules/graphics/gbutton.pike:270:
else report_debug("GButton: Failed to load frame image: %O\n", args->border_image); set_image( tmp ); } // otherwise load default images if ( !frame && !background && !mask ) {
-
string data = Stdio.read_file("
roxen-
images/gbutton.xcf");
+
string data = Stdio.read_file("
data/
images/gbutton.xcf");
if (!data) error ("Failed to load default frame image "
-
"(
roxen-
images/gbutton.xcf): " + strerror (errno()));
+
"(
data/
images/gbutton.xcf): " + strerror (errno()));
mixed err = catch { set_image(Image.XCF.decode_layers(data)); }; if( !frame ) if (err) { catch (err[0] = "Failed to decode default frame image "
-
"(
roxen-
images/gbutton.xcf): " + err[0]);
+
"(
data/
images/gbutton.xcf): " + err[0]);
throw (err); } else error("Failed to decode default frame image "
-
"(
roxen-
images/gbutton.xcf).\n");
+
"(
data/
images/gbutton.xcf).\n");
} if( !frame ) { noframe = 1; frame = background || mask; // for sizes offsets et.al. } // Translate frame image to 0,0 (left layers are most likely to the // left of the frame image)