changeset 1755:decb3b64ae74

fixed pan-view popup menu - removed wrong callback - consider sidecar files in the editor popup
author nadvornik
date Mon, 21 Sep 2009 18:48:32 +0000
parents a4f3c93294c9
children 6e2b5eee7e0a
files src/pan-view.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/pan-view.c	Mon Sep 14 21:25:10 2009 +0000
+++ b/src/pan-view.c	Mon Sep 21 18:48:32 2009 +0000
@@ -2788,7 +2788,7 @@
 	GList *list = NULL;
 	FileData *fd = pan_menu_click_fd(pw);
 	
-	if (fd) list = g_list_append(NULL, file_data_ref(fd));
+	if (fd) list = g_list_prepend(filelist_copy(fd->sidecar_files), file_data_ref(fd));
 	
 	return list;
 }
@@ -2804,8 +2804,6 @@
 	active = (pw->click_pi != NULL);
 
 	menu = popup_menu_short_lived();
-	g_signal_connect(G_OBJECT(menu), "destroy",
-			 G_CALLBACK(pan_popup_menu_destroy_cb), pw);
 
 	menu_item_add_stock(menu, _("Zoom _in"), GTK_STOCK_ZOOM_IN,
 			    G_CALLBACK(pan_zoom_in_cb), pw);