Hello,
this adds not a button, but does:
- not hide the quick filter if apt-xapian-index is not installed
- shows a tooltip suggesting to install the missing package

Probably this could already be sufficient?

Kind regards,
Bernhard




>From dd23e3001107e05953971778e0f374f2ac545863 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bernhard=20=C3=9Cbelacker?= <bernha...@vr-web.de>
Date: Fri, 1 Aug 2014 15:08:21 +0200
Subject: Instead of hiding the quick filter just disable it and show a tooltip
 for the user.

---
 gtk/rgmainwindow.cc | 6 ++++--
 po/de.po            | 6 ++++++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/gtk/rgmainwindow.cc b/gtk/rgmainwindow.cc
index cf54ae5..9ca9bfc 100644
--- a/gtk/rgmainwindow.cc
+++ b/gtk/rgmainwindow.cc
@@ -1602,8 +1602,10 @@ void RGMainWindow::buildInterface()
 #ifdef WITH_EPT
    if(!_lister->xapiandatabase() ||
       !FileExists("/usr/sbin/update-apt-xapian-index")) {
-      gtk_widget_hide(GTK_WIDGET(gtk_builder_get_object
-                                 (_builder, "vbox_fast_search")));
+      GtkWidget *fast_search = GTK_WIDGET(gtk_builder_get_object
+                                          (_builder, "entry_fast_search"));
+      gtk_widget_set_sensitive(fast_search, FALSE);
+      gtk_widget_set_tooltip_text(fast_search, _("To use the quick filter 
please install package apt-xapian-index"));
    }
 #else
    gtk_widget_hide(GTK_WIDGET(gtk_builder_get_object
diff --git a/po/de.po b/po/de.po
index a7ac04c..6e5806b 100644
--- a/po/de.po
+++ b/po/de.po
@@ -1754,6 +1754,12 @@ msgstr "Vorschläge zum Installieren vormerken"
 msgid "No apt-xapian-index found"
 msgstr ""
 
+#: ../gtk/rgmainwindow.cc:1608
+msgid "To use the quick filter please install package apt-xapian-index"
+msgstr ""
+"Um den Schnellauswahl-Filter zu verwenden bitte das Paket apt-xapian-index "
+"installieren"
+
 #: ../gtk/rgmainwindow.cc:1887
 msgid ""
 "Removing this package may render the system unusable.\n"
-- 
2.0.1


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to