comparison src/layout.c @ 368:95fe470440ad

New Go to directory view feature that permits to find and display the directory corresponding to an image view. For example, when you open an image in new window from collection, right clicking on the newly displayed image will let you choose Go to directory view, which would open a new window, with image and directory list. If current directory is the one of the image, menu item is disabled.
author zas_
date Tue, 15 Apr 2008 06:56:25 +0000
parents 77103f3f2cb1
children 5afe77bb563a
comparison
equal deleted inserted replaced
367:3556cc825e59 368:95fe470440ad
78 { 78 {
79 LayoutWindow *lw = work->data; 79 LayoutWindow *lw = work->data;
80 work = work->next; 80 work = work->next;
81 81
82 if (lw->image == imd) return lw; 82 if (lw->image == imd) return lw;
83 }
84
85 return NULL;
86 }
87
88 LayoutWindow *layout_find_by_image_fd(ImageWindow *imd)
89 {
90 GList *work;
91
92 work = layout_window_list;
93 while (work)
94 {
95 LayoutWindow *lw = work->data;
96 work = work->next;
97 if (lw->image->image_fd == imd->image_fd)
98 return lw;
99
83 } 100 }
84 101
85 return NULL; 102 return NULL;
86 } 103 }
87 104