From 7535239b99706fbd3760c0e98deb34418123f6a7 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Wed, 14 May 2003 21:56:17 +0000 Subject: set the clip_height on reflow so the name of the field is as high as the 2003-05-12 Chris Toshok * 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 --- addressbook/gui/widgets/e-minicard-label.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'addressbook/gui/widgets/e-minicard-label.c') 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 -- cgit v1.2.3