From 033833c50d7893e8d29d3a10201bbe2d92e202c0 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Wed, 14 Aug 2013 23:39:34 +0200 Subject: [PATCH] Document that workaround And a remainder that we want to drop this once we don't support GTK+2 anymore. Signed-off-by: Sebastian Ramacher --- zathura.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zathura.c b/zathura.c index 4de8c8c..182a99a 100644 --- a/zathura.c +++ b/zathura.c @@ -1188,6 +1188,9 @@ zathura_jumplist_hide_inputbar(zathura_t* zathura) girara_isc_completion(zathura->ui.session, &arg, NULL, 0); if (zathura->ui.session->global.autohide_inputbar == true) { + /* XXX: This is a workaround for incremental-search. We should revisit this + * when we drop GTK+3 support and the inputbar is placed in a GtkOverlay + * widget. */ char *input = gtk_editable_get_chars(GTK_EDITABLE(zathura->ui.session->gtk.inputbar_entry), 0, -1); bool res = false; @@ -1198,6 +1201,7 @@ zathura_jumplist_hide_inputbar(zathura_t* zathura) return; } + /* */ gtk_widget_hide(zathura->ui.session->gtk.inputbar); }