summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-07-13 00:41:43 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-07-13 00:41:43 +0000
commit01cefcedd78294ee62028a776cc6774d92276e49 (patch)
tree45ed47368a189a0a97c4d7f6ee0223694853422e /src/bin
parent98a812eea0759d9e15048d5afe726c751c931e5b (diff)
terminology: temporary fix for selecting the first column.
SVN revision: 73783
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/termio.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/bin/termio.c b/src/bin/termio.c
index 9962046..d31cb97 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -709,6 +709,7 @@ _smart_apply(Evas_Object *obj)
709 if (sd->cur.sel) 709 if (sd->cur.sel)
710 { 710 {
711 int start_x, start_y, end_x, end_y; 711 int start_x, start_y, end_x, end_y;
712 int size_top, size_bottom;
712 713
713 start_x = sd->cur.sel1.x; 714 start_x = sd->cur.sel1.x;
714 start_y = sd->cur.sel1.y; 715 start_y = sd->cur.sel1.y;
@@ -722,17 +723,23 @@ _smart_apply(Evas_Object *obj)
722 t = start_y; start_y = end_y; end_y = t; 723 t = start_y; start_y = end_y; end_y = t;
723 } 724 }
724 725
726 size_top = start_x * sd->font.chw;
727 if (!size_top) size_top = 1;
728
729 size_bottom = (sd->grid.w - end_x) * sd->font.chw;
730 if (!size_bottom) size_bottom = 1;
731
725 evas_object_size_hint_min_set(sd->cur.selo_top, 732 evas_object_size_hint_min_set(sd->cur.selo_top,
726 start_x * sd->font.chw, 733 size_top,
727 sd->font.chh); 734 sd->font.chh);
728 evas_object_size_hint_max_set(sd->cur.selo_top, 735 evas_object_size_hint_max_set(sd->cur.selo_top,
729 start_x * sd->font.chw, 736 size_top,
730 sd->font.chh); 737 sd->font.chh);
731 evas_object_size_hint_min_set(sd->cur.selo_bottom, 738 evas_object_size_hint_min_set(sd->cur.selo_bottom,
732 (sd->grid.w - end_x) * sd->font.chw, 739 size_bottom,
733 sd->font.chh); 740 sd->font.chh);
734 evas_object_size_hint_max_set(sd->cur.selo_bottom, 741 evas_object_size_hint_max_set(sd->cur.selo_bottom,
735 (sd->grid.w - end_x) * sd->font.chw, 742 size_bottom,
736 sd->font.chh); 743 sd->font.chh);
737 evas_object_move(sd->cur.selo_theme, 744 evas_object_move(sd->cur.selo_theme,
738 ox, 745 ox,