summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-03-10 12:30:16 +0100
committerraveit65 <[email protected]>2021-03-15 20:38:44 +0100
commitd646ca2187ca959224f930f39919c9cf01d3cf85 (patch)
tree6b54a81b41e878fcf6e7e84adb656255f3bf8272
parent67e80c60a2da23692517d0ffe05e17fde64ee4dc (diff)
downloadmate-sensors-applet-d646ca2187ca959224f930f39919c9cf01d3cf85.tar.bz2
mate-sensors-applet-d646ca2187ca959224f930f39919c9cf01d3cf85.tar.xz
warning: declaration of ‘content_area’ shadows a previous local
-rw-r--r--sensors-applet/prefs-dialog.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sensors-applet/prefs-dialog.c b/sensors-applet/prefs-dialog.c
index 98196d4..8e92c81 100644
--- a/sensors-applet/prefs-dialog.c
+++ b/sensors-applet/prefs-dialog.c
@@ -455,10 +455,7 @@ void prefs_dialog_open(SensorsApplet *sensors_applet) {
/* if no SensorsList's have been created, this is because
we haven't been able to access any sensors */
if (sensors_applet->sensors == NULL) {
- GtkWidget *label;
- GtkWidget *content_area;
- label = gtk_label_new(_("No sensors found!"));
- content_area = gtk_dialog_get_content_area (prefs_dialog->dialog);
+ GtkWidget *label = gtk_label_new(_("No sensors found!"));
gtk_box_pack_start (GTK_BOX(content_area), label, FALSE, FALSE, 0);
return;
}