Solving wrong behavior of the MyExpander's Enable button.

This commit is contained in:
Hombrenatureh.510
2015-03-12 00:00:02 +01:00
parent c071095c56
commit d12cb196fe
2 changed files with 11 additions and 26 deletions

View File

@@ -98,6 +98,7 @@ private:
bool inconsistent; /// True if the enabled button is inconsistent
Gtk::EventBox *titleEvBox; /// EventBox of the title, to get a connector from it
Gtk::HBox *headerHBox;
bool flushEvent; /// Flag to control the weird event mechanism of Gtk (please prove me wrong!)
/// Triggered on opened/closed event
bool on_toggle(GdkEventButton* event);
@@ -173,6 +174,7 @@ public:
bool get_expanded();
/// Add a Gtk::Container for the content of the expander
/// Warning: do not manually Show/Hide the widget, because this parameter is handled by the click on the Expander's title
void add (Gtk::Container& widget);
};