diff options
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/widgets/e-minicard-label.c | 5 |
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 |