You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-calculators/tiemu/files/tiemu-3.03-remove_depreciat...

233 lines
5.1 KiB

--- a/src/gui/debugger/dbg_bkpts.c
+++ b/src/gui/debugger/dbg_bkpts.c
@@ -29,10 +29,15 @@
# include <config.h>
#endif
+#include <string.h>
#include <gtk/gtk.h>
#include <glade/glade.h>
-#include <string.h>
+#if GTK_CHECK_VERSION(2,18,0)
+#undef GTK_WIDGET_VISIBLE
+#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
+#endif
+
#include "intl.h"
#include "paths.h"
#include "support.h"
--- a/src/gui/debugger/dbg_regs.c
+++ b/src/gui/debugger/dbg_regs.c
@@ -28,14 +28,19 @@
# include <config.h>
#endif
-#include <gtk/gtk.h>
-#include <glade/glade.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <ctype.h>
+#include <gtk/gtk.h>
+#include <glade/glade.h>
#include <gdk/gdkkeysyms.h>
+#if GTK_CHECK_VERSION(2,18,0)
+#undef GTK_WIDGET_VISIBLE
+#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
+#endif
+
#include "intl.h"
#include "paths.h"
#include "support.h"
--- a/src/gui/debugger/dbg_pclog.c
+++ b/src/gui/debugger/dbg_pclog.c
@@ -31,6 +31,11 @@
#include <gtk/gtk.h>
#include <glade/glade.h>
+#if GTK_CHECK_VERSION(2,18,0)
+#undef GTK_WIDGET_VISIBLE
+#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
+#endif
+
#include "intl.h"
#include "paths.h"
#include "support.h"
--- a/src/gui/debugger/dbg_wnds.c
+++ b/src/gui/debugger/dbg_wnds.c
@@ -38,6 +38,11 @@
#include <windows.h>
#endif
+#if GTK_CHECK_VERSION(2,18,0)
+#undef GTK_WIDGET_VISIBLE
+#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
+#endif
+
#include "intl.h"
#include "ti68k_int.h"
#include "struct.h"
--- a/src/gui/debugger/dbg_mem.c
+++ b/src/gui/debugger/dbg_mem.c
@@ -33,6 +33,11 @@
#include <glade/glade.h>
#include <gdk/gdkkeysyms.h>
+#if GTK_CHECK_VERSION(2,18,0)
+#undef GTK_WIDGET_VISIBLE
+#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
+#endif
+
#include <stdio.h>
#include <stdint.h>
#include <string.h>
--- a/src/gui/debugger/dbg_iop.c
+++ b/src/gui/debugger/dbg_iop.c
@@ -28,13 +28,18 @@
# include <config.h>
#endif
-#include <gtk/gtk.h>
-#include <glade/glade.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <ctype.h>
+#include <gtk/gtk.h>
+#include <glade/glade.h>
+#if GTK_CHECK_VERSION(2,18,0)
+#undef GTK_WIDGET_VISIBLE
+#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
+#endif
+
#include "intl.h"
#include "paths.h"
#include "support.h"
--- a/src/gui/debugger/dbg_stack.c
+++ b/src/gui/debugger/dbg_stack.c
@@ -28,11 +28,16 @@
# include <config.h>
#endif
+#include <stdlib.h>
#include <gtk/gtk.h>
#include <glade/glade.h>
#include <gdk/gdkkeysyms.h>
-#include <stdlib.h>
+#if GTK_CHECK_VERSION(2,18,0)
+#undef GTK_WIDGET_VISIBLE
+#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
+#endif
+
#include "intl.h"
#include "paths.h"
#include "support.h"
--- a/src/gui/debugger/dbg_all.c
+++ b/src/gui/debugger/dbg_all.c
@@ -38,6 +38,13 @@
#include <windows.h>
#endif
+#if GTK_CHECK_VERSION(2,18,0)
+#undef GTK_WIDGET_SENSITIVE
+#define GTK_WIDGET_SENSITIVE(wid) (gtk_widget_get_sensitive(wid))
+#undef GTK_WIDGET_VISIBLE
+#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
+#endif
+
#include "ti68k_int.h"
#include "struct.h"
#include "dbg_all.h"
--- a/src/gui/debugger/dbg_code.c
+++ b/src/gui/debugger/dbg_code.c
@@ -28,11 +28,16 @@
# include <config.h>
#endif
+#include <string.h>
#include <gtk/gtk.h>
#include <glade/glade.h>
#include <gdk/gdkkeysyms.h>
-#include <string.h>
+#if GTK_CHECK_VERSION(2,18,0)
+#undef GTK_WIDGET_SENSITIVE
+#define GTK_WIDGET_SENSITIVE(wid) (gtk_widget_get_sensitive(wid))
+#endif
+
#include "intl.h"
#include "paths.h"
#include "support.h"
--- a/src/gui/debugger/dbg_heap.c
+++ b/src/gui/debugger/dbg_heap.c
@@ -31,6 +31,11 @@
#include <gtk/gtk.h>
#include <glade/glade.h>
+#if GTK_CHECK_VERSION(2,18,0)
+#undef GTK_WIDGET_VISIBLE
+#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
+#endif
+
#include "intl.h"
#include "paths.h"
#include "support.h"
--- a/src/gui/debugger/dbg_dock.c
+++ b/src/gui/debugger/dbg_dock.c
@@ -37,11 +37,16 @@
# include <config.h>
#endif
+#include <string.h>
#include <gtk/gtk.h>
#include <glade/glade.h>
#include <gdk/gdkkeysyms.h>
-#include <string.h>
+#if GTK_CHECK_VERSION(2,18,0)
+#undef GTK_WIDGET_VISIBLE
+#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
+#endif
+
#include "intl.h"
#include "paths.h"
#include "support.h"
--- a/src/gui/calc/calc.c
+++ b/src/gui/calc/calc.c
@@ -39,6 +39,11 @@
#include <glade/glade.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
+#if GTK_CHECK_VERSION(2,18,0)
+#undef GTK_WIDGET_STATE
+#define GTK_WIDGET_STATE(wid) (gtk_widget_get_state(wid))
+#endif
+
#include "intl.h"
#include "paths.h"
#include "skinops.h"
--- a/src/gui/calc/screen.c
+++ b/src/gui/calc/screen.c
@@ -29,11 +29,16 @@
# include <config.h>
#endif /* */
+#include <string.h>
#include <gtk/gtk.h>
#include <glade/glade.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <string.h>
+#if GTK_CHECK_VERSION(2,18,0)
+#undef GTK_WIDGET_STATE
+#define GTK_WIDGET_STATE(wid) (gtk_widget_get_state(wid))
+#endif
+
#include "intl.h"
#include "paths.h"
#include "skinops.h"