summaryrefslogtreecommitdiff
path: root/gtk/gtkicontheme.c
diff options
context:
space:
mode:
authorMichael Natterer <mitch@imendio.com>2008-01-09 17:02:50 +0000
committerMichael Natterer <mitch@src.gnome.org>2008-01-09 17:02:50 +0000
commit9c7a2c321fd5c7cea0564442cbc96812b47dd759 (patch)
tree0e88b9dcd2188d0c6a7516f80112c6ccbe5107cc /gtk/gtkicontheme.c
parent781d94f1414abb4bfe2297a84f1da009168b6057 (diff)
downloadgtk+-9c7a2c321fd5c7cea0564442cbc96812b47dd759.tar.gz
remove unused variable.
2008-01-09 Michael Natterer <mitch@imendio.com> * gtk/gtkcolorsel.c (make_label_spinbutton): remove unused variable. * gtk/gtkcombobox.c (gtk_combo_box_detacher) * gtk/gtkicontheme.c (theme_list_contexts) (gtk_icon_theme_lookup_icon) * gtk/gtkimcontextsimple.c (beep_window) * gtk/gtklinkbutton.c (set_link_color) * gtk/gtkuimanager.c (child_hierarchy_changed_cb): add casts to fix warnings. * gtk/gtkpathbar.c (_gtk_path_bar_set_file_system): remove unused variable and add const to another to fix a warning. svn path=/trunk/; revision=19330
Diffstat (limited to 'gtk/gtkicontheme.c')
-rw-r--r--gtk/gtkicontheme.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 5175f20ce9..108f1f19aa 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -1375,7 +1375,7 @@ gtk_icon_theme_lookup_icon (GtkIconTheme *icon_theme,
gchar *p;
dashes = 0;
- for (p = icon_name; *p; p++)
+ for (p = (gchar *) icon_name; *p; p++)
if (*p == '-')
dashes++;
@@ -1389,13 +1389,13 @@ gtk_icon_theme_lookup_icon (GtkIconTheme *icon_theme,
}
names[dashes + 1] = NULL;
- info = choose_icon (icon_theme, names, size, flags);
+ info = choose_icon (icon_theme, (const gchar **) names, size, flags);
g_strfreev (names);
}
else
{
- gchar *names[2];
+ const gchar *names[2];
names[0] = icon_name;
names[1] = NULL;
@@ -2282,7 +2282,7 @@ theme_list_contexts (IconTheme *theme,
dir = l->data;
context = g_quark_to_string (dir->context);
- g_hash_table_replace (contexts, context, NULL);
+ g_hash_table_replace (contexts, (gpointer) context, NULL);
l = l->next;
}