diff options
author | Timm Bäder <mail@baedert.org> | 2020-05-18 10:17:03 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-05-18 11:30:08 +0200 |
commit | afd56517d131c9712029b20c79dbb750c81c0583 (patch) | |
tree | 1970ff9d09841773c97b4e0931ca4078fccc72a0 /examples | |
parent | 3c7ba21a6a6f9353c6af9b489cedbb7b5aa74616 (diff) | |
download | gtk+-afd56517d131c9712029b20c79dbb750c81c0583.tar.gz |
bloatpad: Avoid a few theoretical compiler warnings
Diffstat (limited to 'examples')
-rw-r--r-- | examples/bp/bloatpad.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/examples/bp/bloatpad.c b/examples/bp/bloatpad.c index c2ea00b07f..598e1fdbf0 100644 --- a/examples/bp/bloatpad.c +++ b/examples/bp/bloatpad.c @@ -188,12 +188,11 @@ text_buffer_changed_cb (GtkTextBuffer *buffer, if (old_n < 3 && n == 3) { - GNotification *n; - n = g_notification_new ("Three lines of text"); - g_notification_set_body (n, "Keep up the good work!"); - g_notification_add_button (n, "Start over", "app.clear-all"); - g_application_send_notification (G_APPLICATION (app), "three-lines", n); - g_object_unref (n); + GNotification *notification = g_notification_new ("Three lines of text"); + g_notification_set_body (notification, "Keep up the good work!"); + g_notification_add_button (notification, "Start over", "app.clear-all"); + g_application_send_notification (G_APPLICATION (app), "three-lines", notification); + g_object_unref (notification); } } @@ -635,7 +634,7 @@ bloat_pad_class_init (BloatPadClass *class) } -BloatPad * +static BloatPad * bloat_pad_new (void) { BloatPad *bloat_pad; |