forked from AuroraMiddleware/gtk
gail: we cant access button->in_button directly now.
Commented some code until some gail expert can fix this.
This commit is contained in:
parent
dec57f8ce9
commit
9fa0edd928
@ -539,7 +539,9 @@ idle_do_action (gpointer data)
|
|||||||
case 0:
|
case 0:
|
||||||
/* first a press */
|
/* first a press */
|
||||||
|
|
||||||
|
/* FIXME: Do not access public member
|
||||||
button->in_button = TRUE;
|
button->in_button = TRUE;
|
||||||
|
*/
|
||||||
g_signal_emit_by_name (button, "enter");
|
g_signal_emit_by_name (button, "enter");
|
||||||
/*
|
/*
|
||||||
* Simulate a button press event. calling gtk_button_pressed() does
|
* Simulate a button press event. calling gtk_button_pressed() does
|
||||||
@ -557,11 +559,15 @@ idle_do_action (gpointer data)
|
|||||||
/* then a release */
|
/* then a release */
|
||||||
tmp_event.button.type = GDK_BUTTON_RELEASE;
|
tmp_event.button.type = GDK_BUTTON_RELEASE;
|
||||||
gtk_widget_event (widget, &tmp_event);
|
gtk_widget_event (widget, &tmp_event);
|
||||||
|
/* FIXME: Do not access public member
|
||||||
button->in_button = FALSE;
|
button->in_button = FALSE;
|
||||||
|
*/
|
||||||
g_signal_emit_by_name (button, "leave");
|
g_signal_emit_by_name (button, "leave");
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
|
/* FIXME: Do not access public member
|
||||||
button->in_button = TRUE;
|
button->in_button = TRUE;
|
||||||
|
*/
|
||||||
g_signal_emit_by_name (button, "enter");
|
g_signal_emit_by_name (button, "enter");
|
||||||
/*
|
/*
|
||||||
* Simulate a button press event. calling gtk_button_pressed() does
|
* Simulate a button press event. calling gtk_button_pressed() does
|
||||||
@ -577,7 +583,9 @@ idle_do_action (gpointer data)
|
|||||||
gtk_widget_event (widget, &tmp_event);
|
gtk_widget_event (widget, &tmp_event);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
/* FIXME: Do not access public member
|
||||||
button->in_button = FALSE;
|
button->in_button = FALSE;
|
||||||
|
*/
|
||||||
g_signal_emit_by_name (button, "leave");
|
g_signal_emit_by_name (button, "leave");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user