Add window manager icon

This commit is contained in:
Vedran Ljubovic 2007-08-03 18:31:27 +00:00
parent 18b9352bb1
commit eecb1232f0
2 changed files with 114 additions and 1 deletions

View File

@ -17,6 +17,11 @@
#include <sys/time.h> // timer in cb_open
#include <sys/resource.h> // for core dumps
// for application icon:
#include <X11/xpm.h>
#include <FL/x.H>
#include "efiler.xpm"
#include <Fl/Fl.H>
#include <Fl/Fl_Double_Window.H>
@ -666,7 +671,13 @@ fl_message_font(FL_HELVETICA, 12);
win->end();
win->resizable(tile);
// win->resizable(view);
// win->icon(Icon::get("folder",Icon::TINY));
fl_open_display();
Pixmap p, mask;
XpmCreatePixmapFromData(fl_display, DefaultRootWindow(fl_display), efiler_xpm, &p, &mask, NULL);
win->icon((char*)p);
win->show(argc,argv);
view->take_focus();

102
efiler/efiler.xpm Normal file
View File

@ -0,0 +1,102 @@
/* XPM */
static char * efiler_xpm[] = {
"16 16 83 1",
" c None",
". c #091D91",
"+ c #091E90",
"@ c #091E91",
"# c #0B2599",
"$ c #0C2599",
"% c #102DA2",
"& c #1337AA",
"* c #1337AC",
"= c #183FB5",
"- c #1840B5",
"; c #1B49BD",
"> c #1C49BD",
", c #274B97",
"' c #274D9B",
") c #28509F",
"! c #2852A3",
"~ c #1E52C5",
"{ c #1F52C5",
"] c #2955A8",
"^ c #2A58AE",
"/ c #2259CB",
"( c #2259CC",
"_ c #2B5AB1",
": c #2C5EB8",
"< c #255FD1",
"[ c #2D61BD",
"} c #2E63C0",
"| c #2F66C6",
"1 c #306ACC",
"2 c #306DD1",
"3 c #306DD2",
"4 c #316DD1",
"5 c #306ED1",
"6 c #316ED2",
"7 c #3170D6",
"8 c #3273DB",
"9 c #3373DB",
"0 c #3274DB",
"a c #3274DC",
"b c #277BFD",
"c c #287BFD",
"d c #287CFD",
"e c #5F7DB1",
"f c #3987FD",
"g c #3988FD",
"h c #4F97FD",
"i c #4F98FD",
"j c #5098FD",
"k c #4FAEFD",
"l c #6BA9FD",
"m c #6BAAFD",
"n c #62B7FD",
"o c #AEAEC6",
"p c #6DBEFD",
"q c #86B9EC",
"r c #89BDFD",
"s c #8CBDFD",
"t c #89BEFD",
"u c #7AC4FD",
"v c #88CBFD",
"w c #9EC6EE",
"x c #99D3FD",
"y c #ACD1FD",
"z c #A9DAFD",
"A c #A9DBFD",
"B c #B9E1FD",
"C c #BCE1FD",
"D c #B9E2FD",
"E c #BCE2FD",
"F c #CBE8FD",
"G c #CBE9FD",
"H c #DAEEFD",
"I c #DBEEFD",
"J c #DAF0FD",
"K c #DBF0FD",
"L c #E8F5FD",
"M c #E9F5FD",
"N c #E8F6FD",
"O c #F5F9FD",
"P c #F5FBFD",
"Q c #FCFCFD",
"R c #FDFDFD",
" 089a00 ",
" 7POPOOO7 ",
"3LLLNLMLe456524 ",
"1KKKKKHKIIHKIKJ1",
"|FFFFFFFG<<<<<<<",
"}DDEDEBC<wQQQQy<",
"[zA<<<<<qQsttrr<",
":x/mQQQQQlmllll(",
"_v{jiihjiiiijih~",
"^u>fggfgffgggfg;",
"]p-ddcdcccbcbcc=",
"!n&RRRRRRRRRRRo*",
")n%RRRRRRRRRRRo%",
"'k#oooooooooooo$",
" ,...@+@+.++@@. ",
" "};