comparison src/search.c @ 1445:cb0040be832e

fixed viewing image from dupe and search windows
author nadvornik
date Sun, 15 Mar 2009 17:40:04 +0000
parents a005287bffc7
children 5f49f305a6b6
comparison
equal deleted inserted replaced
1444:a005287bffc7 1445:cb0040be832e
21 #include "dupe.h" 21 #include "dupe.h"
22 #include "editors.h" 22 #include "editors.h"
23 #include "filedata.h" 23 #include "filedata.h"
24 #include "image-load.h" 24 #include "image-load.h"
25 #include "img-view.h" 25 #include "img-view.h"
26 #include "layout_image.h" 26 #include "layout.h"
27 #include "menu.h" 27 #include "menu.h"
28 #include "metadata.h" 28 #include "metadata.h"
29 #include "misc.h" 29 #include "misc.h"
30 #include "print.h" 30 #include "print.h"
31 #include "thumb.h" 31 #include "thumb.h"
875 875
876 static void sr_menu_view_cb(GtkWidget *widget, gpointer data) 876 static void sr_menu_view_cb(GtkWidget *widget, gpointer data)
877 { 877 {
878 SearchData *sd = data; 878 SearchData *sd = data;
879 879
880 if (sd->click_fd) layout_image_set_fd(NULL, sd->click_fd); 880 if (sd->click_fd) layout_set_fd(NULL, sd->click_fd);
881 } 881 }
882 882
883 static void sr_menu_viewnew_cb(GtkWidget *widget, gpointer data) 883 static void sr_menu_viewnew_cb(GtkWidget *widget, gpointer data)
884 { 884 {
885 SearchData *sd = data; 885 SearchData *sd = data;
1093 1093
1094 if (!mfd) return FALSE; 1094 if (!mfd) return FALSE;
1095 1095
1096 if (bevent->button == MOUSE_BUTTON_LEFT && bevent->type == GDK_2BUTTON_PRESS) 1096 if (bevent->button == MOUSE_BUTTON_LEFT && bevent->type == GDK_2BUTTON_PRESS)
1097 { 1097 {
1098 layout_image_set_fd(NULL, mfd->fd); 1098 layout_set_fd(NULL, mfd->fd);
1099 } 1099 }
1100 1100
1101 if (bevent->button == MOUSE_BUTTON_MIDDLE) return TRUE; 1101 if (bevent->button == MOUSE_BUTTON_MIDDLE) return TRUE;
1102 1102
1103 if (bevent->button == MOUSE_BUTTON_RIGHT) 1103 if (bevent->button == MOUSE_BUTTON_RIGHT)
1296 { 1296 {
1297 stop_signal = TRUE; 1297 stop_signal = TRUE;
1298 switch (event->keyval) 1298 switch (event->keyval)
1299 { 1299 {
1300 case GDK_Return: case GDK_KP_Enter: 1300 case GDK_Return: case GDK_KP_Enter:
1301 if (mfd) layout_image_set_fd(NULL, mfd->fd); 1301 if (mfd) layout_set_fd(NULL, mfd->fd);
1302 break; 1302 break;
1303 case 'V': case 'v': 1303 case 'V': case 'v':
1304 { 1304 {
1305 GList *list; 1305 GList *list;
1306 1306