diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-03-02 09:37:10 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-03-02 09:57:53 -0500 |
commit | b1c28151f6d44720c1975427f1ec9d030ebdff22 (patch) | |
tree | eb67fdfd6cd7cbdc901ec7815cd1838401368573 /demos | |
parent | d52417512c2610fec678f65b6644b75259d1f203 (diff) | |
download | gtk+-b1c28151f6d44720c1975427f1ec9d030ebdff22.tar.gz |
gtk-demo: fix the colorsel example
It is necessary to hide the dialog on "response", else it won't
go away.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/colorsel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/gtk-demo/colorsel.c b/demos/gtk-demo/colorsel.c index 4cdfeee21c..6c46607ae3 100644 --- a/demos/gtk-demo/colorsel.c +++ b/demos/gtk-demo/colorsel.c @@ -40,6 +40,8 @@ response_cb (GtkDialog *dialog, gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (dialog), &color); gtk_widget_override_background_color (da, 0, &color); } + + gtk_widget_hide (GTK_WIDGET (dialog)); } static void |