diff options
author | Federico Mena Quintero <federico@novell.com> | 2008-03-14 02:13:54 +0000 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2008-03-14 02:13:54 +0000 |
commit | d31b7a0dd8a5b87f7aa6d5118301ba4aed7e91a6 (patch) | |
tree | 27f94d0fdf22c2ca90e0cc5fac088d30ae2cf065 /gtk/gtkfilechooserentry.c | |
parent | 03264fc010879f8ceb767b2377dc848ad683ae61 (diff) | |
download | gtk+-d31b7a0dd8a5b87f7aa6d5118301ba4aed7e91a6.tar.gz |
Use rough font-based spacing for the completion entry's suggestion window
2008-03-13 Federico Mena Quintero <federico@novell.com>
* gtk/gtkfilechooserentry.c (show_completion_feedback_window): Put
the feedback window at entry_height/2 pixels to the right of the
cursor, for a cheap "M-width / 2" spacing.
Signed-off-by: Federico Mena Quintero <federico@gnu.org>
svn path=/trunk/; revision=19869
Diffstat (limited to 'gtk/gtkfilechooserentry.c')
-rw-r--r-- | gtk/gtkfilechooserentry.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c index e674582392..c97fb08fc3 100644 --- a/gtk/gtkfilechooserentry.c +++ b/gtk/gtkfilechooserentry.c @@ -947,7 +947,8 @@ show_completion_feedback_window (GtkFileChooserEntry *chooser_entry) get_entry_cursor_x (chooser_entry, &cursor_x); - feedback_x = entry_x + cursor_x + 2; /* FIXME: fit to the screen if we bump on the screen's edge */ + /* FIXME: fit to the screen if we bump on the screen's edge */ + feedback_x = entry_x + cursor_x + entry_allocation->height / 2; /* cheap "half M-width" */ feedback_y = entry_y + (entry_allocation->height - feedback_req.height) / 2; gtk_window_move (GTK_WINDOW (chooser_entry->completion_feedback_window), feedback_x, feedback_y); |