/[antiright]/antiright/src/arshell/arguments.c
ViewVC logotype

Diff of /antiright/src/arshell/arguments.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by jefbed, Mon Aug 9 22:45:02 2004 UTC revision 1.7 by jefbed, Mon Aug 16 17:27:05 2004 UTC
# Line 31  arshell_initialize_layout_values() Line 31  arshell_initialize_layout_values()
31    arshell.gui.layout.rows_int=8;    arshell.gui.layout.rows_int=8;
32  }  }
33  void  void
34    arshell_transparency_hack()
35    {
36      if(arshell.gui.widgets.work==NULL & !arshell.transparency_hacked)
37        {
38          char *icon;
39          asprintf(&icon, "%s/handtoface.xpm", ICONDIR);
40          antiright_set_bitmap_from_file(antiright.parent_widget, icon);
41          free(icon);
42          arshell.transparency_hacked=True;
43        }
44            
45    }
46    void
47  arshell_add_bitmap_button(int *counter_int, char **argv)  arshell_add_bitmap_button(int *counter_int, char **argv)
48  {  {
49      arshell_transparency_hack();
50    (*counter_int)++;    (*counter_int)++;
51    arshell_row_layout();    arshell_row_layout();
52    antiright_icon_button(arshell.gui.layout.row_widget,    antiright_icon_button(arshell.gui.layout.row_widget,
# Line 40  arshell_add_bitmap_button(int *counter_i Line 54  arshell_add_bitmap_button(int *counter_i
54                          arshell_system_cb, argv[(*counter_int)]);                          arshell_system_cb, argv[(*counter_int)]);
55    (*counter_int)++;    (*counter_int)++;
56  }  }
57    void
58    arshell_add_icon_button(int *counter_int, char **argv)
59    {
60      Widget button;
61      arshell_transparency_hack();
62      (*counter_int)++;
63      arshell_row_layout();
64      button=antiright_button(arshell.gui.layout.row_widget, argv[(*counter_int)],
65                              arshell_system_cb, argv[(*counter_int)]);
66      (*counter_int)++;
67      antiright_label_set_bitmap_from_file(button, argv[(*counter_int)]);
68    }
69  void  void
70  arshell_handle_construction_arguments(int *counter_int, char **argv)  arshell_handle_construction_arguments(int *counter_int, char **argv)
71  {  {
# Line 55  arshell_handle_construction_arguments(in Line 80  arshell_handle_construction_arguments(in
80      case 'D': /* Add a dialog.  */      case 'D': /* Add a dialog.  */
81        arshell_handle_dialog_arguments(counter_int, argv);        arshell_handle_dialog_arguments(counter_int, argv);
82        break;        break;
83        case 'i': /* Add an icon without a label.  */
84          arshell_add_icon_button(counter_int, argv);
85          break;
86      case 'l': /* Add a label.  */      case 'l': /* Add a label.  */
87        (*counter_int)++;        (*counter_int)++;
88        ARCLARG;        ARCLARG;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26