[gnome-session] fail-whale-dialog: Fix -Wmaybe-uninitialized warning
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session] fail-whale-dialog: Fix -Wmaybe-uninitialized warning
- Date: Fri, 1 Jul 2016 22:33:33 +0000 (UTC)
commit 80db9b51f6aea90bde3fc8f2523f12d07f9d84fc
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Fri Jul 1 12:23:37 2016 -0500
fail-whale-dialog: Fix -Wmaybe-uninitialized warning
https://bugzilla.gnome.org/show_bug.cgi?id=768294
gnome-session/gsm-fail-whale-dialog.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-session/gsm-fail-whale-dialog.c b/gnome-session/gsm-fail-whale-dialog.c
index d48cf7d..f53ce41 100644
--- a/gnome-session/gsm-fail-whale-dialog.c
+++ b/gnome-session/gsm-fail-whale-dialog.c
@@ -304,10 +304,10 @@ setup_window (GsmFailWhaleDialog *fail_dialog)
NULL);
if (fail_icon != NULL) {
image = gtk_image_new_from_pixbuf (fail_icon);
+ gtk_widget_show (image);
+ gtk_box_pack_start (GTK_BOX (box), image, FALSE, FALSE, 0);
g_object_unref (fail_icon);
}
- gtk_widget_show (image);
- gtk_box_pack_start (GTK_BOX (box), image, FALSE, FALSE, 0);
label = gtk_label_new (NULL);
markup = g_strdup_printf ("<b><big>%s</big></b>", _("Oh no! Something has gone wrong."));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]