From: xenic <par...@us...> - 2010-03-27 16:26:20
|
Update of /cvsroot/ajabberwocky/jabberwocky/src In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv18185/jabberwocky/src Modified Files: chat.c Log Message: Added savestr object and change notification from the popasl button to the savestr string object. Index: chat.c =================================================================== RCS file: /cvsroot/ajabberwocky/jabberwocky/src/chat.c,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** chat.c 23 Mar 2010 04:48:52 -0000 1.30 --- chat.c 27 Mar 2010 16:26:11 -0000 1.31 *************** *** 101,105 **** { struct chatdata *data; ! Object *txt, *list, *str, *clrbut, *savebut, *xferbut; juser u; --- 101,105 ---- { struct chatdata *data; ! Object *txt, *list, *str, *clrbut, *savebut, *savestr, *xferbut; juser u; *************** *** 117,122 **** Child, HGroup, Child, clrbut = mui_button(MSG_CHAT_FLUSH_GAD), ! Child, savebut = (Object *) PopaslObject, ! MUIA_Popstring_String, StringObject, MUIA_ShowMe, FALSE, // invisible string gadget MUIA_String_MaxLen, MAXPATHLEN, --- 117,122 ---- Child, HGroup, Child, clrbut = mui_button(MSG_CHAT_FLUSH_GAD), ! Child, savebut = PopaslObject, ! MUIA_Popstring_String, savestr = StringObject, MUIA_ShowMe, FALSE, // invisible string gadget MUIA_String_MaxLen, MAXPATHLEN, *************** *** 156,164 **** data->txt = txt; data->save = savebut; // popasl object ! DoMethod(clrbut, MUIM_Notify, MUIA_Pressed, FALSE, obj, 1, CHAT_FLUSH); DoMethod(xferbut, MUIM_Notify, MUIA_Pressed, FALSE, obj, 1, CHAT_XFER); ! DoMethod(savebut, MUIM_Notify, MUIA_Disabled, FALSE, obj, 1, CHAT_SAVE); DoMethod(str, MUIM_Notify, MUIA_String_Acknowledge, MUIV_EveryTime, obj, 1, CHAT_SEND); --- 156,165 ---- data->txt = txt; data->save = savebut; // popasl object ! data->savestr = savestr; // string gadget of popasl object DoMethod(clrbut, MUIM_Notify, MUIA_Pressed, FALSE, obj, 1, CHAT_FLUSH); DoMethod(xferbut, MUIM_Notify, MUIA_Pressed, FALSE, obj, 1, CHAT_XFER); ! // DoMethod(savebut, MUIM_Notify, MUIA_Disabled, FALSE, obj, 1, CHAT_SAVE); ! DoMethod(savestr, MUIM_Notify, MUIA_String_Acknowledge, MUIV_EveryTime, obj, 1, CHAT_SAVE); DoMethod(str, MUIM_Notify, MUIA_String_Acknowledge, MUIV_EveryTime, obj, 1, CHAT_SEND); |