Mercurial > geeqie.yaz
diff src/view_dir.h @ 523:0717bcc4f2b7
Handle the case of reduction of the number of view directory types.
Previously it was leading to a segfault.
author | zas_ |
---|---|
date | Fri, 25 Apr 2008 08:07:22 +0000 |
parents | 48c8e49b571c |
children | 93a1730e4641 |
line wrap: on
line diff
--- a/src/view_dir.h Thu Apr 24 20:29:09 2008 +0000 +++ b/src/view_dir.h Fri Apr 25 08:07:22 2008 +0000 @@ -20,7 +20,8 @@ DIR_COLUMN_COUNT }; -extern GtkRadioActionEntry menu_view_dir_radio_entries[2]; +#define VIEW_DIR_TYPES_COUNT 1 +extern GtkRadioActionEntry menu_view_dir_radio_entries[VIEW_DIR_TYPES_COUNT]; ViewDir *vd_new(DirViewType type, const gchar *path);