31 |
arshell.gui.layout.rows_int=8; |
arshell.gui.layout.rows_int=8; |
32 |
} |
} |
33 |
void |
void |
34 |
|
arshell_hack_transparency_with_pixmap() |
35 |
|
{ |
36 |
|
char *icon; |
37 |
|
|
38 |
|
asprintf(&icon, "%s/handtoface.xpm", (char*)ICONDIR); |
39 |
|
antiright_set_bitmap_from_file(antiright.parent_widget, icon); |
40 |
|
free(icon); |
41 |
|
arshell.transparency_hacked=True; |
42 |
|
} |
43 |
|
void |
44 |
arshell_transparency_hack() |
arshell_transparency_hack() |
45 |
{ |
{ |
46 |
if((arshell.gui.widgets.work==NULL) & !arshell.transparency_hacked) |
if((arshell.gui.widgets.work==NULL) & !arshell.transparency_hacked) |
47 |
{ |
{ |
48 |
char *icon; |
arshell_hack_transparency_with_pixmap(); |
|
asprintf(&icon, "%s/handtoface.xpm", (char*)ICONDIR); |
|
|
antiright_set_bitmap_from_file(antiright.parent_widget, icon); |
|
|
free(icon); |
|
|
arshell.transparency_hacked=True; |
|
49 |
} |
} |
50 |
} |
} |
51 |
void |
void |
52 |
arshell_add_bitmap_button(int *counter_int, char **argv) |
arshell_add_bitmap_button(int *counter_int, char **argv) |
53 |
{ |
{ |
54 |
|
Widget button; |
55 |
arshell_transparency_hack(); |
arshell_transparency_hack(); |
56 |
(*counter_int)++; |
(*counter_int)++; |
57 |
arshell_row_layout(); |
arshell_row_layout(); |
58 |
antiright_icon_button(arshell.gui.layout.row_widget, |
button=antiright_icon_button(arshell.gui.layout.row_widget, |
59 |
argv[(*counter_int)], argv[(*counter_int)+1], |
argv[(*counter_int)], argv[(*counter_int)+1], |
60 |
arshell_system_cb, argv[(*counter_int)]); |
arshell_system_cb, argv[(*counter_int)]); |
61 |
|
antiright_set_tooltip(button, argv[(*counter_int)]); |
62 |
(*counter_int)++; |
(*counter_int)++; |
63 |
} |
} |
64 |
void |
void |
70 |
arshell_row_layout(); |
arshell_row_layout(); |
71 |
button=antiright_button(arshell.gui.layout.row_widget, argv[(*counter_int)], |
button=antiright_button(arshell.gui.layout.row_widget, argv[(*counter_int)], |
72 |
arshell_system_cb, argv[(*counter_int)]); |
arshell_system_cb, argv[(*counter_int)]); |
73 |
|
antiright_set_tooltip(button, argv[(*counter_int)]); |
74 |
(*counter_int)++; |
(*counter_int)++; |
75 |
antiright_set_bitmap_from_file(button, argv[(*counter_int)]); |
antiright_set_bitmap_from_file(button, argv[(*counter_int)]); |
76 |
} |
} |
126 |
case 'E': /* Exit when a button is pressed. */ |
case 'E': /* Exit when a button is pressed. */ |
127 |
arshell.flags.exit_on_action=True; |
arshell.flags.exit_on_action=True; |
128 |
break; |
break; |
129 |
|
/* The following only works if you have the yetanotherclib |
130 |
|
library. */ |
131 |
#ifdef HAVE_YACLIB |
#ifdef HAVE_YACLIB |
132 |
case 'f': /* Load an arshell interface definition file. */ |
case 'f': /* Load an arshell interface definition file. */ |
133 |
(*counter_int)++; |
(*counter_int)++; |