summaryrefslogtreecommitdiff
path: root/drivemount/drive-list.c
diff options
context:
space:
mode:
authormarosg <[email protected]>2017-09-10 18:36:47 +0200
committermarosg <[email protected]>2017-09-10 18:36:47 +0200
commit29c3ce4408b6139b17e41a301fe47329de4c491b (patch)
tree492f2fd609085e8cd267e4d14ef8ca2b5f08acff /drivemount/drive-list.c
parent5764aa11ba5351f6ab88f29ca9e44f391a84403d (diff)
downloadmate-applets-29c3ce4408b6139b17e41a301fe47329de4c491b.tar.bz2
mate-applets-29c3ce4408b6139b17e41a301fe47329de4c491b.tar.xz
GSettings change recognized dynamically
Diffstat (limited to 'drivemount/drive-list.c')
-rw-r--r--drivemount/drive-list.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivemount/drive-list.c b/drivemount/drive-list.c
index 7ebb6240..a20e1329 100644
--- a/drivemount/drive-list.c
+++ b/drivemount/drive-list.c
@@ -486,6 +486,20 @@ drive_list_set_panel_size (DriveList *self, int panel_size)
}
}
+void
+drive_list_redraw (DriveList *self)
+{
+ g_hash_table_foreach (self->volumes, drive_button_redraw, self);
+ g_hash_table_foreach (self->mounts, drive_button_redraw, self);
+}
+
+void
+settings_color_changed (GSettings *settings, gchar *key, DriveList *drive_list)
+{
+ g_return_if_fail (DRIVE_IS_LIST (drive_list));
+ drive_list_redraw (drive_list);
+}
+
static void
set_button_relief (gpointer key, gpointer value, gpointer user_data)
{