[gnome-control-center/gnome-3-2] info: Don't warn when the hostname is empty
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-2] info: Don't warn when the hostname is empty
- Date: Sun, 18 Sep 2011 12:20:16 +0000 (UTC)
commit 9b5c563fe2ea2881896370f4bc454bf265debafb
Author: Bastien Nocera <hadess hadess net>
Date: Sun Sep 18 13:17:36 2011 +0100
info: Don't warn when the hostname is empty
panels/info/cc-info-panel.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index 9e72e2a..1517683 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -1140,7 +1140,10 @@ info_panel_setup_hostname (CcInfoPanel *self,
g_assert (self->priv->hostnamed_proxy);
str = info_panel_get_hostname (self);
- gtk_entry_set_text (GTK_ENTRY (entry), str);
+ if (str != NULL)
+ gtk_entry_set_text (GTK_ENTRY (entry), str);
+ else
+ gtk_entry_set_text (GTK_ENTRY (entry), "");
g_free (str);
g_signal_connect (G_OBJECT (entry), "changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]