Mercurial > dwindows
comparison dw.h @ 2743:a31c2e3a781e
GTK: Fix build issues due to the location of the DW_SIZE_AUTO definition.
I tried to place it with the other internal control size constants, however
they aren't used on some platforms like GTK... so had to move it to a
section where it will always be included.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 20 Dec 2021 14:19:43 +0000 |
parents | 0b1030337dd3 |
children | 858155527b05 |
comparison
equal
deleted
inserted
replaced
2742:06b368d2e4f9 | 2743:a31c2e3a781e |
---|---|
114 #define DW_GRAV_CENTER 1 | 114 #define DW_GRAV_CENTER 1 |
115 #define DW_GRAV_RIGHT 2 | 115 #define DW_GRAV_RIGHT 2 |
116 #define DW_GRAV_BOTTOM 2 | 116 #define DW_GRAV_BOTTOM 2 |
117 #define DW_GRAV_OBSTACLES (1 << 10) | 117 #define DW_GRAV_OBSTACLES (1 << 10) |
118 | 118 |
119 /* Control size constants */ | |
120 #define DW_SIZE_AUTO -1 | |
121 | |
119 /* ensure we can build the Gtk port with MingW on Windows */ | 122 /* ensure we can build the Gtk port with MingW on Windows */ |
120 #if defined(DW_USE_GTK) && defined(__MINGW32__) | 123 #if defined(DW_USE_GTK) && defined(__MINGW32__) |
121 # ifndef GDK_WINDOWING_WIN32 | 124 # ifndef GDK_WINDOWING_WIN32 |
122 # define GDK_WINDOWING_WIN32 | 125 # define GDK_WINDOWING_WIN32 |
123 # endif | 126 # endif |
138 | 141 |
139 #define _DW_SPLITBAR_WIDTH 4 | 142 #define _DW_SPLITBAR_WIDTH 4 |
140 | 143 |
141 #define _DW_SIZE_STATIC 0 | 144 #define _DW_SIZE_STATIC 0 |
142 #define _DW_SIZE_EXPAND 1 | 145 #define _DW_SIZE_EXPAND 1 |
143 | |
144 /* Control size constants */ | |
145 #define DW_SIZE_AUTO -1 | |
146 | 146 |
147 typedef struct _user_data | 147 typedef struct _user_data |
148 { | 148 { |
149 struct _user_data *next; | 149 struct _user_data *next; |
150 void *data; | 150 void *data; |