Update of /cvsroot/mahogany/M/include/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24170/include/gui
Modified Files:
wxOptionsPage.h
Log Message:
fixed non-working buttons in the compose page of the identity edit dialog
Index: wxOptionsPage.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/gui/wxOptionsPage.h,v
retrieving revision 1.66
retrieving revision 1.67
diff -b -u -2 -r1.66 -r1.67
--- wxOptionsPage.h 10 Feb 2004 22:44:05 -0000 1.66
+++ wxOptionsPage.h 21 Apr 2004 21:54:12 -0000 1.67
@@ -173,4 +173,10 @@
int HelpId(void) const { return m_HelpId; }
+ /// only for HandleButton() hack, don't call directly
+ bool IsControl(wxObject *obj, size_t n) const
+ {
+ return GetControl(n) == obj;
+ }
+
protected:
/// get the name of the folder we're editing the options of
@@ -443,5 +449,12 @@
wxOptionsPageCompose(wxNotebook *parent, Profile *profile);
- void OnButton(wxCommandEvent&);
+ void OnButton(wxCommandEvent& event);
+
+ // the meat of OnButton(): also used by the identity dialog
+ //
+ // return true if btn is one of our buttons, false if we didn't handle it
+ static bool HandleButton(Profile *profile,
+ wxObject *btn,
+ wxOptionsPage *win);
private:
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates