Rename OG_W32 to OG_WIN32.
This commit is contained in:
parent
3c7d8d51ac
commit
50c5df7fa2
4 changed files with 10 additions and 13 deletions
|
@ -23,7 +23,7 @@
|
|||
|
||||
#import "OGWidget.h"
|
||||
|
||||
#ifdef OG_W32
|
||||
#ifdef OG_WIN32
|
||||
typedef struct s_OGBoxChild
|
||||
{
|
||||
HWND hwnd;
|
||||
|
@ -37,7 +37,7 @@ typedef struct s_OGBoxChild
|
|||
#endif
|
||||
|
||||
@interface OGBox: OGWidget
|
||||
#ifdef OG_W32
|
||||
#ifdef OG_WIN32
|
||||
{ OGBoxChild *firstBorn; }
|
||||
- (void)resizeChildren;
|
||||
#endif
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
id <OGComboBoxDataSource> dataSource;
|
||||
}
|
||||
|
||||
#ifdef OG_W32
|
||||
#ifdef OG_WIN32
|
||||
//unfortunately, the built-in Win32 ListBox stores a pointer to it's parent (for sending selection changed notifications) during CreateWindow().
|
||||
//it does not update it after a SetParent()... unless we implement a custom ListBox control i don't see a way around this...
|
||||
- initWithParent : (OGWidget *)parent;
|
||||
|
|
|
@ -21,10 +21,9 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OG_GTK
|
||||
#if defined(OG_GTK)
|
||||
# include <gtk/gtk.h>
|
||||
#endif
|
||||
#ifdef OG_W32
|
||||
#elif defined(OG_WIN32)
|
||||
# include <windows.h>
|
||||
#endif
|
||||
|
||||
|
@ -33,10 +32,9 @@
|
|||
@interface OGWidget: OFObject
|
||||
{
|
||||
@public
|
||||
#ifdef OG_GTK
|
||||
#if defined(OG_GTK)
|
||||
GtkWidget *widget;
|
||||
#endif
|
||||
#ifdef OG_W32
|
||||
#elif defined(OG_WIN32)
|
||||
HWND widget;
|
||||
#endif
|
||||
}
|
||||
|
@ -45,9 +43,8 @@
|
|||
- (void)hide;
|
||||
@end
|
||||
|
||||
#ifdef OG_GTK
|
||||
#if defined(OG_GTK)
|
||||
extern void og_destroy(GtkWidget*, OGWidget*);
|
||||
#endif
|
||||
#ifdef OG_W32
|
||||
#elif defined(OG_WIN32)
|
||||
extern void og_destroy(HWND widget, OGWidget *object);
|
||||
#endif
|
||||
|
|
Reference in a new issue