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 /gtk/gtkhsv.c | |
parent | 85a58dddba28d49332c0cf8679a7f821e81c7c78 (diff) | |
download | gdk-pixbuf-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)
Diffstat (limited to 'gtk/gtkhsv.c')
-rw-r--r-- | gtk/gtkhsv.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gtk/gtkhsv.c b/gtk/gtkhsv.c index a7e5ae6fd..a30d9fa06 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) |