[gtkhtml/gtk3] Adapt to recent GTK+ changes



commit 4258b1a13cb2cc8bd8a03b3f1ec6b3b057c98286
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 6abf2cd..eeff8c6 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 fad8c85..3044edc 100644
--- a/gtkhtml/gtkhtml.c
+++ b/gtkhtml/gtkhtml.c
@@ -782,12 +782,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;
 	}
 
@@ -819,7 +819,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]