[Xfce4-commits] [panel-plugins/xfce4-sensors-plugin] 01/01: Use correct function signaure for saving plugin data; will no longer crash when intermediately saving the config; should also fix bugs 6734 and 11554.

noreply at xfce.org noreply at xfce.org
Thu Apr 6 23:44:19 CEST 2017


This is an automated email from the git hooks/post-receive script.

timystery pushed a commit to branch master
in repository panel-plugins/xfce4-sensors-plugin.

commit f9904f1771b6538ca4b2f7e81b51ef1d8a6fdc6f
Author: Fabian <timystery at arcor.de>
Date:   Thu Apr 6 23:41:49 2017 +0200

    Use correct function signaure for saving plugin data; will no longer crash when intermediately saving the config; should also fix bugs 6734 and 11554.
---
 include/configuration.h       | 3 ++-
 lib/configuration.c           | 2 +-
 panel-plugin/sensors-plugin.c | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/configuration.h b/include/configuration.h
index 4bcb136..53fadc4 100644
--- a/include/configuration.h
+++ b/include/configuration.h
@@ -41,9 +41,10 @@ gint get_Id_from_address (gint chipnumber, gint addr_chipfeature,
 
 /**
  * Write the configuration, e.g., when exiting the plugin.
+ * @param ptr_panelplugin: pointer to panel plugin structure
  * @param ptr_sensors: pointer to sensors structure
  */
-void sensors_write_config (t_sensors *ptr_sensors);
+void sensors_write_config (XfcePanelPlugin *plugin,t_sensors *ptr_sensors);
 
 
 /**
diff --git a/lib/configuration.c b/lib/configuration.c
index ec9ecc0..06a2bed 100644
--- a/lib/configuration.c
+++ b/lib/configuration.c
@@ -74,7 +74,7 @@ get_Id_from_address (gint idx_chip, gint addr_chipfeature, t_sensors *ptr_sensor
 
 /* -------------------------------------------------------------------------- */
 void
-sensors_write_config (t_sensors *ptr_sensors)
+sensors_write_config (XfcePanelPlugin *plugin,t_sensors *ptr_sensors)
 {
     XfceRc *ptr_xfcerc;
     gchar *str_file, *str_tmp, str_chip[8], str_feature[20];
diff --git a/panel-plugin/sensors-plugin.c b/panel-plugin/sensors-plugin.c
index 247ff65..901fce1 100644
--- a/panel-plugin/sensors-plugin.c
+++ b/panel-plugin/sensors-plugin.c
@@ -2414,7 +2414,7 @@ on_optionsDialog_response (GtkWidget *dlg, int response, t_sensors_dialog *sd)
                 sd->sensors->plugin_config_file = xfce_panel_plugin_save_location (sd->sensors->plugin, TRUE);
 
             if (sd->sensors->plugin_config_file)
-                sensors_write_config (sd->sensors);
+                sensors_write_config (sd->sensors->plugin, sd->sensors);
     }
     gtk_window_get_size ( GTK_WINDOW(dlg), &(sd->sensors->preferred_width), &(sd->sensors->preferred_height));
     gtk_widget_destroy (sd->dialog);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list