[gnome-control-center] 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] info: Don't warn when the hostname is empty
- Date: Sun, 18 Sep 2011 12:20:26 +0000 (UTC)
commit 5377825ade677a7d75ffbfe23b236695c682e00d
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 18f04c1..6cf42c7 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -1631,7 +1631,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]