diff options
author | Pablo Barciela <[email protected]> | 2019-11-27 09:25:50 +0100 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-12-04 14:55:43 +0100 |
commit | d3cae6249d156e847176d49897a49ca8a0a0c094 (patch) | |
tree | 611bb1e847511c2ecdd23bb3eea1a32ff58a5c7e /drivemount/drive-button.c | |
parent | cec742f132e318db1de4d01d841fea15238798c3 (diff) | |
download | mate-applets-d3cae6249d156e847176d49897a49ca8a0a0c094.tar.bz2 mate-applets-d3cae6249d156e847176d49897a49ca8a0a0c094.tar.xz |
avoid redundant redeclarations
Diffstat (limited to 'drivemount/drive-button.c')
-rw-r--r-- | drivemount/drive-button.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivemount/drive-button.c b/drivemount/drive-button.c index 2d91c4de..dd135384 100644 --- a/drivemount/drive-button.c +++ b/drivemount/drive-button.c @@ -400,11 +400,14 @@ drive_button_update (gpointer user_data) pixels = cairo_image_surface_get_data (tmp_surface); GdkRGBA color; + GSettings *settings; + settings = g_settings_new ("org.mate.drivemount"); gchar *color_string = g_settings_get_string (settings, "drivemount-checkmark-color"); if (!color_string) color_string = g_strdup ("#00ff00"); gdk_rgba_parse (&color, color_string); g_free (color_string); + g_object_unref (settings); guchar red = color.red*255; guchar green = color.green*255; |