Re: check and uncheck Gtk::CheckButton without toggle signal emitted?
- From: "Tiberius DULUMAN" <tiberius duluman gmail com>
- To: gtkmm-list gnome org
- Subject: Re: check and uncheck Gtk::CheckButton without toggle signal emitted?
- Date: Fri, 6 Jun 2008 10:19:24 +0300
I think you can use block and unblock methods of sigc::connection
object returned when you connect the signal handler. This is the
relevant part of my code where I need to change the selected row
of a tree view without calling the signal handler.
sigc::connection signalActiveElement;
signalActiveElement = treeView.get_selection()->signal_changed().connect(...);
// temporary disable changes in active element
signalActiveElement.block();
[...]
// reenable active element
signalActiveElement.unblock();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]