Commit 89661a9ac61c04bf39534d40ea9588a1c650dcb1
1 parent
ae9753db
Exists in
master
and in
5 other branches
Corrigindo erros ao compilar com gtk mais antigo
Showing
3 changed files
with
2 additions
and
3 deletions
Show diff stats
src/include/pw3270/v3270.h
| @@ -49,6 +49,7 @@ | @@ -49,6 +49,7 @@ | ||
| 49 | #if ! GTK_CHECK_VERSION(3,0,0) | 49 | #if ! GTK_CHECK_VERSION(3,0,0) |
| 50 | #define GdkRGBA GdkColor | 50 | #define GdkRGBA GdkColor |
| 51 | #define gdk_cairo_set_source_rgba(cr,cl) gdk_cairo_set_source_color(cr,cl) | 51 | #define gdk_cairo_set_source_rgba(cr,cl) gdk_cairo_set_source_color(cr,cl) |
| 52 | + #define gdk_rgba_parse(a,b) gdk_color_parse(b,a) | ||
| 52 | #define gdk_rgba_to_string(c) gdk_color_to_string(c) | 53 | #define gdk_rgba_to_string(c) gdk_color_to_string(c) |
| 53 | #define gdk_rgba_equal(a,b) gdk_color_equal(a,b) | 54 | #define gdk_rgba_equal(a,b) gdk_color_equal(a,b) |
| 54 | #define gdk_rgba_to_string(c) gdk_color_to_string(c) | 55 | #define gdk_rgba_to_string(c) gdk_color_to_string(c) |
src/pw3270/colors.c
| @@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
| 31 | #include "globals.h" | 31 | #include "globals.h" |
| 32 | 32 | ||
| 33 | //#if GTK_CHECK_VERSION(3,4,0) | 33 | //#if GTK_CHECK_VERSION(3,4,0) |
| 34 | - #ifdef DEBUG | 34 | + #if defined(DEBUG) && GTK_CHECK_VERSION(3,4,0) |
| 35 | #define USE_GTK_COLOR_CHOOSER 1 | 35 | #define USE_GTK_COLOR_CHOOSER 1 |
| 36 | #endif // GTK_CHECK_VERSION | 36 | #endif // GTK_CHECK_VERSION |
| 37 | 37 |
src/pw3270/v3270/private.h
| @@ -241,8 +241,6 @@ void v3270_update_mouse_pointer(GtkWidget *widget); | @@ -241,8 +241,6 @@ void v3270_update_mouse_pointer(GtkWidget *widget); | ||
| 241 | 241 | ||
| 242 | 242 | ||
| 243 | #if ! GTK_CHECK_VERSION(3,0,0) | 243 | #if ! GTK_CHECK_VERSION(3,0,0) |
| 244 | - | ||
| 245 | -#define GdkRGBA | ||
| 246 | gboolean v3270_expose(GtkWidget * widget, GdkEventExpose *event); | 244 | gboolean v3270_expose(GtkWidget * widget, GdkEventExpose *event); |
| 247 | #endif // GTK 3 | 245 | #endif // GTK 3 |
| 248 | 246 |