--- gigedit/trunk/src/gigedit/regionchooser.cpp 2014/06/16 15:24:54 2641 +++ gigedit/trunk/src/gigedit/regionchooser.cpp 2015/01/06 18:11:27 2695 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2014 Andreas Persson + * Copyright (C) 2006-2015 Andreas Persson * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -540,8 +540,10 @@ // left mouse button double click if (event->type == GDK_2BUTTON_PRESS && event->button == 1) { - // show dimension manager dialog for this region - manage_dimensions(); + if (event->y < REGION_BLOCK_HEIGHT) { + // show dimension manager dialog for this region + manage_dimensions(); + } } if (event->y >= REGION_BLOCK_HEIGHT) return true; @@ -619,6 +621,13 @@ return 0; } +void RegionChooser::set_region(gig::Region* region) { + this->region = region; + queue_draw(); + region_selected(); + dimensionManager.set_region(region); +} + void RegionChooser::motion_resize_region(int x, int y) { const int w = get_width() - 1;