[gthumb/ext] updated eggfileformatchooser.c from libegg
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext] updated eggfileformatchooser.c from libegg
- Date: Tue, 27 Oct 2009 12:00:07 +0000 (UTC)
commit a2ad243a13cd0ac3c284126c5a4174828fe9c41e
Author: Paolo Bacchilega <paobac src gnome org>
Date: Tue Oct 27 12:59:33 2009 +0100
updated eggfileformatchooser.c from libegg
gthumb/eggfileformatchooser.c | 28 +++++++++-------------------
1 files changed, 9 insertions(+), 19 deletions(-)
---
diff --git a/gthumb/eggfileformatchooser.c b/gthumb/eggfileformatchooser.c
index 00772c5..20b8b33 100644
--- a/gthumb/eggfileformatchooser.c
+++ b/gthumb/eggfileformatchooser.c
@@ -288,29 +288,19 @@ static gboolean
find_in_list (gchar *list,
const gchar *needle)
{
- gchar *saveptr;
- gchar *token;
- gchar *needle2;
- gboolean found = FALSE;
-
- needle2 = g_utf8_casefold (needle, -1);
- for (token = strtok_r (list, ",", &saveptr);
- ! found && (NULL != token);
+ gchar *saveptr;
+ gchar *token;
+
+ for (token = strtok_r (list, ",", &saveptr); NULL != token;
token = strtok_r (NULL, ",", &saveptr))
{
- char *token2;
-
- token2 = g_utf8_casefold (g_strstrip (token), -1);
-
- if (g_utf8_collate (needle2, token2) == 0)
- found = TRUE;
+ token = g_strstrip (token);
- g_free (token2);
+ if (strcasecmp (needle, token) == 0)
+ return TRUE;
}
- g_free (needle2);
-
- return found;
+ return FALSE;
}
static gboolean
@@ -424,7 +414,7 @@ egg_file_format_chooser_init (EggFileFormatChooser *self)
/* extensions column */
column = gtk_tree_view_column_new_with_attributes (
- _("Extensions"), gtk_cell_renderer_text_new (),
+ _("Extension(s)"), gtk_cell_renderer_text_new (),
"text", MODEL_COLUMN_EXTENSIONS, NULL);
gtk_tree_view_column_set_expand (column, FALSE);
gtk_tree_view_append_column (GTK_TREE_VIEW (view), column);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]