[network-manager-netbook/MplPanelClient: 32/44] status-icon: don't segfault on startup
- From: Tambet Ingo <tambeti src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [network-manager-netbook/MplPanelClient: 32/44] status-icon: don't segfault on startup
- Date: Tue, 10 Nov 2009 14:12:24 +0000 (UTC)
commit 1d811e5e433c9af5189aa6ab7d1dd85955155297
Author: Dan Williams <dcbw redhat com>
Date: Tue Sep 29 17:11:22 2009 -0700
status-icon: don't segfault on startup
mpl_panel_client_request_button_style() segfaults if you don't pass it
*something*.
src/nmn-status-icon.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/nmn-status-icon.c b/src/nmn-status-icon.c
index 49640cd..f2c8c09 100644
--- a/src/nmn-status-icon.c
+++ b/src/nmn-status-icon.c
@@ -42,7 +42,6 @@ typedef struct {
typedef struct {
NMClient *nm_client;
MplPanelClient *panel_client;
- char *current_image;
GSList *ac_list;
NmnIconHandler *ac_icon_handler;
@@ -412,8 +411,7 @@ nmn_status_icon_set_panel_client (NmnStatusIcon *self,
priv->panel_client = g_object_ref (panel_client);
- /* FIXME: Nothing ever sets priv->current_image */
- update_icon (self, priv->current_image);
+ update_icon (self, "no-connection");
}
/*****************************************************************************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]