aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/totem-subtitle-encoding.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-22 00:24:56 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-22 17:43:50 +0800
commit17c8536264198291326446270faf84f6e00e399d (patch)
treea45da3115521043bcc3fe1b27b858eaba094dba0 /libempathy-gtk/totem-subtitle-encoding.c
parent62754283f2d0904b9f57cc291e4a4e1d4490f288 (diff)
downloadgsoc2013-empathy-17c8536264198291326446270faf84f6e00e399d.tar
gsoc2013-empathy-17c8536264198291326446270faf84f6e00e399d.tar.gz
gsoc2013-empathy-17c8536264198291326446270faf84f6e00e399d.tar.bz2
gsoc2013-empathy-17c8536264198291326446270faf84f6e00e399d.tar.lz
gsoc2013-empathy-17c8536264198291326446270faf84f6e00e399d.tar.xz
gsoc2013-empathy-17c8536264198291326446270faf84f6e00e399d.tar.zst
gsoc2013-empathy-17c8536264198291326446270faf84f6e00e399d.zip
totem-subtitle-encoding.c: fix shadow declarations
Diffstat (limited to 'libempathy-gtk/totem-subtitle-encoding.c')
-rw-r--r--libempathy-gtk/totem-subtitle-encoding.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/libempathy-gtk/totem-subtitle-encoding.c b/libempathy-gtk/totem-subtitle-encoding.c
index 112f169fd..285c5acf3 100644
--- a/libempathy-gtk/totem-subtitle-encoding.c
+++ b/libempathy-gtk/totem-subtitle-encoding.c
@@ -429,18 +429,18 @@ subtitle_encoding_get_index (const char *charset)
}
static const char *
-subtitle_encoding_get_charset (int index)
+subtitle_encoding_get_charset (int index_)
{
const SubtitleEncoding *e;
- if (index >= SUBTITLE_ENCODING_LAST)
+ if (index_ >= SUBTITLE_ENCODING_LAST)
e = &encodings[SUBTITLE_ENCODING_CURRENT_LOCALE];
- else if (index < SUBTITLE_ENCODING_CURRENT_LOCALE)
+ else if (index_ < SUBTITLE_ENCODING_CURRENT_LOCALE)
e = &encodings[SUBTITLE_ENCODING_CURRENT_LOCALE];
- else if (!encodings[index].valid)
+ else if (!encodings[index_].valid)
e = &encodings[SUBTITLE_ENCODING_CURRENT_LOCALE];
else
- e = &encodings[index];
+ e = &encodings[index_];
return e->charset;
}
@@ -530,15 +530,15 @@ totem_subtitle_encoding_get_selected (GtkComboBox * combo)
{
GtkTreeModel *model;
GtkTreeIter iter;
- gint index = -1;
+ gint index_ = -1;
model = gtk_combo_box_get_model (combo);
if (gtk_combo_box_get_active_iter (combo, &iter)) {
- gtk_tree_model_get (model, &iter, INDEX_COL, &index, -1);
+ gtk_tree_model_get (model, &iter, INDEX_COL, &index_, -1);
}
- if (index == -1)
+ if (index_ == -1)
return NULL;
- return subtitle_encoding_get_charset (index);
+ return subtitle_encoding_get_charset (index_);
}
void
@@ -546,12 +546,12 @@ totem_subtitle_encoding_set (GtkComboBox * combo, const char *encoding)
{
GtkTreeModel *model;
GtkTreeIter iter, iter2;
- gint index, i;
+ gint index_, i;
g_return_if_fail (encoding != NULL);
model = gtk_combo_box_get_model (combo);
- index = subtitle_encoding_get_index (encoding);
+ index_ = subtitle_encoding_get_index (encoding);
gtk_tree_model_get_iter_first (model, &iter);
do {
if (!gtk_tree_model_iter_has_child (model, &iter))
@@ -560,10 +560,10 @@ totem_subtitle_encoding_set (GtkComboBox * combo, const char *encoding)
continue;
do {
gtk_tree_model_get (model, &iter2, INDEX_COL, &i, -1);
- if (i == index)
+ if (i == index_)
break;
} while (gtk_tree_model_iter_next (model, &iter2));
- if (i == index)
+ if (i == index_)
break;
} while (gtk_tree_model_iter_next (model, &iter));
gtk_combo_box_set_active_iter (combo, &iter2);