Mercurial > geeqie
diff src/pan-view.c @ 1272:e0e12512cde2
read external editors from .desktop files
author | nadvornik |
---|---|
date | Sun, 01 Feb 2009 12:48:14 +0000 |
parents | 0bea79d87065 |
children | 8b89e3ff286b |
line wrap: on
line diff
--- a/src/pan-view.c Thu Jan 29 19:43:34 2009 +0000 +++ b/src/pan-view.c Sun Feb 01 12:48:14 2009 +0000 @@ -1330,7 +1330,7 @@ stop_signal = FALSE; break; } - +#if 0 if (n != -1 && fd) { if (!editor_window_flag_set(n)) @@ -1339,6 +1339,7 @@ } file_util_start_editor_from_file(n, fd, GTK_WIDGET(pr)); } +#endif } else { @@ -2669,20 +2670,19 @@ { PanWindow *pw; FileData *fd; - gint n; + const gchar *key = data; pw = submenu_item_get_data(widget); - n = GPOINTER_TO_INT(data); if (!pw) return; fd = pan_menu_click_fd(pw); if (fd) { - if (!editor_window_flag_set(n)) + if (!editor_window_flag_set(key)) { pan_fullscreen_toggle(pw, TRUE); } - file_util_start_editor_from_file(n, fd, pw->imd->widget); + file_util_start_editor_from_file(key, fd, pw->imd->widget); } }