comparison lwlib/lwlib-Xm.c @ 402:5a2589c672dc r21-2-31

Import from CVS: tag r21-2-31
author cvs
date Mon, 13 Aug 2007 11:14:58 +0200
parents a86b2b5e0111
children b8cc9ab3f761
comparison
equal deleted inserted replaced
401:e0a2a2be14bf 402:5a2589c672dc
789 val->edited = False; 789 val->edited = False;
790 790
791 /* Common to all widget types */ 791 /* Common to all widget types */
792 XtSetArg (al [ac], XmNsensitive, val->enabled); ac++; 792 XtSetArg (al [ac], XmNsensitive, val->enabled); ac++;
793 XtSetArg (al [ac], XmNuserData, val->call_data); ac++; 793 XtSetArg (al [ac], XmNuserData, val->call_data); ac++;
794 lw_add_value_args_to_args (val, al, &ac);
795
796 XtSetValues (widget, al, ac); 794 XtSetValues (widget, al, ac);
797 795
798 #if defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_MENUBARS_MOTIF) || defined (LWLIB_WIDGETS_MOTIF) 796 #if defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_MENUBARS_MOTIF) || defined (LWLIB_WIDGETS_MOTIF)
799 /* Common to all label like widgets */ 797 /* Common to all label like widgets */
800 if (XtIsSubclass (widget, xmLabelWidgetClass)) 798 if (XtIsSubclass (widget, xmLabelWidgetClass))
854 else if (class == xmScrollBarWidgetClass) 852 else if (class == xmScrollBarWidgetClass)
855 { 853 {
856 xm_update_scrollbar (instance, widget, val); 854 xm_update_scrollbar (instance, widget, val);
857 } 855 }
858 #endif 856 #endif
857 /* Lastly update our global arg values. */
858 if (val->args && val->args->nargs)
859 XtSetValues (widget, val->args->args, val->args->nargs);
859 } 860 }
860 861
861 /* getting the value back */ 862 /* getting the value back */
862 void 863 void
863 xm_update_one_value (widget_instance* instance, Widget widget, 864 xm_update_one_value (widget_instance* instance, Widget widget,