[gtk+/rendering-cleanup: 64/124] hsv: Remove unused variable
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 64/124] hsv: Remove unused variable
- Date: Thu, 22 Jul 2010 02:04:02 +0000 (UTC)
commit ae03d604b35f91262d806785f4e3a79221b689f8
Author: Benjamin Otte <otte redhat com>
Date: Thu Jul 15 05:40:05 2010 +0200
hsv: Remove unused variable
gtk/gtkhsv.c | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkhsv.c b/gtk/gtkhsv.c
index a59090b..d94bdb9 100644
--- a/gtk/gtkhsv.c
+++ b/gtk/gtkhsv.c
@@ -69,9 +69,6 @@ typedef struct {
/* Window for capturing events */
GdkWindow *window;
- /* GC for drawing */
- GdkGC *gc;
-
/* Dragging mode */
DragMode mode;
@@ -307,10 +304,6 @@ gtk_hsv_realize (GtkWidget *widget)
gdk_window_set_user_data (priv->window, hsv);
widget->style = gtk_style_attach (widget->style, widget->window);
-
- /* Create GC */
-
- priv->gc = gdk_gc_new (parent_window);
}
/* Unrealize handler for the HSV color selector */
@@ -327,9 +320,6 @@ gtk_hsv_unrealize (GtkWidget *widget)
gdk_window_destroy (priv->window);
priv->window = NULL;
- g_object_unref (priv->gc);
- priv->gc = NULL;
-
GTK_WIDGET_CLASS (gtk_hsv_parent_class)->unrealize (widget);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]