[gtk+/rendering-cleanup: 120/124] API: remove GdkGC members of public structs



commit c168056acf458e37f6b4c172751af48d0a2514e3
Author: Benjamin Otte <otte redhat com>
Date:   Thu Jul 22 02:50:48 2010 +0200

    API: remove GdkGC members of public structs
    
    They were all de-facto unused. Remove code that still referenced them.

 gtk/gtkcalendar.h |    3 ---
 gtk/gtkpaned.c    |    7 -------
 gtk/gtkpaned.h    |    1 -
 gtk/gtkruler.h    |    1 -
 4 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/gtk/gtkcalendar.h b/gtk/gtkcalendar.h
index 4420169..fd74cd3 100644
--- a/gtk/gtkcalendar.h
+++ b/gtk/gtkcalendar.h
@@ -118,9 +118,6 @@ struct _GtkCalendar
   GtkCalendarDisplayOptions  GSEAL (display_flags);
   GdkColor GSEAL (marked_date_color[31]);
   
-  GdkGC *GSEAL (gc);			/* unused */
-  GdkGC *GSEAL (xor_gc);		/* unused */
-
   gint GSEAL (focus_row);
   gint GSEAL (focus_col);
 
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index f1103fb..7622246 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -576,7 +576,6 @@ gtk_paned_init (GtkPaned *paned)
   paned->child1 = NULL;
   paned->child2 = NULL;
   paned->handle = NULL;
-  paned->xor_gc = NULL;
   paned->cursor_type = GDK_CROSS;
   
   paned->handle_pos.width = 5;
@@ -1024,12 +1023,6 @@ gtk_paned_unrealize (GtkWidget *widget)
 {
   GtkPaned *paned = GTK_PANED (widget);
 
-  if (paned->xor_gc)
-    {
-      g_object_unref (paned->xor_gc);
-      paned->xor_gc = NULL;
-    }
-
   if (paned->handle)
     {
       gdk_window_set_user_data (paned->handle, NULL);
diff --git a/gtk/gtkpaned.h b/gtk/gtkpaned.h
index 1a28611..7f57aa8 100644
--- a/gtk/gtkpaned.h
+++ b/gtk/gtkpaned.h
@@ -55,7 +55,6 @@ struct _GtkPaned
   GtkWidget *GSEAL (child2);
 
   GdkWindow *GSEAL (handle);
-  GdkGC *GSEAL (xor_gc);
   GdkCursorType GSEAL (cursor_type);
 
   /*< private >*/
diff --git a/gtk/gtkruler.h b/gtk/gtkruler.h
index 07203ea..0c7e6eb 100644
--- a/gtk/gtkruler.h
+++ b/gtk/gtkruler.h
@@ -67,7 +67,6 @@ struct _GtkRuler
   GtkWidget widget;
 
   GdkPixmap *GSEAL (backing_store);
-  GdkGC *GSEAL (non_gr_exp_gc);		/* unused */
   GtkRulerMetric *GSEAL (metric);
   gint GSEAL (xsrc);
   gint GSEAL (ysrc);



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