aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-05-15 05:56:17 +0800
committerChris Toshok <toshok@src.gnome.org>2003-05-15 05:56:17 +0800
commit7535239b99706fbd3760c0e98deb34418123f6a7 (patch)
tree172a313cf7250e650064e5a8f379ec696f2ffe7d /addressbook/gui/widgets
parentb92fb7c88fb213128ef7b2453fd67aabb4294499 (diff)
downloadgsoc2013-evolution-7535239b99706fbd3760c0e98deb34418123f6a7.tar
gsoc2013-evolution-7535239b99706fbd3760c0e98deb34418123f6a7.tar.gz
gsoc2013-evolution-7535239b99706fbd3760c0e98deb34418123f6a7.tar.bz2
gsoc2013-evolution-7535239b99706fbd3760c0e98deb34418123f6a7.tar.lz
gsoc2013-evolution-7535239b99706fbd3760c0e98deb34418123f6a7.tar.xz
gsoc2013-evolution-7535239b99706fbd3760c0e98deb34418123f6a7.tar.zst
gsoc2013-evolution-7535239b99706fbd3760c0e98deb34418123f6a7.zip
set the clip_height on reflow so the name of the field is as high as the
2003-05-12 Chris Toshok <toshok@ximian.com> * gui/widgets/e-minicard-label.c (e_minicard_label_reflow): set the clip_height on reflow so the name of the field is as high as the field's value. makes it possible to click anywhere to the left of a tall field (like an address) and have it select the field. Fixes #42625. svn path=/trunk/; revision=21183
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/e-minicard-label.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/addressbook/gui/widgets/e-minicard-label.c b/addressbook/gui/widgets/e-minicard-label.c
index b20f7dad5d..fe44b6b9e4 100644
--- a/addressbook/gui/widgets/e-minicard-label.c
+++ b/addressbook/gui/widgets/e-minicard-label.c
@@ -365,7 +365,6 @@ e_minicard_label_event (GnomeCanvasItem *item, GdkEvent *event)
break;
case GDK_FOCUS_CHANGE: {
GdkEventFocus *focus_event = (GdkEventFocus *) event;
- GtkWidget *canvas = GTK_WIDGET (GNOME_CANVAS_ITEM (item)->canvas);
e_minicard_label->has_focus = focus_event->in;
set_colors (e_minicard_label);
@@ -485,6 +484,10 @@ e_minicard_label_reflow(GnomeCanvasItem *item, int flags)
"y2", (double) e_minicard_label->height - 1,
NULL );
+ gnome_canvas_item_set( e_minicard_label->fieldname,
+ "clip_height", (double) e_minicard_label->height - 3,
+ NULL );
+
if (e_minicard_label->max_field_name_length != -1 && ((e_minicard_label->width / 2) - 4 > e_minicard_label->max_field_name_length))
left_width = e_minicard_label->max_field_name_length;
else