diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2001-08-07 20:28:44 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2001-08-07 20:28:44 +0000 |
commit | f9cc44268e73e108d09ff8bf3a35f358b2daa3fb (patch) | |
tree | 7a5b8e2215dd26536e28f9291093835d877ef457 | |
parent | 85a58dddba28d49332c0cf8679a7f821e81c7c78 (diff) | |
download | gtk+-f9cc44268e73e108d09ff8bf3a35f358b2daa3fb.tar.gz |
gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
functions in order to make mouse operation work again in the
color wheel. (#58604)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-0 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-2 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 6 | ||||
-rw-r--r-- | gtk/gtkhsv.c | 37 |
8 files changed, 79 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de> + + * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these + functions in order to make mouse operation work again in the + color wheel. (#58604) + 2001-08-07 James Henstridge <james@daa.com.au> * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index ff8ade769e..b8d06336e6 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de> + + * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these + functions in order to make mouse operation work again in the + color wheel. (#58604) + 2001-08-07 James Henstridge <james@daa.com.au> * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index ff8ade769e..b8d06336e6 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de> + + * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these + functions in order to make mouse operation work again in the + color wheel. (#58604) + 2001-08-07 James Henstridge <james@daa.com.au> * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index ff8ade769e..b8d06336e6 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de> + + * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these + functions in order to make mouse operation work again in the + color wheel. (#58604) + 2001-08-07 James Henstridge <james@daa.com.au> * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index ff8ade769e..b8d06336e6 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de> + + * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these + functions in order to make mouse operation work again in the + color wheel. (#58604) + 2001-08-07 James Henstridge <james@daa.com.au> * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index ff8ade769e..b8d06336e6 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de> + + * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these + functions in order to make mouse operation work again in the + color wheel. (#58604) + 2001-08-07 James Henstridge <james@daa.com.au> * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index ff8ade769e..b8d06336e6 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de> + + * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these + functions in order to make mouse operation work again in the + color wheel. (#58604) + 2001-08-07 James Henstridge <james@daa.com.au> * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch diff --git a/gtk/gtkhsv.c b/gtk/gtkhsv.c index a7e5ae6fd7..a30d9fa068 100644 --- a/gtk/gtkhsv.c +++ b/gtk/gtkhsv.c @@ -87,6 +87,8 @@ enum { static void gtk_hsv_class_init (GtkHSVClass *class); static void gtk_hsv_init (GtkHSV *hsv); static void gtk_hsv_destroy (GtkObject *object); +static void gtk_hsv_map (GtkWidget *widget); +static void gtk_hsv_unmap (GtkWidget *widget); static void gtk_hsv_realize (GtkWidget *widget); static void gtk_hsv_unrealize (GtkWidget *widget); static void gtk_hsv_size_request (GtkWidget *widget, @@ -160,6 +162,8 @@ gtk_hsv_class_init (GtkHSVClass *class) object_class->destroy = gtk_hsv_destroy; + widget_class->map = gtk_hsv_map; + widget_class->unmap = gtk_hsv_unmap; widget_class->realize = gtk_hsv_realize; widget_class->unrealize = gtk_hsv_unrealize; widget_class->size_request = gtk_hsv_size_request; @@ -261,6 +265,39 @@ gtk_hsv_destroy (GtkObject *object) /* Default signal handlers */ + +/* Map handler for the HSV color selector */ + +static void +gtk_hsv_map (GtkWidget *widget) +{ + GtkHSV *hsv; + HSVPrivate *priv; + + hsv = GTK_HSV (widget); + priv = hsv->priv; + + GTK_WIDGET_CLASS (parent_class)->map (widget); + + gdk_window_show (priv->window); +} + +/* Unmap handler for the HSV color selector */ + +static void +gtk_hsv_unmap (GtkWidget *widget) +{ + GtkHSV *hsv; + HSVPrivate *priv; + + hsv = GTK_HSV (widget); + priv = hsv->priv; + + gdk_window_hide (priv->window); + + GTK_WIDGET_CLASS (parent_class)->unmap (widget); +} + /* Realize handler for the HSV color selector */ static void gtk_hsv_realize (GtkWidget *widget) |