diff src/view_file.c @ 1272:e0e12512cde2

read external editors from .desktop files
author nadvornik
date Sun, 01 Feb 2009 12:48:14 +0000
parents 1646720364cf
children 8b89e3ff286b
line wrap: on
line diff
--- a/src/view_file.c	Thu Jan 29 19:43:34 2009 +0000
+++ b/src/view_file.c	Sun Feb 01 12:48:14 2009 +0000
@@ -299,16 +299,15 @@
 static void vf_pop_menu_edit_cb(GtkWidget *widget, gpointer data)
 {
 	ViewFile *vf;
-	gint n;
+	const gchar *key = data;
 	GList *list;
 
 	vf = submenu_item_get_data(widget);
-	n = GPOINTER_TO_INT(data);
 
 	if (!vf) return;
 
 	list = vf_pop_menu_file_list(vf);
-	file_util_start_editor_from_filelist(n, list, vf->listview);
+	file_util_start_editor_from_filelist(key, list, vf->listview);
 	filelist_free(list);
 }