/* AntiRight (c) 2002-2005 Jeffrey Bedard jefbed@e-list.net This file is part of AntiRight. AntiRight is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. AntiRight is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with AntiRight; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "library.h" void antiright_set(String name, XtArgVal value) { XtSetArg(antiright.arguments[antiright.arguments_int], name, value); antiright.arguments_int++; } void antiright_xmstring_resource(Widget widget, String name, char *string) { XmString motif_string=antiright_motif_string(string); XtVaSetValues(widget, name, motif_string, NULL); XmStringFree(motif_string); } void antiright_set_values(Widget widget) { XtSetValues(widget, antiright.arguments, antiright.arguments_int); } void antiright_get_values(Widget widget) { XtGetValues(widget, antiright.arguments, antiright.arguments_int); } void antiright_set_tooltip(Widget widget, char *tooltip_string) { #ifdef XmNtoolTipString antiright_xmstring_resource(widget, XmNtoolTipString, tooltip_string); #else widget=NULL; tooltip_string=NULL; #endif /* XmNtoolTipString */ }