diff options
author | Jon Trowbridge <trow@ximian.com> | 2001-06-07 01:57:19 +0800 |
---|---|---|
committer | Jon Trowbridge <trow@src.gnome.org> | 2001-06-07 01:57:19 +0800 |
commit | 35e7e4920112d6c1d4f73a82b7d1708522bd79fe (patch) | |
tree | e5d1334430db4a3ae346094a46af2280b4c3c5cf /widgets/text/e-entry.c | |
parent | 5772c1180d10ac63904b57df5b2b3dc17d605b0d (diff) | |
download | gsoc2013-evolution-35e7e4920112d6c1d4f73a82b7d1708522bd79fe.tar.gz gsoc2013-evolution-35e7e4920112d6c1d4f73a82b7d1708522bd79fe.tar.zst gsoc2013-evolution-35e7e4920112d6c1d4f73a82b7d1708522bd79fe.zip |
Applied patch from Jacob Berkman to un-offset the completion popup and add
2001-06-06 Jon Trowbridge <trow@ximian.com>
* 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
Diffstat (limited to 'widgets/text/e-entry.c')
-rw-r--r-- | widgets/text/e-entry.c | 10 |
1 files changed, 8 insertions, 2 deletions
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); |