summaryrefslogtreecommitdiff
path: root/drivemount
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-01-29 17:10:12 +0100
committerraveit65 <[email protected]>2020-01-30 23:54:36 +0100
commitc477b6fd2eec63f629ff5934e78c190ea6c73911 (patch)
treeba7bedbc5435da80b34cf7a255327e0fc1048f98 /drivemount
parentf908ec287773c35245ad53d645d8c67d4755812b (diff)
downloadmate-applets-c477b6fd2eec63f629ff5934e78c190ea6c73911.tar.bz2
mate-applets-c477b6fd2eec63f629ff5934e78c190ea6c73911.tar.xz
Fix build using gcc 10 -fno-common flag
Diffstat (limited to 'drivemount')
-rw-r--r--drivemount/drive-list.c4
-rw-r--r--drivemount/drive-list.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/drivemount/drive-list.c b/drivemount/drive-list.c
index a20e1329..1b3679b3 100644
--- a/drivemount/drive-list.c
+++ b/drivemount/drive-list.c
@@ -32,6 +32,8 @@
G_DEFINE_TYPE (DriveList, drive_list, GTK_TYPE_GRID);
+GSettings *settings;
+
static GVolumeMonitor *volume_monitor = NULL;
static void drive_list_finalize (GObject *object);
@@ -153,6 +155,8 @@ drive_list_finalize (GObject *object)
g_hash_table_destroy (self->volumes);
g_hash_table_destroy (self->mounts);
+ g_object_unref (settings);
+
if (G_OBJECT_CLASS (drive_list_parent_class)->finalize)
(* G_OBJECT_CLASS (drive_list_parent_class)->finalize) (object);
}
diff --git a/drivemount/drive-list.h b/drivemount/drive-list.h
index c7e844dd..ea55b908 100644
--- a/drivemount/drive-list.h
+++ b/drivemount/drive-list.h
@@ -65,7 +65,7 @@ void drive_list_set_panel_size (DriveList *list,
int panel_size);
void drive_list_set_transparent (DriveList *self,
gboolean transparent);
-GSettings *settings;
+extern GSettings *settings;
void drive_list_redraw (DriveList *self);
void settings_color_changed (GSettings *settings, gchar *key, DriveList *drive_list);