Re: How to add new Signals in a class
- From: vasista sarma <svasista novell com>
- To: gtk-app-devel-list gnome org
- Subject: Re: How to add new Signals in a class
- Date: Fri, 29 Oct 2004 17:00:28 +0530
ok let me explain the exact situation i am in i have a GtkButtonClass
which i have used for "clicked" and "pressed" events .
The code would look something like this
GtkButtonClass * button_class= (GtkButtonClass *)kclass;
button_class->clicked = button_clicked;
button_class->pressed = button_pressed;
staic void button_clicked (GtkButton *button)
{
blah.. blah..
}
same is for button_pressed.
These two functions are getting invoked for button pressed and Click
events.
Now i want to write something for drag motion as well
something like (this i want when other application is hovered over
button).
button_class->drag_motion= button_drag_motion();
How can i achieve this. Please give an example on how to do this
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]