[Xfce4-commits] <xfce4-weather-plugin:master> Remove unused stuff related to old config dialog.

Harald Judt noreply at xfce.org
Wed Nov 28 00:00:06 CET 2012


Updating branch refs/heads/master
         to eb190d1d17cb7c3cfc2a28bcd300f26f00e60107 (commit)
       from 44532fc693a6ef4879d933c647d473c6a25a6a34 (commit)

commit eb190d1d17cb7c3cfc2a28bcd300f26f00e60107
Author: Harald Judt <h.judt at gmx.at>
Date:   Tue Nov 27 23:56:54 2012 +0100

    Remove unused stuff related to old config dialog.

 panel-plugin/weather-config.c |   14 +-------------
 panel-plugin/weather-config.h |    5 -----
 panel-plugin/weather.c        |   11 -----------
 3 files changed, 1 insertions(+), 29 deletions(-)

diff --git a/panel-plugin/weather-config.c b/panel-plugin/weather-config.c
index 122a7f5..8cbf708 100644
--- a/panel-plugin/weather-config.c
+++ b/panel-plugin/weather-config.c
@@ -104,15 +104,11 @@ static const labeloption labeloptions[OPTIONS_N] = {
     {N_("Precipitations (R)"), PRECIPITATIONS},
 };
 
-typedef void (*cb_function) (xfceweather_data *);
-static cb_function cb = NULL;
-typedef void (*cb_conf_dialog_function) (xfceweather_dialog *);
-static cb_conf_dialog_function cb_dialog = NULL;
-
 static void
 spin_alt_value_changed(const GtkWidget *spin,
                        gpointer user_data);
 
+
 static gboolean
 schedule_data_update(gpointer user_data)
 {
@@ -1295,11 +1291,3 @@ create_config_dialog(xfceweather_data *data,
     gtk_widget_show_all(vbox);
     return dialog;
 }
-
-
-void
-set_callback_config_dialog(xfceweather_dialog *dialog,
-                           cb_function cb_new)
-{
-    cb = cb_new;
-}
diff --git a/panel-plugin/weather-config.h b/panel-plugin/weather-config.h
index 70dd0b7..f86baeb 100644
--- a/panel-plugin/weather-config.h
+++ b/panel-plugin/weather-config.h
@@ -72,11 +72,6 @@ typedef struct {
 xfceweather_dialog *create_config_dialog(xfceweather_data *data,
                                          GtkWidget *vbox);
 
-void set_callback_config_dialog(xfceweather_dialog *dialog,
-                                void (cb) (xfceweather_data *data));
-
-void apply_options(xfceweather_dialog *dialog);
-
 G_END_DECLS
 
 #endif
diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index a8ab999..65c94e8 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -681,13 +681,6 @@ update_weatherdata_with_reset(xfceweather_data *data)
 
 
 static void
-update_config(xfceweather_data *data)
-{
-    update_weatherdata_with_reset(data);
-}
-
-
-static void
 close_summary(GtkWidget *widget,
               gpointer *user_data)
 {
@@ -820,12 +813,8 @@ xfceweather_create_options(XfcePanelPlugin *plugin,
     gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dlg)->vbox), vbox, TRUE, TRUE, 0);
 
     dialog = create_config_dialog(data, vbox);
-
     g_signal_connect(G_OBJECT(dlg), "response",
                      G_CALLBACK(xfceweather_dialog_response), dialog);
-
-    set_callback_config_dialog(dialog, update_config);
-
     gtk_widget_show(dlg);
 }
 


More information about the Xfce4-commits mailing list