From: John Darrington Date: Mon, 27 May 2013 10:23:18 +0000 (+0200) Subject: GtkXPaned: Remove xor_gc member. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=121bfdb975c5bd373a9661da4d2d83e38f87a6be;p=pspp GtkXPaned: Remove xor_gc member. This member was allocated and deallocated, but never used! --- diff --git a/lib/gtk-contrib/gtkxpaned.c b/lib/gtk-contrib/gtkxpaned.c index b465b7db58..bb1309ff07 100644 --- a/lib/gtk-contrib/gtkxpaned.c +++ b/lib/gtk-contrib/gtkxpaned.c @@ -607,7 +607,6 @@ gtk_xpaned_init (GtkXPaned * xpaned) xpaned->handle_north = NULL; xpaned->handle_south = NULL; xpaned->handle_middle = NULL; - xpaned->xor_gc = NULL; xpaned->cursor_type_east = GDK_SB_V_DOUBLE_ARROW; xpaned->cursor_type_west = GDK_SB_V_DOUBLE_ARROW; xpaned->cursor_type_north = GDK_SB_H_DOUBLE_ARROW; @@ -1291,12 +1290,6 @@ gtk_xpaned_unrealize (GtkWidget * widget) { GtkXPaned *xpaned = GTK_XPANED (widget); - if (xpaned->xor_gc) - { - g_object_unref (xpaned->xor_gc); - xpaned->xor_gc = NULL; - } - if (xpaned->handle_east) { gdk_window_set_user_data (xpaned->handle_east, NULL); diff --git a/lib/gtk-contrib/gtkxpaned.h b/lib/gtk-contrib/gtkxpaned.h index 302db9944c..62d920eb54 100644 --- a/lib/gtk-contrib/gtkxpaned.h +++ b/lib/gtk-contrib/gtkxpaned.h @@ -67,7 +67,7 @@ struct _GtkXPaned GdkWindow *handle_north; GdkWindow *handle_south; GdkWindow *handle_middle; - GdkGC *xor_gc; + GdkCursorType cursor_type_east; GdkCursorType cursor_type_west; GdkCursorType cursor_type_north;