gtk_action_block_activate fails to block ?!?
- From: Olivier Sessink <oliviersessink gmail com>
- To: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: gtk_action_block_activate fails to block ?!?
- Date: Tue, 29 Jun 2010 23:00:08 +0200
Hi all,
I have a GtkToggleAction in a menu that I need to synchronize with the
state in the application. I don't want the callback called when I
update the state from within the application. According to the
documentation this is what gtk_action_block_activate should do, but
the callback is still called !?
GtkAction *action = gtk_action_group_get_action(actiongroup, actionname);
if (gtk_toggle_action_get_active(GTK_TOGGLE_ACTION(action))!=value) {
gtk_action_block_activate(action);
gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), value);
gtk_action_unblock_activate(action);
}
is this a bug or do I misunderstand something?
Olivier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]