[evolution-patches] fix for addressbook bug #42625
- From: Chris Toshok <toshok ximian com>
- To: evolution-patches ximian com
- Subject: [evolution-patches] fix for addressbook bug #42625
- Date: 12 May 2003 02:22:42 -0700
We need to resize the fieldname taller so it matches the height of the
field value.
Chris
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/ChangeLog,v
retrieving revision 1.1401
diff -u -r1.1401 ChangeLog
--- ChangeLog 12 May 2003 08:54:39 -0000 1.1401
+++ ChangeLog 12 May 2003 09:21:24 -0000
@@ -1,3 +1,11 @@
+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.
+
2003-05-12 Sean Gao <sean gao sun com>
* gui/contact-list-editor/e-contact-list-editor.c
Index: gui/widgets/e-minicard-label.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/e-minicard-label.c,v
retrieving revision 1.34
diff -u -r1.34 e-minicard-label.c
--- gui/widgets/e-minicard-label.c 8 Apr 2003 04:44:56 -0000 1.34
+++ gui/widgets/e-minicard-label.c 12 May 2003 09:21:24 -0000
@@ -365,7 +365,6 @@
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);
@@ -483,6 +482,10 @@
gnome_canvas_item_set( e_minicard_label->rect,
"x2", (double) e_minicard_label->width - 1,
"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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]