135 |
Widget button; |
Widget button; |
136 |
ARCLARG; |
ARCLARG; |
137 |
antiright_set(XmNshadowThickness, 0); |
antiright_set(XmNshadowThickness, 0); |
138 |
button=antiright_button(parent, "button", arshell_open_cb, NULL); |
button=antiright_button(parent, "button", callback, client_data); |
139 |
antiright_set_tooltip(button, description); |
antiright_set_tooltip(button, description); |
140 |
antiright_set_pixmap_from_data(button, icon); |
antiright_set_pixmap_from_data(button, icon); |
141 |
ARCLARG; |
ARCLARG; |
151 |
} |
} |
152 |
|
|
153 |
void |
void |
154 |
arshell_toggle_toolbar_cb(Widget widget, XtPointer client_data, XtPointer call_data) |
arshell_toggle_toolbar_cb(Widget widget, |
155 |
|
XtPointer client_data, XtPointer call_data) |
156 |
{ |
{ |
157 |
if(XmToggleButtonGetState(widget)) |
if(XmToggleButtonGetState(widget)) |
158 |
{ |
{ |
168 |
XtUnmanageChild(XtParent(XtParent(arshell.edit.toolbar))); |
XtUnmanageChild(XtParent(XtParent(arshell.edit.toolbar))); |
169 |
} |
} |
170 |
} |
} |
171 |
|
client_data=NULL; |
172 |
|
call_data=NULL; |
173 |
} |
} |
174 |
|
|
175 |
void |
void |
176 |
arshell_setup_editor_toolbar() |
arshell_setup_editor_toolbar() |
177 |
{ |
{ |
|
Widget button; |
|
178 |
arshell_initialize_row_manager(); |
arshell_initialize_row_manager(); |
179 |
ARCLARG; |
ARCLARG; |
180 |
antiright_set(XmNmarginWidth, 0); |
antiright_set(XmNmarginWidth, 0); |