[Xfce4-commits] <xfce4-netload-plugin:master> Fix first startup when no configuration file exist
Mike Massonnet
noreply at xfce.org
Sun Jul 15 17:30:03 CEST 2012
Updating branch refs/heads/master
to a73a3041bc576ca1c8f5bfadfe6393d899a0c83f (commit)
from d4afbebbb0bbc9e03052fc35049d2ecf70e28266 (commit)
commit a73a3041bc576ca1c8f5bfadfe6393d899a0c83f
Author: Mike Massonnet <mmassonnet at gmail.com>
Date: Sun Jul 15 17:18:54 2012 +0200
Fix first startup when no configuration file exist
The plugin was invisible because it failed to open the RC file.
panel-plugin/netload.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/panel-plugin/netload.c b/panel-plugin/netload.c
index 42117c2..95811df 100644
--- a/panel-plugin/netload.c
+++ b/panel-plugin/netload.c
@@ -421,7 +421,6 @@ static t_global_monitor * monitor_new(XfcePanelPlugin *plugin)
gtk_widget_set_has_tooltip(global->ebox, TRUE);
g_signal_connect(global->ebox, "query-tooltip", G_CALLBACK(tooltip_cb), global);
gtk_widget_show(global->ebox);
- global->box = NULL;
global->tooltip_text = gtk_label_new(NULL);
g_object_ref(global->tooltip_text);
@@ -592,10 +591,10 @@ static void monitor_read_config(XfcePanelPlugin *plugin, t_global_monitor *globa
char *file;
XfceRc *rc;
- if (!(file = xfce_panel_plugin_lookup_rc_file (plugin)))
+ if (!(file = xfce_panel_plugin_save_location (plugin, TRUE)))
return;
- rc = xfce_rc_simple_open (file, TRUE);
+ rc = xfce_rc_simple_open (file, FALSE);
g_free (file);
if (!rc)
More information about the Xfce4-commits
mailing list