gtk-demo: queue_draw() when the color changes

This commit is contained in:
Benjamin Otte 2017-01-03 23:34:53 +01:00
parent 901106fd95
commit 2f5737cc1c

View File

@ -32,7 +32,10 @@ response_cb (GtkDialog *dialog,
gpointer user_data)
{
if (response_id == GTK_RESPONSE_OK)
gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (dialog), &color);
{
gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (dialog), &color);
gtk_widget_queue_draw (da);
}
gtk_widget_destroy (GTK_WIDGET (dialog));
}