Difference for crossedit/CrList.c from version 1.1 to 1.2


version 1.1 version 1.2
Line 138
 
Line 138
  i++;   i++;
     } while (node);      } while (node);
   
     height = --i * FONTSIZE;      height = --i * FontSize;
     width = self->core.width;      width = self->core.width;
          
     /*** do request from parent container ***/      /*** do request from parent container ***/
Line 208
 
Line 208
 static void Insert(Widget w,XEvent *e,String *argv,Cardinal *argc)  static void Insert(Widget w,XEvent *e,String *argv,Cardinal *argc)
 {  {
     CrListWidget self = (CrListWidget)w;      CrListWidget self = (CrListWidget)w;
     CrListCall ret =  GetYCall(w, e->xbutton.y / FONTSIZE);      CrListCall ret =  GetYCall(w, e->xbutton.y / FontSize);
   
     if (!self->crList.insertCallbacks)      if (!self->crList.insertCallbacks)
  return;   return;
Line 222
 
Line 222
 static void Select(Widget new,XEvent *e,String *argv,Cardinal *argc)  static void Select(Widget new,XEvent *e,String *argv,Cardinal *argc)
 {  {
     CrListWidget self = (CrListWidget)new;      CrListWidget self = (CrListWidget)new;
     CrListCall ret =  GetYCall(new, e->xbutton.y / FONTSIZE);      CrListCall ret =  GetYCall(new, e->xbutton.y / FontSize);
   
     if (ret->index < 0) return;      if (ret->index < 0) return;
     debug1("%s-Select()\n",self->core.name);      debug1("%s-Select()\n",self->core.name);
Line 232
 
Line 232
 static void Delete(Widget new,XEvent *e,String *argv,Cardinal *argc)  static void Delete(Widget new,XEvent *e,String *argv,Cardinal *argc)
 {  {
     CrListWidget self = (CrListWidget)new;      CrListWidget self = (CrListWidget)new;
     CrListCall ret =  GetYCall(new, e->xbutton.y / FONTSIZE);      CrListCall ret =  GetYCall(new, e->xbutton.y / FontSize);
   
     if (ret->index < 0 || !self->crList.deleteCallbacks)      if (ret->index < 0 || !self->crList.deleteCallbacks)
  return;   return;
Line 294
 
Line 294
   
     if (region) {      if (region) {
  XClipBox(region,&rect);   XClipBox(region,&rect);
  rect.height = rect.height / FONTSIZE + 2;   rect.height = rect.height / FontSize + 2;
  rect.y /= FONTSIZE;   rect.y /= FontSize;
  XClearArea(XtDisplay(w),XtWindow(w), 0, rect.y * FONTSIZE,    XClearArea(XtDisplay(w),XtWindow(w), 0, rect.y * FontSize,
     0, rect.height * FONTSIZE - 1, False);      0, rect.height * FontSize - 1, False);
     } else {      } else {
  rect.y = 0;   rect.y = 0;
  XClearWindow (XtDisplay(w),XtWindow(w));   XClearWindow (XtDisplay(w),XtWindow(w));
Line 307
 
Line 307
     for (y = rect.y; node && (!region || rect.height--); y++) {      for (y = rect.y; node && (!region || rect.height--); y++) {
  debug2 ("%s Drawing %s\n", self->core.name,node->name);   debug2 ("%s Drawing %s\n", self->core.name,node->name);
  /*DrawObject(w,0,y,node);*/   /*DrawObject(w,0,y,node);*/
  FaceDraw (w, self->crList.gc, node->face, 0, y * FONTSIZE);   FaceDraw (w, self->crList.gc, node->face, 0, y * FontSize);
  XDrawString(XtDisplay(w),XtWindow(w),   XDrawString(XtDisplay(w),XtWindow(w),
      self->crList.normal_GC        self->crList.normal_GC
      /*DefaultGCOfScreen(XtScreen(w))*/,       /*DefaultGCOfScreen(XtScreen(w))*/,
      FONTSIZE + 8, y * FONTSIZE + 16,       FontSize + 8, y * FontSize + 16,
      node->name,strlen(node->name));       node->name,strlen(node->name));
  node = self->crList.next    node = self->crList.next
      ((XtPointer)self->crList.caller, (XtPointer)node);       ((XtPointer)self->crList.caller, (XtPointer)node);


Legend:
line(s) removed in v.1.1 
line(s) changed
 line(s) added in v.1.2

File made using version 1.98 of cvs2html by leaf at 2011-07-21 19:49