[Glade-users] GtkEventBox problems
- From: kappka tlen pl (kappa)
- Subject: [Glade-users] GtkEventBox problems
- Date: Thu, 31 Mar 2005 17:43:27 +0200
Hello!
I have a problem with (not) receiving events by GtkEventBox.
I want the GtkImage widget to receive a mouse button press event.
I put it inside the GtkEventBox and set the signal for mouse buttons
(for eventbox): on_eventbox3_button_press_event
In callbacks.c I got:
gboolean on_eventbox3_button_press_event (GtkWidget *widget,
GdkEventButton *event, gpointer user_data)
{
g_printf("Image Pressed ");
return FALSE;
}
I have also a button:
void on_button2_clicked(GtkButton *button, gpointer user_data)
{
g_print("Button Pressed");
}
My problem is that during executing the program, there is no output
after pressing the image.
But the most weird thing for me is that the "Image Pressed" message
appears AFTER I click the button.
If I click image 3 times and then a button, all the messages appear at
the same time (after clicking the button).
It seems like the events for the GtkEventBox were collected somewhere
and executed after clicking an object such like button.
Greetz,
kappa
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]