gtk-demo: fix the colorsel example

It is necessary to hide the dialog on "response", else it won't
go away.
This commit is contained in:
Matthias Clasen 2012-03-02 09:37:10 -05:00
parent d52417512c
commit b1c28151f6

View File

@ -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