inline void SetEventHandler(wxEvtHandler *handler) { m_eventHandler = handler; }
inline wxEvtHandler *GetEventHandler() { return m_eventHandler; }
-public:
+ inline void SetClientData( void* clientData ) { m_clientData = clientData; }
+ inline void* GetClientData() const { return m_clientData; }
+
+// implementation
+
int FindMenuIdByMenuItem( GtkWidget *menuItem ) const;
void SetInvokingWindow( wxWindow *win );
wxWindow *GetInvokingWindow();
wxWindow *m_invokingWindow;
wxFunction m_callback;
wxEvtHandler *m_eventHandler;
+ void *m_clientData;
GtkWidget *m_menu; // GtkMenu
};
inline void SetEventHandler(wxEvtHandler *handler) { m_eventHandler = handler; }
inline wxEvtHandler *GetEventHandler() { return m_eventHandler; }
-public:
+ inline void SetClientData( void* clientData ) { m_clientData = clientData; }
+ inline void* GetClientData() const { return m_clientData; }
+
+// implementation
+
int FindMenuIdByMenuItem( GtkWidget *menuItem ) const;
void SetInvokingWindow( wxWindow *win );
wxWindow *GetInvokingWindow();
wxWindow *m_invokingWindow;
wxFunction m_callback;
wxEvtHandler *m_eventHandler;
+ void *m_clientData;
GtkWidget *m_menu; // GtkMenu
};
m_items.DeleteContents( TRUE );
m_invokingWindow = (wxWindow *) NULL;
m_menu = gtk_menu_new(); // Do not show!
+
m_callback = func;
m_eventHandler = this;
+ m_clientData = (void*) NULL;
+
if (m_title.IsNull()) m_title = "";
if (m_title != "")
{
// ... and put into the upper left hand corner of the table
m_widget = gtk_table_new(bHasHScrollbar ? 2 : 1, 2, FALSE);
gtk_table_attach( GTK_TABLE(m_widget), m_text, 0, 1, 0, 1,
- (GtkAttachOptions)(GTK_FILL | GTK_EXPAND),
+ (GtkAttachOptions)(GTK_FILL | GTK_EXPAND | GTK_SHRINK),
(GtkAttachOptions)(GTK_FILL | GTK_EXPAND | GTK_SHRINK),
0, 0);
m_items.DeleteContents( TRUE );
m_invokingWindow = (wxWindow *) NULL;
m_menu = gtk_menu_new(); // Do not show!
+
m_callback = func;
m_eventHandler = this;
+ m_clientData = (void*) NULL;
+
if (m_title.IsNull()) m_title = "";
if (m_title != "")
{
// ... and put into the upper left hand corner of the table
m_widget = gtk_table_new(bHasHScrollbar ? 2 : 1, 2, FALSE);
gtk_table_attach( GTK_TABLE(m_widget), m_text, 0, 1, 0, 1,
- (GtkAttachOptions)(GTK_FILL | GTK_EXPAND),
+ (GtkAttachOptions)(GTK_FILL | GTK_EXPAND | GTK_SHRINK),
(GtkAttachOptions)(GTK_FILL | GTK_EXPAND | GTK_SHRINK),
0, 0);