From 1e8ee19ea0e651414c98d0f863b76c72d484cf83 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Wed, 29 Feb 2012 17:41:55 +0100 Subject: ephy-location-controller: smoother redraw of the completion popup Workaround some bugs in entry completion's redraw code. See https://bugzilla.gnome.org/show_bug.cgi?id=671074 --- src/ephy-location-controller.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/ephy-location-controller.c b/src/ephy-location-controller.c index 9315ad6cf..5908967a4 100644 --- a/src/ephy-location-controller.c +++ b/src/ephy-location-controller.c @@ -164,6 +164,18 @@ entry_activate_cb (GtkEntry *entry, g_free (address); } +static void +update_done_cb (EphyHistoryService *service, + gboolean success, + gpointer result_data, + gpointer user_data) +{ + /* FIXME: this hack is needed for the completion entry popup + * to resize smoothly. See: + * https://bugzilla.gnome.org/show_bug.cgi?id=671074 */ + gtk_entry_completion_complete (GTK_ENTRY_COMPLETION (user_data)); +} + static void user_changed_cb (GtkWidget *widget, EphyLocationController *controller) { @@ -182,7 +194,7 @@ user_changed_cb (GtkWidget *widget, EphyLocationController *controller) model = gtk_entry_completion_get_model (completion); ephy_completion_model_update_for_string (EPHY_COMPLETION_MODEL (model), address, - NULL, NULL); + update_done_cb, completion); g_signal_handlers_unblock_by_func (controller, G_CALLBACK (sync_address), widget); } -- cgit v1.2.3