Commit 642ced0c authored by Timm Bäder's avatar Timm Bäder 👎

testblur: Fix default blur radius

sync it up with the adjustment value. also just add the destroyed
parent a6350761
......@@ -37,7 +37,7 @@ snapshot_blur (GtkWidget *widget,
static void
gtk_blur_box_init (GtkBlurBox *box) {
box->radius = 1;
box->radius = 0;
static void
......@@ -83,6 +83,8 @@ main (int argc, char **argv)
gtk_init ();
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
blur_box = g_object_new (gtk_blur_box_get_type (),
"spacing", 32,
......@@ -109,7 +111,6 @@ main (int argc, char **argv)
g_signal_connect (scale, "value-changed", G_CALLBACK (value_changed_cb), blur_box);
g_signal_connect (scale, "value-changed", G_CALLBACK (value_changed_cb2), value_label);
gtk_container_add (GTK_CONTAINER (blur_box), scale);
gtk_container_add (GTK_CONTAINER (window), blur_box);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment