diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-06-04 00:15:31 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-06-04 00:15:31 +0800 |
commit | 562b2a516b1cd3afaf6ae0fe7afedd43d42e2fe5 (patch) | |
tree | 33701e2b92a8e8287a5652c9a7c01ddb6e9fb873 | |
parent | 9bca61f59d134bcad242967c46919942ebe7edac (diff) | |
download | gsoc2013-epiphany-562b2a516b1cd3afaf6ae0fe7afedd43d42e2fe5.tar gsoc2013-epiphany-562b2a516b1cd3afaf6ae0fe7afedd43d42e2fe5.tar.gz gsoc2013-epiphany-562b2a516b1cd3afaf6ae0fe7afedd43d42e2fe5.tar.bz2 gsoc2013-epiphany-562b2a516b1cd3afaf6ae0fe7afedd43d42e2fe5.tar.lz gsoc2013-epiphany-562b2a516b1cd3afaf6ae0fe7afedd43d42e2fe5.tar.xz gsoc2013-epiphany-562b2a516b1cd3afaf6ae0fe7afedd43d42e2fe5.tar.zst gsoc2013-epiphany-562b2a516b1cd3afaf6ae0fe7afedd43d42e2fe5.zip |
Fix compile with -Werror. VS: Enter Log. Lines beginning with `CVS:' are
2003-06-03 Christian Persch <chpe@cvs.gnome.org>
* lib/widgets/ephy-spinner.c:
Fix compile with -Werror.
VS: Enter Log. Lines beginning with `CVS:' are removed automatically
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/widgets/ephy-spinner.c | 68 |
2 files changed, 6 insertions, 68 deletions
@@ -1,3 +1,9 @@ +2003-06-03 Christian Persch <chpe@cvs.gnome.org> + + * lib/widgets/ephy-spinner.c: + + Fix compile with -Werror. + 2003-06-03 Piers Cornwell <piersc@cogs.susx.ac.uk> * configure.in: update mozilla versions diff --git a/lib/widgets/ephy-spinner.c b/lib/widgets/ephy-spinner.c index 0cd867db7..4f0d79b3e 100644 --- a/lib/widgets/ephy-spinner.c +++ b/lib/widgets/ephy-spinner.c @@ -71,17 +71,6 @@ static GList *spinner_directories = NULL; static void ephy_spinner_init_directory_list (void); -static EphySpinnerInfo * -ephy_spinner_get_theme_info (const gchar *base, const gchar *theme_name); -static gchar * -ephy_spinner_get_theme_path (const gchar *theme_name); - -struct EphySpinnerInfo -{ - char *name; - char *filename; - char *directory; -}; static GObjectClass *parent_class = NULL; @@ -556,32 +545,6 @@ ephy_spinner_class_init (EphySpinnerClass *class) widget_class->size_request = ephy_spinner_size_request; } -static EphySpinnerInfo * -ephy_spinner_get_theme_info (const gchar *base, const gchar *theme_name) -{ - EphySpinnerInfo *info; - gchar *path; - gchar *icon; - - path = g_build_filename (base, theme_name, "spinner", NULL); - icon = g_build_filename (path, "rest.png", NULL); - - if (!g_file_test (icon, G_FILE_TEST_EXISTS)) - { - g_free (path); - g_free (icon); - - return NULL; - } - - info = g_new(EphySpinnerInfo, 1); - info->name = g_strdup (theme_name); - info->directory = path; - info->filename = icon; - - return info; -} - static void ephy_spinner_init_directory_list (void) { @@ -595,34 +558,3 @@ ephy_spinner_init_directory_list (void) spinner_directories = g_list_append (spinner_directories, path); #endif } - -static void -ephy_spinner_info_free (EphySpinnerInfo *info) -{ - g_free (info->name); - g_free (info->directory); - g_free (info->filename); - g_free (info); -} - -static gchar * -ephy_spinner_get_theme_path (const gchar *theme_name) -{ - EphySpinnerInfo *info; - GList *tmp; - - for (tmp = spinner_directories; tmp != NULL; tmp = g_list_next (tmp)) - { - gchar *path = tmp->data; - - info = ephy_spinner_get_theme_info (path, theme_name); - if (info != NULL) - { - path = g_strdup (info->directory); - ephy_spinner_info_free (info); - return path; - } - } - - return NULL; -} |