Mercurial > geeqie.yaz
comparison src/typedefs.h @ 1272:e0e12512cde2
read external editors from .desktop files
author | nadvornik |
---|---|
date | Sun, 01 Feb 2009 12:48:14 +0000 |
parents | 30e207ac22e4 |
children | 93df70312ccd |
comparison
equal
deleted
inserted
replaced
1271:4fcdbb497df3 | 1272:e0e12512cde2 |
---|---|
36 typedef enum { | 36 typedef enum { |
37 FILEVIEW_LIST, | 37 FILEVIEW_LIST, |
38 FILEVIEW_ICON | 38 FILEVIEW_ICON |
39 } FileViewType; | 39 } FileViewType; |
40 | 40 |
41 typedef enum { | 41 #define CMD_COPY "geeqie-copy-command.desktop" |
42 CMD_COPY = GQ_EDITOR_GENERIC_SLOTS, | 42 #define CMD_MOVE "geeqie-move-command.desktop" |
43 CMD_MOVE, | 43 #define CMD_RENAME "geeqie-rename-command.desktop" |
44 CMD_RENAME, | 44 #define CMD_DELETE "geeqie-delete-command.desktop" |
45 CMD_DELETE, | 45 #define CMD_FOLDER "geeqie-folder-command.desktop" |
46 CMD_FOLDER, | |
47 GQ_EDITOR_SLOTS | |
48 } SpecialEditor; | |
49 | 46 |
50 typedef enum { | 47 typedef enum { |
51 SORT_NONE, | 48 SORT_NONE, |
52 SORT_NAME, | 49 SORT_NAME, |
53 SORT_SIZE, | 50 SORT_SIZE, |
200 | 197 |
201 typedef struct _SecureSaveInfo SecureSaveInfo; | 198 typedef struct _SecureSaveInfo SecureSaveInfo; |
202 | 199 |
203 typedef struct _ExifData ExifData; | 200 typedef struct _ExifData ExifData; |
204 | 201 |
205 typedef struct _Editor Editor; | 202 typedef struct _EditorDescription EditorDescription; |
206 struct _Editor { | 203 |
207 gchar *name; | 204 struct _EditorDescription { |
208 gchar *command; | 205 gchar *key; /* desktop file name, not including path, including extension */ |
209 }; | 206 gchar *name; /* localized name presented to user */ |
207 gchar *exec; | |
208 gchar *menu_path; | |
209 gchar *hotkey; | |
210 GList *ext_list; | |
211 gchar *icon; | |
212 gchar *file; | |
213 gint flags; | |
214 gboolean hidden; | |
215 }; | |
216 | |
210 | 217 |
211 struct _ImageLoader; | 218 struct _ImageLoader; |
212 | 219 |
213 typedef void (* ThumbLoaderFunc)(ThumbLoader *tl, gpointer data); | 220 typedef void (* ThumbLoaderFunc)(ThumbLoader *tl, gpointer data); |
214 | 221 |
743 gint preserve_perms; /**< whether to preserve perms, TRUE by default */ | 750 gint preserve_perms; /**< whether to preserve perms, TRUE by default */ |
744 gint preserve_mtime; /**< whether to preserve mtime, FALSE by default */ | 751 gint preserve_mtime; /**< whether to preserve mtime, FALSE by default */ |
745 gint unlink_on_error; /**< whether to remove temporary file on save failure, TRUE by default */ | 752 gint unlink_on_error; /**< whether to remove temporary file on save failure, TRUE by default */ |
746 }; | 753 }; |
747 | 754 |
748 | |
749 #endif | 755 #endif |
750 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ | 756 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |