[gtk+/refactor: 3/7] gail: we cant access button->in_button directly now.



commit 312abaedafc65434706ef6ab6b45bcf96ca78fab
Author: Javier Jardón <jjardon gnome org>
Date:   Tue Oct 19 18:46:07 2010 +0200

    gail: we cant access button->in_button directly now.
    
    Commented some code until some gail expert can fix this.

 modules/other/gail/gailbutton.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/modules/other/gail/gailbutton.c b/modules/other/gail/gailbutton.c
index 8e0fee4..8a18726 100644
--- a/modules/other/gail/gailbutton.c
+++ b/modules/other/gail/gailbutton.c
@@ -539,7 +539,9 @@ idle_do_action (gpointer data)
 	case 0:
 	  /* first a press */ 
 
+          /* FIXME: Do not access public member
 	  button->in_button = TRUE;
+          */
 	  g_signal_emit_by_name (button, "enter");
 	  /*
 	   * Simulate a button press event. calling gtk_button_pressed() does
@@ -557,11 +559,15 @@ idle_do_action (gpointer data)
 	  /* then a release */
 	  tmp_event.button.type = GDK_BUTTON_RELEASE;
 	  gtk_widget_event (widget, &tmp_event);
+          /* FIXME: Do not access public member
 	  button->in_button = FALSE;
+          */
 	  g_signal_emit_by_name (button, "leave");
 	  break;
 	case 1:
+          /* FIXME: Do not access public member
 	  button->in_button = TRUE;
+          */
 	  g_signal_emit_by_name (button, "enter");
 	  /*
 	   * 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);
 	  break;
 	case 2:
+          /* FIXME: Do not access public member
 	  button->in_button = FALSE;
+          */
 	  g_signal_emit_by_name (button, "leave");
 	  break;
 	default:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]