summaryrefslogtreecommitdiff
path: root/src/mate-screensaver-preferences.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-21 09:03:14 +0100
committerraveit65 <[email protected]>2021-01-07 18:16:31 +0100
commit01bdaecbc1fcaabdcd30d00ea0001464e631f690 (patch)
tree97582c73d91184a1ebe61d30af1dfc1b38cc0120 /src/mate-screensaver-preferences.c
parent47b82dac66ee49d7b97827a28b3966503c8898bc (diff)
downloadmate-screensaver-01bdaecbc1fcaabdcd30d00ea0001464e631f690.tar.bz2
mate-screensaver-01bdaecbc1fcaabdcd30d00ea0001464e631f690.tar.xz
Remove warning -Wshadow
Diffstat (limited to 'src/mate-screensaver-preferences.c')
-rw-r--r--src/mate-screensaver-preferences.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/mate-screensaver-preferences.c b/src/mate-screensaver-preferences.c
index e2d1371..44e0c7b 100644
--- a/src/mate-screensaver-preferences.c
+++ b/src/mate-screensaver-preferences.c
@@ -192,7 +192,7 @@ config_get_theme (gboolean *is_writable)
}
static gchar **
-get_all_theme_ids (GSThemeManager *theme_manager)
+get_all_theme_ids (void)
{
gchar **ids = NULL;
GSList *entries;
@@ -228,7 +228,7 @@ config_set_theme (const char *theme_id)
mode = GS_MODE_RANDOM;
/* set the themes key to contain all available screensavers */
- strv = get_all_theme_ids (theme_manager);
+ strv = get_all_theme_ids ();
}
else
{
@@ -297,8 +297,7 @@ config_set_lock (gboolean lock)
}
static void
-job_set_theme (GSJob *job,
- const char *theme)
+job_set_theme (const char *theme)
{
GSThemeInfo *info;
const char *command;
@@ -362,13 +361,13 @@ preview_set_theme (GtkWidget *widget,
{
gchar **themes;
- themes = get_all_theme_ids (theme_manager);
+ themes = get_all_theme_ids ();
if (themes != NULL)
{
gint32 i;
i = g_random_int_range (0, g_strv_length (themes));
- job_set_theme (job, themes[i]);
+ job_set_theme (themes[i]);
g_strfreev (themes);
gs_job_start (job);
@@ -376,7 +375,7 @@ preview_set_theme (GtkWidget *widget,
}
else
{
- job_set_theme (job, theme);
+ job_set_theme (theme);
gs_job_start (job);
}
}
@@ -1757,7 +1756,7 @@ init_capplet (void)
mode = g_settings_get_enum (screensaver_settings, KEY_MODE);
if (mode == GS_MODE_RANDOM) {
gchar **list;
- list = get_all_theme_ids (theme_manager);
+ list = get_all_theme_ids ();
g_settings_set_strv (screensaver_settings, KEY_THEMES, (const gchar * const*) list);
g_strfreev (list);
}