Commit 4c7b1d074e52daa42a3a8a70e2f3336d1d7f8b99
1 parent
4f5db0e5
Exists in
master
and in
5 other branches
Incluindo pequenas macros para compatibilizar com versões um pouco mais antigas do gtk
Showing
2 changed files
with
11 additions
and
1 deletions
Show diff stats
pw3270.spec.in
... | ... | @@ -66,7 +66,7 @@ Source: %{name}-%{version}.tar.gz |
66 | 66 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
67 | 67 | Requires: openssl shared-mime-info |
68 | 68 | Distribution: %_distro |
69 | -BuildRequires: autoconf automake gcc-c++ sed pkgconfig %{_vrsgtk}-devel gettext-devel libopenssl-devel findutils coreutils rsvg-view desktop-file-utils | |
69 | +BuildRequires: autoconf automake gcc-c++ sed pkgconfig %{_vrsgtk}-devel gettext-devel libopenssl-devel findutils coreutils desktop-file-utils | |
70 | 70 | |
71 | 71 | %description |
72 | 72 | IBM 3270 terminal emulator gtk. It can be used to communicate with | ... | ... |
src/pw3270/v3270/private.h
... | ... | @@ -194,6 +194,16 @@ gboolean v3270_draw(GtkWidget * widget, cairo_t * cr); |
194 | 194 | void v3270_draw_oia(cairo_t *cr, H3270 *host, int row, int cols, struct v3270_metrics *metrics, GdkColor *color, GdkRectangle *rect); |
195 | 195 | void v3270_update_mouse_pointer(GtkWidget *widget); |
196 | 196 | |
197 | +#if ! GTK_CHECK_VERSION(2,20,0) | |
198 | + #define gtk_widget_get_realized(w) GTK_WIDGET_REALIZED(w) | |
199 | + #define gtk_widget_set_realized(w,r) if(r) { GTK_WIDGET_SET_FLAGS(w,GTK_REALIZED); } else { GTK_WIDGET_UNSET_FLAGS(w,GTK_REALIZED); } | |
200 | +#endif // !GTK(2,20) | |
201 | + | |
202 | +#if ! GTK_CHECK_VERSION(2,22,0) | |
203 | + #define gtk_accessible_set_widget(a,w) g_object_set_data(G_OBJECT(a),"widget",w) | |
204 | + #define gtk_accessible_get_widget(a) GTK_WIDGET(g_object_get_data(G_OBJECT(a),"widget")) | |
205 | +#endif // !GTK(2,22) | |
206 | + | |
197 | 207 | #if ! GTK_CHECK_VERSION(3,0,0) |
198 | 208 | gboolean v3270_expose(GtkWidget * widget, GdkEventExpose *event); |
199 | 209 | #endif // GTK 3 | ... | ... |