Re: problem with callback

2008-03-21 Thread Ustun ERGENOGLU
, GDK_BUTTON2_MOTION_MASK, GDK_BUTTON_PRESS_MASK, GDK_VISIBILITY_NOTIFY_MASK) to the two drawing_area, and the respective callback, but the problem is that when I press a any key, the Gtkentry and the two drawing_are receive the signal, then call the function callback of the two drawing_area and writes

problem with callback

2008-03-21 Thread Moises
, and the respective callback, but the problem is that when I press a any key, the Gtkentry and the two drawing_are receive the signal, then call the function callback of the two drawing_area and writes the character in the Gtkentry. My question: how can I do for that when I press a key, The signal

problem with callback

2008-03-21 Thread Richard Boaz
you have gotten your panties into a serious twist. start over: when wanting to receive key press events in a drawing area, you must do all of the following: 1. set up the drawing area to receive key press and/or release events. 2. set up the drawing area to receive enter and leave notify

problem with callback

2008-03-21 Thread Moises
Thanks for advice Richard Boaz But only I have a problem with your solution, the user must have the mouse all time inside of the drawing area if he want interact with the drawing area, and if he want interact with the menu he need to move the mouse or use the keyboard for interact with the menu.

problem with callback

2008-03-19 Thread Moises
Hello again I am making a window that has a menu, two drawing_area and a GtkEntry I added the following events (GDK_BUTTON1_MOTION_MASK, GDK_BUTTON2_MOTION_MASK, GDK_BUTTON_PRESS_MASK, GDK_VISIBILITY_NOTIFY_MASK) to the two drawing_area, and the respective callback, but the problem is that when

problem with callback

2008-03-19 Thread Moises
Hello again I am making a window that has a menu, two drawing_area and a GtkEntry I added the following events (GDK_BUTTON1_MOTION_MASK, GDK_BUTTON2_MOTION_MASK, GDK_BUTTON_PRESS_MASK, GDK_VISIBILITY_NOTIFY_MASK) to the two drawing_area, and the respective callback, but the problem is that when

Re: Problem with callback functions...

2001-12-19 Thread John . Cupitt
James Vanns wrote: Okay. I have a function called create_toogle_window (). Within this function I have a few GtkWidgets initiated as GtkToggleButtons (3 of) and then one OK button. I have also a struct defined as within a header file: typedef struct _options { gboolean bss;

Problem with callback functions...

2001-12-18 Thread James Vanns
Hi everyone. Thanks in advance for at least reading my small problem! Okay. I have a function called create_toogle_window (). Within this function I have a few GtkWidgets initiated as GtkToggleButtons (3 of) and then one OK button. I have also a struct defined as within a header file: typedef