[gnumeric] Compilation: work around the need for gtk_widget_get_window



commit 7d9325cba19ec50fc391a72945791d7380ae9f34
Author: Morten Welinder <terra gnome org>
Date:   Tue Aug 25 14:30:04 2009 -0400

    Compilation: work around the need for gtk_widget_get_window

 configure.in      |    2 +-
 src/item-cursor.c |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/configure.in b/configure.in
index bbb7da4..e48fab4 100644
--- a/configure.in
+++ b/configure.in
@@ -668,7 +668,7 @@ LIBS="$GNUMERIC_LIBS $LIBS"
 
 AC_CHECK_FUNCS(g_date_set_time_t g_slice_alloc g_option_context_set_delocalize)
 AC_CHECK_FUNCS(pango_font_map_create_context)
-AC_CHECK_FUNCS(gtk_recent_manager_get_default gtk_orientable_set_orientation gtk_adjustment_configure gsf_open_pkg_foreach_rel)
+AC_CHECK_FUNCS(gtk_recent_manager_get_default gtk_orientable_set_orientation gtk_adjustment_configure gtk_widget_get_window gsf_open_pkg_foreach_rel)
 AC_CHECK_FUNCS(gsf_infile_msvba_steal_modules)
 
 AC_MSG_CHECKING([for PANGO_WEIGHT_THIN etc.])
diff --git a/src/item-cursor.c b/src/item-cursor.c
index a588fea..425e8a0 100644
--- a/src/item-cursor.c
+++ b/src/item-cursor.c
@@ -37,6 +37,10 @@
 #include <goffice/goffice.h>
 #define GNUMERIC_ITEM "CURSOR"
 
+#ifndef HAVE_GTK_WIDGET_GET_WINDOW
+#define gtk_widget_get_window(w) ((w)->window)
+#endif
+
 #define ITEM_CURSOR_CLASS(k)      (G_TYPE_CHECK_CLASS_CAST ((k), item_cursor_get_type (), ItemCursorClass))
 
 #define AUTO_HANDLE_WIDTH	2



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]