From 06ec8896af725b80d9adc7f94699001b0dc23489 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 8 Apr 2020 11:59:34 +0200 Subject: Remove unused-variable warnings --- mateweather/mateweather-dialog.c | 8 ++++---- mateweather/mateweather-pref.c | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'mateweather') diff --git a/mateweather/mateweather-dialog.c b/mateweather/mateweather-dialog.c index b6a67b14..b84f94c8 100644 --- a/mateweather/mateweather-dialog.c +++ b/mateweather/mateweather-dialog.c @@ -60,14 +60,14 @@ G_DEFINE_TYPE_WITH_PRIVATE (MateWeatherDialog, mateweather_dialog, GTK_TYPE_DIAL static void mateweather_dialog_save_geometry(MateWeatherDialog* dialog) { +#if 0 GSettings* settings; int w, h; - settings = dialog->priv->applet->settings; + gtk_window_get_size (GTK_WINDOW (dialog), &w, &h); - gtk_window_get_size(GTK_WINDOW(dialog), &w, &h); + settings = dialog->priv->applet->settings; -#if 0 /* FIXME those keys are not in org.mate.weather! */ g_settings_set_int (settings, "dialog-width", w); g_settings_set_int (settings, "dialog-height", h); @@ -76,12 +76,12 @@ static void mateweather_dialog_save_geometry(MateWeatherDialog* dialog) static void mateweather_dialog_load_geometry(MateWeatherDialog* dialog) { +#if 0 GSettings* settings; int w, h; settings = dialog->priv->applet->settings; -#if 0 /* FIXME those keys are not in org.mate.weather! */ w = g_settings_get_int (settings, "dialog-width"); h = g_settings_get_int (settings, "dialog-height"); diff --git a/mateweather/mateweather-pref.c b/mateweather/mateweather-pref.c index a03afca8..c7f54f81 100644 --- a/mateweather/mateweather-pref.c +++ b/mateweather/mateweather-pref.c @@ -263,11 +263,9 @@ static gboolean compare_location(GtkTreeModel* model, GtkTreePath* path, GtkTree static void load_locations(MateWeatherPref* pref) { - MateWeatherApplet* gw_applet = pref->priv->applet; GtkTreeView* tree = GTK_TREE_VIEW(pref->priv->tree); GtkTreeViewColumn* column; GtkCellRenderer* cell_renderer; - WeatherLocation* current_location; /* Add a column for the locations */ cell_renderer = gtk_cell_renderer_text_new(); -- cgit v1.2.1