diff src/pan-view.c @ 60:9c0c402b0ef3

Mon Jun 13 17:31:46 2005 John Ellis <johne@verizon.net> * editors.[ch]: Add "%w" macro to disable full screen deactivation when running an editor command. * img-view.c, layout_image.c, pan-view.c: Honor %w editor flag to prevent exit of full screen. * image-load.c (image_load_begin): Fix to not treat short reads as end of file condition. * README, doc/10_5_editor_commands.html: Document %w macro for editor commands. * po/it.po: Update Italian translation, submitted by Kostantino <inverness1ATvirgilio.it>.
author gqview
date Mon, 13 Jun 2005 21:39:13 +0000
parents c722cbf9ad25
children 04ff0df3ad2f
line wrap: on
line diff
--- a/src/pan-view.c	Sun Jun 12 23:45:45 2005 +0000
+++ b/src/pan-view.c	Mon Jun 13 21:39:13 2005 +0000
@@ -3523,7 +3523,10 @@
 			}
 		if (n != -1 && path)
 			{
-			pan_fullscreen_toggle(pw, TRUE);
+			if (!editor_window_flag_set(n))
+				{
+				pan_fullscreen_toggle(pw, TRUE);
+				}
 			start_editor_from_file(n, path);
 			stop_signal = TRUE;
 			}
@@ -4656,7 +4659,10 @@
 	path = pan_menu_click_path(pw);
 	if (path)
 		{
-		pan_fullscreen_toggle(pw, TRUE);
+		if (!editor_window_flag_set(n))
+			{
+			pan_fullscreen_toggle(pw, TRUE);
+			}
 		start_editor_from_file(n, path);
 		}
 }