summaryrefslogtreecommitdiff
path: root/gtk/gtkicontheme.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2010-08-30 14:57:48 +0300
committerTor Lillqvist <tml@iki.fi>2010-08-30 14:57:48 +0300
commit4491bdbb9d6c74f8cf31e892d8ee6d0728685e85 (patch)
treebc319251e9780c4976564d18c7435658ab3d4221 /gtk/gtkicontheme.c
parent972f617b77dc02ade1295ed729101f77c804e7f8 (diff)
downloadgtk+-4491bdbb9d6c74f8cf31e892d8ee6d0728685e85.tar.gz
Drop Win32 DLL ABI compatibility cruft
No need for that any longer as we are changing DLL name.
Diffstat (limited to 'gtk/gtkicontheme.c')
-rw-r--r--gtk/gtkicontheme.c111
1 files changed, 0 insertions, 111 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 9b84eccafd..19bb542475 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -109,12 +109,6 @@ struct _GtkIconInfo
/* Information about the source
*/
gchar *filename;
-#if defined (G_OS_WIN32) && !defined (_WIN64)
- /* System codepage version of filename, for DLL ABI backward
- * compatibility functions.
- */
- gchar *cp_filename;
-#endif
GLoadableIcon *loadable;
GSList *emblem_infos;
@@ -1322,10 +1316,6 @@ choose_icon (GtkIconTheme *icon_theme,
icon_info->filename = g_strdup (unthemed_icon->svg_filename);
else if (unthemed_icon->no_svg_filename)
icon_info->filename = g_strdup (unthemed_icon->no_svg_filename);
-#if defined (G_OS_WIN32) && !defined (_WIN64)
- icon_info->cp_filename = g_locale_from_utf8 (icon_info->filename,
- -1, NULL, NULL, NULL);
-#endif
icon_info->dir_type = ICON_THEME_DIR_UNTHEMED;
icon_info->dir_size = size;
@@ -2209,17 +2199,10 @@ theme_lookup_icon (IconTheme *theme,
file = g_strconcat (icon_name, string_from_suffix (suffix), NULL);
icon_info->filename = g_build_filename (min_dir->dir, file, NULL);
g_free (file);
-#if defined (G_OS_WIN32) && !defined (_WIN64)
- icon_info->cp_filename = g_locale_from_utf8 (icon_info->filename,
- -1, NULL, NULL, NULL);
-#endif
}
else
{
icon_info->filename = NULL;
-#if defined (G_OS_WIN32) && !defined (_WIN64)
- icon_info->cp_filename = NULL;
-#endif
}
if (min_dir->icon_data != NULL)
@@ -2666,9 +2649,6 @@ gtk_icon_info_free (GtkIconInfo *icon_info)
return;
g_free (icon_info->filename);
-#if defined (G_OS_WIN32) && !defined (_WIN64)
- g_free (icon_info->cp_filename);
-#endif
if (icon_info->loadable)
g_object_unref (icon_info->loadable);
g_slist_foreach (icon_info->emblem_infos, (GFunc)gtk_icon_info_free, NULL);
@@ -3710,94 +3690,3 @@ gtk_icon_info_new_for_pixbuf (GtkIconTheme *icon_theme,
return info;
}
-
-#if defined (G_OS_WIN32) && !defined (_WIN64)
-
-/* DLL ABI stability backward compatibility versions */
-
-#undef gtk_icon_theme_set_search_path
-
-void
-gtk_icon_theme_set_search_path (GtkIconTheme *icon_theme,
- const gchar *path[],
- gint n_elements)
-{
- const gchar **utf8_path;
- gint i;
-
- utf8_path = g_new (const gchar *, n_elements);
-
- for (i = 0; i < n_elements; i++)
- utf8_path[i] = g_locale_to_utf8 (path[i], -1, NULL, NULL, NULL);
-
- gtk_icon_theme_set_search_path_utf8 (icon_theme, utf8_path, n_elements);
-
- for (i = 0; i < n_elements; i++)
- g_free ((gchar *) utf8_path[i]);
-
- g_free (utf8_path);
-}
-
-#undef gtk_icon_theme_get_search_path
-
-void
-gtk_icon_theme_get_search_path (GtkIconTheme *icon_theme,
- gchar **path[],
- gint *n_elements)
-{
- gint i, n;
-
- gtk_icon_theme_get_search_path_utf8 (icon_theme, path, &n);
-
- if (n_elements)
- *n_elements = n;
-
- if (path)
- {
- for (i = 0; i < n; i++)
- {
- gchar *tem = (*path)[i];
-
- (*path)[i] = g_locale_from_utf8 ((*path)[i], -1, NULL, NULL, NULL);
- g_free (tem);
- }
- }
-}
-
-#undef gtk_icon_theme_append_search_path
-
-void
-gtk_icon_theme_append_search_path (GtkIconTheme *icon_theme,
- const gchar *path)
-{
- gchar *utf8_path = g_locale_from_utf8 (path, -1, NULL, NULL, NULL);
-
- gtk_icon_theme_append_search_path_utf8 (icon_theme, utf8_path);
-
- g_free (utf8_path);
-}
-
-#undef gtk_icon_theme_prepend_search_path
-
-void
-gtk_icon_theme_prepend_search_path (GtkIconTheme *icon_theme,
- const gchar *path)
-{
- gchar *utf8_path = g_locale_from_utf8 (path, -1, NULL, NULL, NULL);
-
- gtk_icon_theme_prepend_search_path_utf8 (icon_theme, utf8_path);
-
- g_free (utf8_path);
-}
-
-#undef gtk_icon_info_get_filename
-
-G_CONST_RETURN gchar *
-gtk_icon_info_get_filename (GtkIconInfo *icon_info)
-{
- g_return_val_if_fail (icon_info != NULL, NULL);
-
- return icon_info->cp_filename;
-}
-
-#endif