summaryrefslogtreecommitdiff
path: root/capplets
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-01-13 23:31:54 +0100
committerPablo Barciela <[email protected]>2018-01-13 23:31:54 +0100
commit9aa60ce09b88efd4227f8f795c54d07b2776f756 (patch)
treef08b86caf876e415d70433f59eaba3796fb50e26 /capplets
parentd146d8f263b3d12d6e2c3fc7da1b4fc28915db57 (diff)
downloadmate-control-center-9aa60ce09b88efd4227f8f795c54d07b2776f756.tar.bz2
mate-control-center-9aa60ce09b88efd4227f8f795c54d07b2776f756.tar.xz
drop unused variables
Diffstat (limited to 'capplets')
-rw-r--r--capplets/display/xrandr-capplet.c4
-rw-r--r--capplets/keyboard/mate-keyboard-properties-xkblt.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c
index 4a538f43..7089a24e 100644
--- a/capplets/display/xrandr-capplet.c
+++ b/capplets/display/xrandr-capplet.c
@@ -1820,7 +1820,6 @@ on_area_paint (FooScrollArea *area,
gpointer data)
{
App *app = data;
- double scale;
GList *connected_outputs = NULL;
GList *list;
@@ -1829,10 +1828,11 @@ on_area_paint (FooScrollArea *area,
if (!app->current_configuration)
return;
- scale = compute_scale (app);
connected_outputs = list_connected_outputs (app, NULL, NULL);
#if 0
+ double scale;
+ scale = compute_scale (app);
g_debug ("scale: %f", scale);
#endif
diff --git a/capplets/keyboard/mate-keyboard-properties-xkblt.c b/capplets/keyboard/mate-keyboard-properties-xkblt.c
index b9971e65..115ffac0 100644
--- a/capplets/keyboard/mate-keyboard-properties-xkblt.c
+++ b/capplets/keyboard/mate-keyboard-properties-xkblt.c
@@ -357,7 +357,7 @@ show_selected_layout (GtkWidget * button, GtkBuilder * dialog)
GSList *layouts_list = xkb_layouts_get_selected_list ();
const gchar *id = g_slist_nth_data (layouts_list, idx);
char *descr = xkb_layout_description_utf8 (id);
- GtkWidget *popup = matekbd_keyboard_drawing_new_dialog (idx, descr);
+ matekbd_keyboard_drawing_new_dialog (idx, descr);
clear_xkb_elements_list (layouts_list);
g_free (descr);
}