Re: Change view of GtkCheckMenuItem without trigger the action
- From: Jaroslav Šmíd <jardasmid gmail com>
- To: KC <kcc1967 gmail com>
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: Change view of GtkCheckMenuItem without trigger the action
- Date: Thu, 26 Aug 2010 22:05:25 +0200
g_signal_handlers_block_by_func() if you just want to block your signal
handler. After toggling GtkCheckMenuItem use
g_signal_handlers_unblock_by_func()
http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#g-signal-handlers-block-by-func
On 10.8.2010 8:01, KC wrote:
Hi,
Is it possible to change view (check/uncheck) of GtkCheckMenuItem without
trigger the connected ('toggled') callback function ?
I have a GUI application which also allow control from client (from network).
When user click on GtkCheckMenuItem, the application will do:
User click on GtkCheckMenuItem ---> callback, update internal data
When user issue command from client:
update internal data ---> change view of GtkCheckMenuItem without callback.
Is this possible ? Or any better approach ?
I believe this is related to MVC model for GtkWidget ...
TextView/TreeView offer MVC model, but how about other GtkWidget ?
Regards
KC
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]