Mercurial > geeqie.yaz
changeset 1424:0061979f7f6d
Use gboolean where applicable.
author | zas_ |
---|---|
date | Thu, 12 Mar 2009 22:44:21 +0000 |
parents | 6933974f0885 |
children | 80462be81410 |
files | src/filefilter.c src/filefilter.h |
diffstat | 2 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/filefilter.c Thu Mar 12 22:39:06 2009 +0000 +++ b/src/filefilter.c Thu Mar 12 22:44:21 2009 +0000 @@ -96,17 +96,17 @@ return NULL; } -static gint filter_key_exists(const gchar *key) +static gboolean filter_key_exists(const gchar *key) { - return (filter_get_by_key(key) == NULL ? FALSE : TRUE); + return (filter_get_by_key(key) != NULL); } -void filter_add(const gchar *key, const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gint enabled) +void filter_add(const gchar *key, const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gboolean enabled) { filter_list = g_list_append(filter_list, filter_entry_new(key, description, extensions, file_class, writable, allow_sidecar, enabled)); } -void filter_add_unique(const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gint enabled) +void filter_add_unique(const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gboolean enabled) { gchar *key; guint n; @@ -125,7 +125,7 @@ g_free(key); } -static void filter_add_if_missing(const gchar *key, const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gint enabled) +static void filter_add_if_missing(const gchar *key, const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gboolean enabled) { GList *work;
--- a/src/filefilter.h Thu Mar 12 22:39:06 2009 +0000 +++ b/src/filefilter.h Thu Mar 12 22:44:21 2009 +0000 @@ -30,8 +30,8 @@ GList *filter_get_list(void); void filter_remove_entry(FilterEntry *fe); -void filter_add(const gchar *key, const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gint enabled); -void filter_add_unique(const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gint enabled); +void filter_add(const gchar *key, const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gboolean enabled); +void filter_add_unique(const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gboolean enabled); void filter_add_defaults(void); void filter_reset(void); void filter_rebuild(void);