diff options
author | Andriy Grytsenko <andrej@rep.kiev.ua> | 2014-09-14 18:03:06 +0300 |
---|---|---|
committer | Andriy Grytsenko <andrej@rep.kiev.ua> | 2014-09-14 18:03:06 +0300 |
commit | 8e2386255796c41dddc2afa180b77e4a724c47ab (patch) | |
tree | fd40dc878f888a1131ea58b0dff022e03d0cb43b | |
parent | 6935de1721bc9482f80344b3889d4cd978784c87 (diff) |
Fix compilation warnings.
-rw-r--r-- | src/archive.c | 6 | ||||
-rw-r--r-- | src/theme.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/archive.c b/src/archive.c index 7b4af15..0e54b7f 100644 --- a/src/archive.c +++ b/src/archive.c @@ -31,7 +31,7 @@ } static gchar *get_theme_dir(); -static gboolean change_dir(const gchar *dir); +/* static gboolean change_dir(const gchar *dir); */ static gchar* name_from_dir(const gchar *dir); static gchar* install_theme_to(const gchar *file, const gchar *to); static gboolean create_theme_archive(const gchar *dir, const gchar *name, @@ -161,7 +161,7 @@ static gchar* name_from_dir(const gchar *dir) return g_path_get_basename(dir); } -static gboolean change_dir(const gchar *dir) +/* static gboolean change_dir(const gchar *dir) { if (chdir(dir) == -1) { gtk_msg(GTK_MESSAGE_ERROR, _("Unable to move to directory \"%s\": %s"), @@ -169,7 +169,7 @@ static gboolean change_dir(const gchar *dir) return FALSE; } return TRUE; -} +} */ static gchar* install_theme_to(const gchar *file, const gchar *to) { diff --git a/src/theme.c b/src/theme.c index d4c6c4a..4d7b988 100644 --- a/src/theme.c +++ b/src/theme.c @@ -204,7 +204,7 @@ void theme_load_all() add_theme_dir(THEMEDIR); - themes = g_list_sort(themes, (GCompareFunc) strcasecmp); + themes = g_list_sort(themes, (GCompareFunc) g_ascii_strcasecmp); gtk_list_store_clear(theme_store); |