From 35e7e4920112d6c1d4f73a82b7d1708522bd79fe Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Wed, 6 Jun 2001 17:57:19 +0000 Subject: Applied patch from Jacob Berkman to un-offset the completion popup and add 2001-06-06 Jon Trowbridge * gal/e-text/e-entry.c: * gal/e-text/e-completion-view.c: Applied patch from Jacob Berkman to un-offset the completion popup and add a border around it. I tweaked it slightly to make the border two pixels thick instead of one. (Which I like, but might annoy everyone else. We'll see.) svn path=/trunk/; revision=10133 --- widgets/text/e-entry.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'widgets/text/e-entry.c') diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c index 022efa15f7..7d87b76587 100644 --- a/widgets/text/e-entry.c +++ b/widgets/text/e-entry.c @@ -49,6 +49,8 @@ #include "e-text.h" #include "e-entry.h" +#define MOVE_RIGHT_AND_UP 0 + #define EVIL_POINTER_WARPING_HACK #ifdef EVIL_POINTER_WARPING_HACK @@ -150,7 +152,7 @@ canvas_size_allocate (GtkWidget *widget, GtkAllocation *alloc, "clip_height", (double) (alloc->height), NULL); - if (entry->priv->draw_borders) { + if (!entry->priv->draw_borders) { xthick = 0; ythick = 0; } else { @@ -472,13 +474,17 @@ e_entry_show_popup (EEntry *entry, gboolean visible) x = xo + dim->x; y = yo + dim->height + dim->y; +#if MOVE_RIGHT_AND_UP /* Put our popup slightly to the right and up, to try to give a visual cue that this popup is tied to this entry. Otherwise one-row popups can sort of "blend" with an entry directly below. */ fudge = MAX (dim->height/10, 3); /* just in case we are using a really big font, etc. */ x += 2*fudge; y -= fudge; - +#else + fudge = 1; + y -= fudge; +#endif gtk_widget_set_uposition (pop, x, y); e_completion_view_set_width (E_COMPLETION_VIEW (entry->priv->completion_view), dim->width); -- cgit v1.2.3