Fix first startup when no configuration file exist
The plugin was invisible because it failed to open the RC file.master
parent
d4afbebbb0
commit
a73a3041bc
|
@ -421,7 +421,6 @@ static t_global_monitor * monitor_new(XfcePanelPlugin *plugin)
|
||||||
gtk_widget_set_has_tooltip(global->ebox, TRUE);
|
gtk_widget_set_has_tooltip(global->ebox, TRUE);
|
||||||
g_signal_connect(global->ebox, "query-tooltip", G_CALLBACK(tooltip_cb), global);
|
g_signal_connect(global->ebox, "query-tooltip", G_CALLBACK(tooltip_cb), global);
|
||||||
gtk_widget_show(global->ebox);
|
gtk_widget_show(global->ebox);
|
||||||
global->box = NULL;
|
|
||||||
|
|
||||||
global->tooltip_text = gtk_label_new(NULL);
|
global->tooltip_text = gtk_label_new(NULL);
|
||||||
g_object_ref(global->tooltip_text);
|
g_object_ref(global->tooltip_text);
|
||||||
|
@ -592,10 +591,10 @@ static void monitor_read_config(XfcePanelPlugin *plugin, t_global_monitor *globa
|
||||||
char *file;
|
char *file;
|
||||||
XfceRc *rc;
|
XfceRc *rc;
|
||||||
|
|
||||||
if (!(file = xfce_panel_plugin_lookup_rc_file (plugin)))
|
if (!(file = xfce_panel_plugin_save_location (plugin, TRUE)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
rc = xfce_rc_simple_open (file, TRUE);
|
rc = xfce_rc_simple_open (file, FALSE);
|
||||||
g_free (file);
|
g_free (file);
|
||||||
|
|
||||||
if (!rc)
|
if (!rc)
|
||||||
|
|
Loading…
Reference in New Issue