[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: |
Sun, 19 Dec 2004 12:19:58 -0500 |
CVSROOT: /cvsroot/antiright
Module name: antiright
Branch:
Changes by: Jeffrey Bedard <address@hidden> 04/12/19 17:07:27
Modified files:
src/arshell : arguments.c
Log message:
Moved pixmap-specific functions to pixmap.c.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/antiright/antiright/src/arshell/arguments.c.diff?tr1=1.13&tr2=1.14&r1=text&r2=text
Patches:
Index: antiright/src/arshell/arguments.c
diff -u antiright/src/arshell/arguments.c:1.13
antiright/src/arshell/arguments.c:1.14
--- antiright/src/arshell/arguments.c:1.13 Thu Dec 16 23:55:47 2004
+++ antiright/src/arshell/arguments.c Sun Dec 19 17:07:26 2004
@@ -23,67 +23,14 @@
#include "arshell.h"
void
-arshell_initialize_layout_values()
-{
- arshell.gui.layout.row_manager_widget=NULL;
- arshell.gui.layout.row_widget=NULL;
- arshell.gui.layout.row_counter_int=0;
- 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)
- {
- 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();
- 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
-arshell_add_icon_button(int *counter_int, char **argv)
-{
- Widget button;
- arshell_transparency_hack();
- (*counter_int)++;
- 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)]);
-}
-void
arshell_add_lower_button()
{
Widget button;
arshell_row_layout();
assert(arshell.gui.layout.row_widget);
- button=antiright_button(arshell.gui.layout.row_widget, "Lower",
+ button=antiright_panel_button(arshell.gui.layout.row_widget, "Lower",
arshell_lower_mainwindow_cb, NULL);
antiright_set_tooltip(button, "Lower the panel.");
-
}
void
arshell_handle_construction_arguments(int *counter_int, char **argv)
@@ -138,13 +85,22 @@
}
printf("LENGTH:%d;COUNTER:%d;OPTION:%s\n", length, counter, option);
fflush(stdout);
- if(!strncmp(option, "help", length-2))
+ length-=2;
+ if(!strncmp(option, "help", length))
{
arshell_usage();
}
- if(!strncmp(option, "test", length-2))
+ if(!strncmp(option, "fifo", length))
+ {
+ (*counter_int)++;
+ antiright_fifo_server(argv[(*counter_int)], argv[(*counter_int)+1]);
+ (*counter_int)++;
+ }
+ if(!strncmp(option, "test", length))
{
- puts("test");
+ puts("TESTING");
+ antiright_pipe_write("cut -d ' ' -f 2", "num 1 2 3");
+ puts("TESTING");
exit(0);
}
}