[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Antiright-devel] antiright/src/arshell arguments.c
From: |
Jeffrey Bedard |
Subject: |
[Antiright-devel] antiright/src/arshell arguments.c |
Date: |
Mon, 01 Nov 2004 17:03:38 -0500 |
CVSROOT: /cvsroot/antiright
Module name: antiright
Branch:
Changes by: Jeffrey Bedard <address@hidden> 04/11/01 21:57:50
Modified files:
src/arshell : arguments.c
Log message:
Expanded out arshell_hack_transparency_with_pixmap(). Further
commented area of code which is specific to yetanotherclib use.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/antiright/antiright/src/arshell/arguments.c.diff?tr1=1.10&tr2=1.11&r1=text&r2=text
Patches:
Index: antiright/src/arshell/arguments.c
diff -u antiright/src/arshell/arguments.c:1.10
antiright/src/arshell/arguments.c:1.11
--- antiright/src/arshell/arguments.c:1.10 Fri Oct 22 17:16:23 2004
+++ antiright/src/arshell/arguments.c Mon Nov 1 21:57:50 2004
@@ -31,26 +31,34 @@
arshell.gui.layout.rows_int=8;
}
void
+arshell_hack_transparency_with_pixmap()
+{
+ char *icon;
+
+ asprintf(&icon, "%s/handtoface.xpm", (char*)ICONDIR);
+ antiright_set_bitmap_from_file(antiright.parent_widget, icon);
+ free(icon);
+ arshell.transparency_hacked=True;
+}
+void
arshell_transparency_hack()
{
if((arshell.gui.widgets.work==NULL) & !arshell.transparency_hacked)
{
- char *icon;
- asprintf(&icon, "%s/handtoface.xpm", (char*)ICONDIR);
- antiright_set_bitmap_from_file(antiright.parent_widget, icon);
- free(icon);
- arshell.transparency_hacked=True;
+ arshell_hack_transparency_with_pixmap();
}
}
void
arshell_add_bitmap_button(int *counter_int, char **argv)
{
+ Widget button;
arshell_transparency_hack();
(*counter_int)++;
arshell_row_layout();
- antiright_icon_button(arshell.gui.layout.row_widget,
- argv[(*counter_int)], argv[(*counter_int)+1],
- arshell_system_cb, argv[(*counter_int)]);
+ button=antiright_icon_button(arshell.gui.layout.row_widget,
+ argv[(*counter_int)], argv[(*counter_int)+1],
+ arshell_system_cb, argv[(*counter_int)]);
+ antiright_set_tooltip(button, argv[(*counter_int)]);
(*counter_int)++;
}
void
@@ -62,6 +70,7 @@
arshell_row_layout();
button=antiright_button(arshell.gui.layout.row_widget, argv[(*counter_int)],
arshell_system_cb, argv[(*counter_int)]);
+ antiright_set_tooltip(button, argv[(*counter_int)]);
(*counter_int)++;
antiright_set_bitmap_from_file(button, argv[(*counter_int)]);
}
@@ -117,6 +126,8 @@
case 'E': /* Exit when a button is pressed. */
arshell.flags.exit_on_action=True;
break;
+ /* The following only works if you have the yetanotherclib
+ library. */
#ifdef HAVE_YACLIB
case 'f': /* Load an arshell interface definition file. */
(*counter_int)++;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Antiright-devel] antiright/src/arshell arguments.c,
Jeffrey Bedard <=