diff src/layout_image.c @ 1272:e0e12512cde2

read external editors from .desktop files
author nadvornik
date Sun, 01 Feb 2009 12:48:14 +0000
parents 08b4598c7cba
children 1ac2baeb8dc9
line wrap: on
line diff
--- a/src/layout_image.c	Thu Jan 29 19:43:34 2009 +0000
+++ b/src/layout_image.c	Sun Feb 01 12:48:14 2009 +0000
@@ -309,16 +309,15 @@
 static void li_pop_menu_edit_cb(GtkWidget *widget, gpointer data)
 {
 	LayoutWindow *lw;
-	gint n;
+	const gchar *key = data;
 
 	lw = submenu_item_get_data(widget);
-	n = GPOINTER_TO_INT(data);
 
-	if (!editor_window_flag_set(n))
+	if (!editor_window_flag_set(key))
 		{
 		layout_image_full_screen_stop(lw);
 		}
-	file_util_start_editor_from_file(n, layout_image_get_fd(lw), lw->window);
+	file_util_start_editor_from_file(key, layout_image_get_fd(lw), lw->window);
 }
 
 static void li_pop_menu_wallpaper_cb(GtkWidget *widget, gpointer data)