diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-06-02 02:23:10 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-07-13 19:40:46 +0200 |
commit | 94fd7a350288b73aeffec44fb3b18ca8a061e045 (patch) | |
tree | a5a2f6faf81909d0914473d55f39417f471c1365 /modules/other | |
parent | 72f515a0f3440c4d81f2d9e9e210c3b4a4ad8cc0 (diff) | |
download | gtk+-94fd7a350288b73aeffec44fb3b18ca8a061e045.tar.gz |
Use accessor functions to access GtkCheckMenuItem
Diffstat (limited to 'modules/other')
-rw-r--r-- | modules/other/gail/gailcheckmenuitem.c | 2 | ||||
-rw-r--r-- | modules/other/gail/gailchecksubmenuitem.c | 2 | ||||
-rw-r--r-- | modules/other/gail/tests/ferret.c | 14 |
3 files changed, 9 insertions, 9 deletions
diff --git a/modules/other/gail/gailcheckmenuitem.c b/modules/other/gail/gailcheckmenuitem.c index 9ee53ea19d..c9d285823e 100644 --- a/modules/other/gail/gailcheckmenuitem.c +++ b/modules/other/gail/gailcheckmenuitem.c @@ -100,7 +100,7 @@ gail_check_menu_item_toggled_gtk (GtkWidget *widget) accessible = gtk_widget_get_accessible (widget); atk_object_notify_state_change (accessible, ATK_STATE_CHECKED, - check_menu_item->active); + gtk_check_menu_item_get_active (check_menu_item)); } static AtkStateSet* diff --git a/modules/other/gail/gailchecksubmenuitem.c b/modules/other/gail/gailchecksubmenuitem.c index f5b7a8dba4..97f0a7ba37 100644 --- a/modules/other/gail/gailchecksubmenuitem.c +++ b/modules/other/gail/gailchecksubmenuitem.c @@ -97,7 +97,7 @@ gail_check_sub_menu_item_toggled_gtk (GtkWidget *widget) accessible = gtk_widget_get_accessible (widget); atk_object_notify_state_change (accessible, ATK_STATE_CHECKED, - check_menu_item->active); + gtk_check_menu_item_get_active (check_menu_item)); } static AtkStateSet* diff --git a/modules/other/gail/tests/ferret.c b/modules/other/gail/tests/ferret.c index 6eb4b9a297..7750fecc4f 100644 --- a/modules/other/gail/tests/ferret.c +++ b/modules/other/gail/tests/ferret.c @@ -2610,7 +2610,7 @@ void _action_cb(GtkWidget *widget, gpointer *userdata) void _toggle_terminal(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { - if (checkmenuitem->active) + if (gtk_check_menu_item_get_active (checkmenuitem)) display_ascii = TRUE; else display_ascii = FALSE; @@ -2619,7 +2619,7 @@ void _toggle_terminal(GtkCheckMenuItem *checkmenuitem, void _toggle_no_signals(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { - if (checkmenuitem->active) + if (gtk_check_menu_item_get_active (checkmenuitem)) no_signals = TRUE; else no_signals = FALSE; @@ -2628,7 +2628,7 @@ void _toggle_no_signals(GtkCheckMenuItem *checkmenuitem, void _toggle_magnifier(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { - if (checkmenuitem->active) + if (gtk_check_menu_item_get_active (checkmenuitem)) use_magnifier = TRUE; else use_magnifier = FALSE; @@ -2637,7 +2637,7 @@ void _toggle_magnifier(GtkCheckMenuItem *checkmenuitem, void _toggle_festival(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { - if (checkmenuitem->active) + if (gtk_check_menu_item_get_active (checkmenuitem)) use_festival = TRUE; else use_festival = FALSE; @@ -2646,7 +2646,7 @@ void _toggle_festival(GtkCheckMenuItem *checkmenuitem, void _toggle_festival_terse(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { - if (checkmenuitem->active) + if (gtk_check_menu_item_get_active (checkmenuitem)) { say_role = FALSE; say_accel = FALSE; @@ -2661,7 +2661,7 @@ void _toggle_festival_terse(GtkCheckMenuItem *checkmenuitem, void _toggle_trackmouse(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { - if (checkmenuitem->active) + if (gtk_check_menu_item_get_active (checkmenuitem)) { mouse_watcher_focus_id = atk_add_global_event_listener(_mouse_watcher, @@ -2685,7 +2685,7 @@ void _toggle_trackmouse(GtkCheckMenuItem *checkmenuitem, void _toggle_trackfocus(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { - if (checkmenuitem->active) + if (gtk_check_menu_item_get_active (checkmenuitem)) { track_focus = TRUE; focus_tracker_id = atk_add_focus_tracker (_print_accessible); |