Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for tucniak/cuchar/cc_key.c between version 1.2 and 1.3

version 1.2, 2005/11/27 20:14:50 version 1.3, 2005/11/29 18:46:31
Line 1 
Line 1 
 /*  /*
   Name: lc_key.c    Name: cc_key.c
   Author: Michal Sudolsky    Author: Michal Sudolsky <michals@sulysoft.com>
   Date: 22.09.2005 14:45    Date: 22.09.2005 14:45
 */  */
 // modified by Juraj Kolesar <koli@koli.sk>  // modified by Juraj Kolesar <koli@koli.sk>
Line 322  bool dosendsyskeymessage(WIN *spcfocus,u
Line 322  bool dosendsyskeymessage(WIN *spcfocus,u
     vscroll=&list->vscroll->extra->scroll;      vscroll=&list->vscroll->extra->scroll;
     hscroll=&list->hscroll->extra->scroll;      hscroll=&list->hscroll->extra->scroll;
     actline=list->activeline;      actline=list->activeline;
     numlines=g_list_length(list->lines);      numlines=list->numlines;
     switch(key)      switch(key)
     {      {
       case KK_LEFT:if(hscroll->pos>hscroll->minpos){hscroll->pos--;chang=true;}gets=true;break;        case KK_LEFT:if(hscroll->pos>hscroll->minpos){hscroll->pos--;chang=true;}gets=true;break;
Line 345  bool dosendsyskeymessage(WIN *spcfocus,u
Line 345  bool dosendsyskeymessage(WIN *spcfocus,u
       if(list->dblclk!=NULL)        if(list->dblclk!=NULL)
       {        {
         if((list->combotyp==CT_COMBO)&&(spcfocus->parent!=NULL)&&          if((list->combotyp==CT_COMBO)&&(spcfocus->parent!=NULL)&&
            (spcfocus->parent->extra->type==TP_COMBO))             (spcfocus->parent->extra->type==TP_COMBO)&&(list->activeitem!=NULL))
         {          {
           combo=&spcfocus->parent->extra->combo;            combo=&spcfocus->parent->extra->combo;
           char *data=g_list_nth_data(list->lines,list->activeline);            char *data=list->activeitem->data;
           set_text(combo->edit,data);            set_text(combo->edit,data);
         }          }
         list->dblclk(spcfocus);          list->dblclk(spcfocus);
Line 372  bool dosendsyskeymessage(WIN *spcfocus,u
Line 372  bool dosendsyskeymessage(WIN *spcfocus,u
     if(list->activeline-spcfocus->vy+3>vscroll->pos)vscroll->pos=list->activeline-spcfocus->vy+3;      if(list->activeline-spcfocus->vy+3>vscroll->pos)vscroll->pos=list->activeline-spcfocus->vy+3;
     if(actline!=list->activeline)      if(actline!=list->activeline)
     {      {
         setlistactiveitem(list,actline,list->activeline);
       if(list->change!=NULL)list->change(spcfocus);        if(list->change!=NULL)list->change(spcfocus);
       chang=true;        chang=true;
     }      }
Line 381  bool dosendsyskeymessage(WIN *spcfocus,u
Line 382  bool dosendsyskeymessage(WIN *spcfocus,u
     list=&combo->list->extra->list;      list=&combo->list->extra->list;
     vscroll=&list->vscroll->extra->scroll;      vscroll=&list->vscroll->extra->scroll;
     actline=combo->activeline;      actline=combo->activeline;
     numlines=g_list_length(list->lines);      numlines=list->numlines;
     x=spcfocus->vx-1;      x=spcfocus->vx-1;
     y=0;      y=0;
     client_to_screen(spcfocus,&x,&y);      client_to_screen(spcfocus,&x,&y);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top