Re: Event propagation question, part 2.

2012-11-02 Thread Yury Alyaev
Sorry, seems one attachmen is lost. Here is the example code itself: #include static GtkWidget *thing[2]; static gboolean destroy(void) { gtk_main_quit(); return FALSE; } static void toggled(GtkToggleButton *b) { gboolean state = gtk_toggle_button_get_active(b);

Event propagation question, part 2.

2012-11-01 Thread Yury Alyaev
Hello all, I have managed to know some details in my problem. For those who didn't read previous messages, the problem is following (in a bit simplified manner): GtkButton contains a box which in turn contains two custom widgets, one is shown and another is hidden. When I hide one widget and

Re: Event propagation question.

2012-10-15 Thread Yury Alyaev
I have prepared the almost minimal code for demonstrating the problem: http://dl.dropbox.com/u/66392348/test.tar.bz2 The detailed behavior is rather strange: after the first click, when the toggle button change its state, the button stops to process "activated" and "clicked" events although "bu

Re: Event propagation question.

2012-10-10 Thread Ardhan Madras
Sorry but I obviously will not compile and run the outdated program just to look at the behaviour, because you know I have to deal with all old dependencies, it is pain. I think you need to make the scope more small, try to adapt the code into a small program to demonstrate the problem and compile

Re: Event propagation question.

2012-10-10 Thread Ardhan Madras
Can you share the source? so we can see why it is not working. Regards. On Wed, Oct 10, 2012 at 1:59 PM, Yury Alyaev wrote: > Hello all, > > I'm porting an application from Gtk+-1 to Gtk+-2 and one problem has > appeared. I have the following object: toggle button containing vbox with > three wi

Event propagation question.

2012-10-10 Thread Yury Alyaev
Hello all, I'm porting an application from Gtk+-1 to Gtk+-2 and one problem has appeared. I have the following object: toggle button containing vbox with three widgets inside. Depending on the toggle button state one of the first two widgets inside vbox is hidden and another one is shown. Whe