paragui-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-cvs] CVS: paragui/src/widgets pglistbox.cpp,1.3.6.1,1.3.6.2 pgl


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/src/widgets pglistbox.cpp,1.3.6.1,1.3.6.2 pglistboxbaseitem.cpp,1.3.6.1,1.3.6.2 pgwidget.cpp,1.4,1.4.4.1
Date: Thu, 02 May 2002 04:45:40 -0400

Update of /cvsroot/paragui/paragui/src/widgets
In directory subversions:/tmp/cvs-serv32451/src/widgets

Modified Files:
      Tag: devel-1-0
        pglistbox.cpp pglistboxbaseitem.cpp pgwidget.cpp 
Log Message:
removed unneccessary mutex locks
added check for strdup
added replacement if strdup is unavailable
fixed deletion of listboxitems within the message handler



Index: pglistbox.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pglistbox.cpp,v
retrieving revision 1.3.6.1
retrieving revision 1.3.6.2
diff -C2 -r1.3.6.1 -r1.3.6.2
*** pglistbox.cpp       28 Apr 2002 21:14:59 -0000      1.3.6.1
--- pglistbox.cpp       2 May 2002 08:45:36 -0000       1.3.6.2
***************
*** 38,42 ****
  }
  
! PG_ListBox::~PG_ListBox() {}
  
  void PG_ListBox::AddWidget(PG_Widget* w) {
--- 38,43 ----
  }
  
! PG_ListBox::~PG_ListBox() {
! }
  
  void PG_ListBox::AddWidget(PG_Widget* w) {
***************
*** 85,90 ****
        }
  
        SendMessage(NULL, MSG_SELECTITEM, GetID(), (unsigned long)item);
! //    eventSelectItem(item);
  }
  
--- 86,92 ----
        }
  
+       Update();
        SendMessage(NULL, MSG_SELECTITEM, GetID(), (unsigned long)item);
!       eventSelectItem(item);
  }
  

Index: pglistboxbaseitem.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pglistboxbaseitem.cpp,v
retrieving revision 1.3.6.1
retrieving revision 1.3.6.2
diff -C2 -r1.3.6.1 -r1.3.6.2
*** pglistboxbaseitem.cpp       28 Apr 2002 21:14:59 -0000      1.3.6.1
--- pglistboxbaseitem.cpp       2 May 2002 08:45:36 -0000       1.3.6.2
***************
*** 39,43 ****
  }
  
! PG_ListBoxBaseItem::~PG_ListBoxBaseItem() {}
  
  void PG_ListBoxBaseItem::SetUserData(void* userdata) {
--- 39,48 ----
  }
  
! PG_ListBoxBaseItem::~PG_ListBoxBaseItem() {
!       if(GetParent()->GetSelectedItem() == this) {
!               GetParent()->SelectItem(NULL);
!               GetParent()->RemoveWidget(this, true, true);
!       }
! }
  
  void PG_ListBoxBaseItem::SetUserData(void* userdata) {
***************
*** 60,70 ****
                        GetParent()->SelectItem(this);
                }
-               /*else {
-                       GetParent()->Blit(false);
-       }*/
        }
- 
-       Update();
-       GetParent()->eventSelectItem(this);
  }
  
--- 65,69 ----

Index: pgwidget.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pgwidget.cpp,v
retrieving revision 1.4
retrieving revision 1.4.4.1
diff -C2 -r1.4 -r1.4.4.1
*** pgwidget.cpp        26 Apr 2002 12:43:23 -0000      1.4
--- pgwidget.cpp        2 May 2002 08:45:36 -0000       1.4.4.1
***************
*** 1517,1521 ****
  
        // unlock the mutex
!       SDL_mutexV(my_mutexReceiveMessage);
  
        while(!my_internaldata->quitModalLoop) {
--- 1517,1521 ----
  
        // unlock the mutex
!       //SDL_mutexV(my_mutexReceiveMessage);
  
        while(!my_internaldata->quitModalLoop) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]