summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-03-02 09:37:10 -0500
committerMatthias Clasen <mclasen@redhat.com>2012-03-02 09:57:53 -0500
commitb1c28151f6d44720c1975427f1ec9d030ebdff22 (patch)
treeeb67fdfd6cd7cbdc901ec7815cd1838401368573 /demos
parentd52417512c2610fec678f65b6644b75259d1f203 (diff)
downloadgtk+-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.c2
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