summaryrefslogtreecommitdiff
path: root/mateweather
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-04-08 11:59:34 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2020-04-16 14:35:58 +0200
commit06ec8896af725b80d9adc7f94699001b0dc23489 (patch)
treee40f741a7cf2ab7946feaf7ba9bf9318959d4031 /mateweather
parentea2c6735e3c8a5e5a91e5472123eeaee70716478 (diff)
downloadmate-applets-06ec8896af725b80d9adc7f94699001b0dc23489.tar.bz2
mate-applets-06ec8896af725b80d9adc7f94699001b0dc23489.tar.xz
Remove unused-variable warnings
Diffstat (limited to 'mateweather')
-rw-r--r--mateweather/mateweather-dialog.c8
-rw-r--r--mateweather/mateweather-pref.c2
2 files changed, 4 insertions, 6 deletions
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();