~ubuntu-branches/debian/stretch/darktable/stretch

« back to all changes in this revision

Viewing changes to src/views/view.c

  • Committer: Package Import Robot
  • Author(s): David Bremner
  • Date: 2013-07-28 18:18:54 UTC
  • mfrom: (13.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130728181854-0ighzoz5nvq0zzoe
Tags: 1.2.2-1
* New upstream "hardware support release"
  - updated rawspeed r553. Support for Canon EOS 700D, Nikon Coolpix
    P330, New Olymbus base curve Updated Adobe Coeffs
  - Enhanced color matrices: Canon 700D (from Canon 650D), Canon 100D
    (from Canon 650D), Sony NEX-7
  - White balance presets: Some updates from UFRaw, Canon 100D, Canon
    700D, Sony SLT-A37 Nikon, Coolpix P330
  - Noise profiles: Canon EOS-M, Olympus E-600 (from: Olympus E-30),
    Olympus E-620 (from: Olympus E-30), Samsung WB2000, Sony A99v,
    Panasonic DMC-G10 iso 100, Nikon D60
  - Bug fixes: 0 star rating working again, LT: ctrl+d duplicates per
    default now, Some fixes concerning locale handling, double click on
    film strip jumps to image, remember position in collections, ctrl+k
    jumps to previous collection, Blending parameters are preserved when
    module is deactivated, In full-preview (alt-1) ratings and labels are
    only applied to image shown, libsquish compilation now optional, dr:
    deactivate interpolation at 200% zoom

Show diffs side-by-side

added added

removed removed

Lines of Context:
643
643
     3) If there is not a selection, the image hovered is returned
644
644
  */
645
645
  int32_t mouse_over_id = -1;
646
 
  int zoom = dt_conf_get_int("plugins/lighttable/images_in_row");
 
646
  int zoom = darktable.view_manager->proxy.lighttable.get_images_in_row 
 
647
            (darktable.view_manager->proxy.lighttable.view);
 
648
  
 
649
  int full_preview_id = darktable.view_manager->proxy.lighttable.get_full_preview_id
 
650
            (darktable.view_manager->proxy.lighttable.view);
 
651
 
647
652
 
648
653
  DT_CTL_GET_GLOBAL(mouse_over_id, lib_image_mouse_over_id);
649
654
 
650
 
  if(zoom == 1)
 
655
  if(zoom == 1 || full_preview_id > 1)
651
656
  {
652
657
    return mouse_over_id;
653
658
  }
1280
1285
    vm->proxy.lighttable.set_zoom(vm->proxy.lighttable.module, zoom);
1281
1286
}
1282
1287
 
 
1288
void dt_view_lighttable_set_position(dt_view_manager_t *vm, uint32_t pos)
 
1289
{
 
1290
  if (vm->proxy.lighttable.view)
 
1291
    vm->proxy.lighttable.set_position(vm->proxy.lighttable.view, pos);
 
1292
}
 
1293
 
 
1294
uint32_t dt_view_lighttable_get_position(dt_view_manager_t *vm)
 
1295
{
 
1296
  if (vm->proxy.lighttable.view)
 
1297
    return vm->proxy.lighttable.get_position(vm->proxy.lighttable.view);
 
1298
  return 0;
 
1299
}
 
1300
 
1283
1301
void dt_view_collection_update(const dt_view_manager_t *vm)
1284
1302
{
1285
1303
  if (vm->proxy.module_collect.module)