defining end emiting custom signals - is this possible ??
| From: | Łukasz Wojciechowski | Date: | Mon, 25 Jul 2005 15:08:18 +0000 |
| Subject: | defining end emiting custom signals - is this possible ?? | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-6098@lists.php.net to get a copy of this message | ||
Hello
I have Clist which represents a subset of all rows of table in DB.
I have button "Next" which loads next subset of records from DB to Clist.
I also have "status bar" in which i have a "page number".
Page number should be increased when i load next page (press "next" button).
My question is:
Can I define a signal (i.e. named "page_switched") in GtkClist Widget that I could emit manually in method that is a handler for "Next" button.
I could then connect to this custom signal a handler function which updates my "status bar".
Dont answer me like: "you can update "status bar" manually in handler that is connected to "next" button "connect" signal.
I created this example ad hoc. My real code is different.
Thanks in advance for responses
--
greetings
Łukasz Wojciechowski