diff src/layout_image.c @ 479:5212d4fed37f

Ensure Properties dialog is displayed above fullscreen window. Add a parameter to info_window_new() to pass parent window and revert patch 472.
author zas_
date Tue, 22 Apr 2008 08:16:02 +0000
parents 48c8e49b571c
children 67a612985686
line wrap: on
line diff
--- a/src/layout_image.c	Mon Apr 21 22:19:32 2008 +0000
+++ b/src/layout_image.c	Tue Apr 22 08:16:02 2008 +0000
@@ -182,7 +182,7 @@
 				file_util_delete(layout_image_get_fd(lw), NULL, widget);
 				break;
 			case 'P': case 'p':
-				info_window_new(layout_image_get_fd(lw), NULL);
+				info_window_new(layout_image_get_fd(lw), NULL, NULL);
 				break;
 			case 'Q': case 'q':
 				exit_program();
@@ -615,8 +615,7 @@
 {
 	LayoutWindow *lw = data;
 
-	if (lw->full_screen) layout_image_full_screen_stop(lw);
-	info_window_new(layout_image_get_fd(lw), NULL);
+	info_window_new(layout_image_get_fd(lw), NULL, lw->full_screen ? lw->full_screen->window : NULL);
 }
 
 static void li_pop_menu_new_cb(GtkWidget *widget, gpointer data)