[gtk/wip/baedert/for-master: 2/13] testblur: Fix default blur radius
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 2/13] testblur: Fix default blur radius
- Date: Fri, 29 Nov 2019 13:45:43 +0000 (UTC)
commit 7f0595214464f2f0774ebb66e975ed968fc5d1f9
Author: Timm Bäder <mail baedert org>
Date: Tue Nov 19 15:40:08 2019 +0100
testblur: Fix default blur radius
sync it up with the adjustment value. also just add the destroyed
handler.
tests/testblur.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tests/testblur.c b/tests/testblur.c
index 028356d1e6..99632ffd9c 100644
--- a/tests/testblur.c
+++ b/tests/testblur.c
@@ -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 (),
"orientation", GTK_ORIENTATION_VERTICAL,
"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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]