24 |
|
|
25 |
|
|
26 |
void |
void |
27 |
arshell_hack_transparency_with_pixmap() |
arshell_hack_transparency_with_pixmap () |
28 |
{ |
{ |
29 |
char *icon; |
char *icon; |
30 |
|
|
31 |
asprintf(&icon, "%s/antiright.xpm", (char*)ICONDIR); |
asprintf (&icon, "%s/antiright.xpm", (char *) ICONDIR); |
32 |
antiright_set_bitmap_from_file(antiright.parent_widget, icon); |
antiright_set_bitmap_from_file (antiright.parent_widget, icon); |
33 |
free(icon); |
free (icon); |
34 |
arshell.transparency_hacked=True; |
arshell.transparency_hacked = True; |
35 |
} |
} |
36 |
|
|
37 |
void |
void |
38 |
arshell_transparency_hack() |
arshell_transparency_hack () |
39 |
{ |
{ |
40 |
if((arshell.gui.widgets.work==NULL) & !arshell.transparency_hacked) |
if ((arshell.gui.widgets.work == NULL) & !arshell.transparency_hacked) |
41 |
{ |
{ |
42 |
arshell_hack_transparency_with_pixmap(); |
arshell_hack_transparency_with_pixmap (); |
43 |
} |
} |
44 |
} |
} |
45 |
void |
void |
46 |
arshell_add_bitmap_button(int *counter_int, char **argv) |
arshell_add_bitmap_button (int *counter_int, char **argv) |
47 |
{ |
{ |
48 |
Widget button; |
Widget button; |
49 |
arshell_transparency_hack(); |
arshell_transparency_hack (); |
50 |
(*counter_int)++; |
(*counter_int)++; |
51 |
arshell_row_layout(); |
arshell_row_layout (); |
52 |
button=antiright_icon_button(arshell.gui.layout.row_widget, |
button = antiright_icon_button (arshell.gui.layout.row_widget, |
53 |
argv[(*counter_int)], argv[(*counter_int)+1], |
argv[(*counter_int)], |
54 |
arshell_system_cb, argv[(*counter_int)]); |
argv[(*counter_int) + 1], arshell_system_cb, |
55 |
antiright_set_tooltip(button, argv[(*counter_int)]); |
argv[(*counter_int)]); |
56 |
|
antiright_set_tooltip (button, argv[(*counter_int)]); |
57 |
(*counter_int)++; |
(*counter_int)++; |
58 |
} |
} |
59 |
|
|
60 |
void |
void |
61 |
arshell_add_icon_button(int *counter_int, char **argv) |
arshell_add_icon_button (int *counter_int, char **argv) |
62 |
{ |
{ |
63 |
Widget button; |
Widget button; |
64 |
arshell_transparency_hack(); |
arshell_transparency_hack (); |
65 |
(*counter_int)++; |
(*counter_int)++; |
66 |
arshell_row_layout(); |
arshell_row_layout (); |
67 |
button=antiright_button(arshell.gui.layout.row_widget, argv[(*counter_int)], |
button = |
68 |
arshell_system_cb, argv[(*counter_int)]); |
antiright_button (arshell.gui.layout.row_widget, argv[(*counter_int)], |
69 |
antiright_set_tooltip(button, argv[(*counter_int)]); |
arshell_system_cb, argv[(*counter_int)]); |
70 |
|
antiright_set_tooltip (button, argv[(*counter_int)]); |
71 |
(*counter_int)++; |
(*counter_int)++; |
72 |
antiright_set_bitmap_from_file(button, argv[(*counter_int)]); |
antiright_set_bitmap_from_file (button, argv[(*counter_int)]); |
73 |
} |
} |
|
|
|