[gtkhtml] Adapt to recent GTK+ changes



commit 98c3af6f46dec78dfeff926e082a46fdfbc2b0ac
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Dec 22 10:10:13 2010 -0500

    Adapt to recent GTK+ changes
    
    Use g_object_unref instead of gdk_cursor_unref. Bump the GTK+ dep
    to 2.91.7 for this change.

 configure.ac      |    2 +-
 gtkhtml/gtkhtml.c |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e6f0a9d..27c7b21 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,7 +9,7 @@ AC_CONFIG_SRCDIR(README)
 PACKAGE=gtkhtml
 
 dnl Required Package Versions
-m4_define([gtk_minimum_version], [2.90.4])
+m4_define([gtk_minimum_version], [2.91.7])
 m4_define([enchant_minimum_version], [1.1.7])
 m4_define([gnome_icon_theme_minimum_version], [2.22.0])
 m4_define([cairo_minimum_version], [1.10.0])
diff --git a/gtkhtml/gtkhtml.c b/gtkhtml/gtkhtml.c
index 60f0401..0475ed5 100644
--- a/gtkhtml/gtkhtml.c
+++ b/gtkhtml/gtkhtml.c
@@ -779,12 +779,12 @@ dispose (GObject *object)
 	html->pointer_url = NULL;
 
 	if (html->hand_cursor) {
-		gdk_cursor_unref (html->hand_cursor);
+		g_object_unref (html->hand_cursor);
 		html->hand_cursor = NULL;
 	}
 
 	if (html->ibeam_cursor) {
-		gdk_cursor_unref (html->ibeam_cursor);
+		g_object_unref (html->ibeam_cursor);
 		html->ibeam_cursor = NULL;
 	}
 
@@ -816,7 +816,7 @@ dispose (GObject *object)
 		}
 
 		if (html->priv->resize_cursor) {
-			gdk_cursor_unref (html->priv->resize_cursor);
+			g_object_unref (html->priv->resize_cursor);
 			html->priv->resize_cursor = NULL;
 		}
 



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