[network-manager-netbook/MplPanelClient] status-icon: don't segfault on startup
- From: Dan Williams <dcbw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [network-manager-netbook/MplPanelClient] status-icon: don't segfault on startup
- Date: Wed, 30 Sep 2009 00:12:42 +0000 (UTC)
commit af848c6add7e28424127267ade4b3f2c4a45d734
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]