GtkXPaned: Remove xor_gc member.
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 27 May 2013 10:23:18 +0000 (12:23 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 28 May 2013 14:04:33 +0000 (16:04 +0200)
This member was allocated and deallocated, but never used!

lib/gtk-contrib/gtkxpaned.c
lib/gtk-contrib/gtkxpaned.h

index b465b7db5842719b54a1a04939ba032d8f79d4e6..bb1309ff07ba77b581ea00d185152f6b0da1bf6d 100644 (file)
@@ -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);
index 302db9944c9b915d3939eef091e19f65ab92550c..62d920eb54260bbdf008dbe1f5218022afae8bd5 100644 (file)
@@ -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;