From a73a3041bc576ca1c8f5bfadfe6393d899a0c83f Mon Sep 17 00:00:00 2001 From: Mike Massonnet Date: Sun, 15 Jul 2012 17:18:54 +0200 Subject: [PATCH] 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 file 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)