Skip to content

Commit

Permalink
Fix compilation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
LStranger committed Sep 14, 2014
1 parent 6935de1 commit 8e23862
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/archive.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -161,15 +161,15 @@ 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"),
dir, strerror(errno));
return FALSE;
}
return TRUE;
}
} */

static gchar* install_theme_to(const gchar *file, const gchar *to)
{
Expand Down
2 changes: 1 addition & 1 deletion src/theme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 8e23862

Please sign in to comment.