More changes to various controls for more reliably
preventing them from emitting event when their state was changed programatically. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -54,6 +54,8 @@ public:
|
||||
|
||||
GtkWidget *m_widgetCheckbox;
|
||||
GtkWidget *m_widgetLabel;
|
||||
|
||||
bool m_blockEvent;
|
||||
|
||||
protected:
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
|
@@ -50,6 +50,8 @@ public:
|
||||
bool IsOwnGtkWindow( GdkWindow *window );
|
||||
void OnInternalIdle();
|
||||
|
||||
bool m_blockEvent;
|
||||
|
||||
protected:
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
|
||||
|
@@ -62,7 +62,7 @@ public:
|
||||
GdkColor *m_fg;
|
||||
GdkColor *m_bg;
|
||||
|
||||
bool m_blockNextEvent;
|
||||
bool m_blockEvent;
|
||||
|
||||
void OnInternalIdle();
|
||||
|
||||
|
@@ -63,12 +63,10 @@ public:
|
||||
void SetLabel(const wxString& label);
|
||||
bool Enable(bool enable = TRUE);
|
||||
|
||||
protected:
|
||||
// Callback function given to gtk
|
||||
static void gtk_togglebutton_clicked_callback(GtkWidget *widget,
|
||||
wxToggleButton *win);
|
||||
|
||||
// implementation
|
||||
bool m_blockEvent;
|
||||
|
||||
// wx stuff
|
||||
void ApplyWidgetStyle();
|
||||
bool IsOwnGtkWindow(GdkWindow *window);
|
||||
|
||||
|
Reference in New Issue
Block a user