changeset 1445:cb0040be832e

fixed viewing image from dupe and search windows
author nadvornik
date Sun, 15 Mar 2009 17:40:04 +0000
parents a005287bffc7
children a6f9ba6fd751
files src/dupe.c src/search.c
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/dupe.c	Sun Mar 15 15:01:07 2009 +0000
+++ b/src/dupe.c	Sun Mar 15 17:40:04 2009 +0000
@@ -1993,7 +1993,7 @@
 			}
 		else
 			{
-			layout_image_set_fd(NULL, di->fd);
+			layout_set_fd(NULL, di->fd);
 			}
 		}
 }
--- a/src/search.c	Sun Mar 15 15:01:07 2009 +0000
+++ b/src/search.c	Sun Mar 15 17:40:04 2009 +0000
@@ -23,7 +23,7 @@
 #include "filedata.h"
 #include "image-load.h"
 #include "img-view.h"
-#include "layout_image.h"
+#include "layout.h"
 #include "menu.h"
 #include "metadata.h"
 #include "misc.h"
@@ -877,7 +877,7 @@
 {
 	SearchData *sd = data;
 
-	if (sd->click_fd) layout_image_set_fd(NULL, sd->click_fd);
+	if (sd->click_fd) layout_set_fd(NULL, sd->click_fd);
 }
 
 static void sr_menu_viewnew_cb(GtkWidget *widget, gpointer data)
@@ -1095,7 +1095,7 @@
 
 	if (bevent->button == MOUSE_BUTTON_LEFT && bevent->type == GDK_2BUTTON_PRESS)
 		{
-		layout_image_set_fd(NULL, mfd->fd);
+		layout_set_fd(NULL, mfd->fd);
 		}
 
 	if (bevent->button == MOUSE_BUTTON_MIDDLE) return TRUE;
@@ -1298,7 +1298,7 @@
 		switch (event->keyval)
 			{
 			case GDK_Return: case GDK_KP_Enter:
-				if (mfd) layout_image_set_fd(NULL, mfd->fd);
+				if (mfd) layout_set_fd(NULL, mfd->fd);
 				break;
 			case 'V': case 'v':
 				{