[pybliographer/wip/gtk3] Remove option to enable/disable tooltips
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pybliographer/wip/gtk3] Remove option to enable/disable tooltips
- Date: Tue, 10 Oct 2017 18:06:21 +0000 (UTC)
commit f715002c162f011fbde33245fca6370186570e7e
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Tue Oct 10 12:57:01 2017 -0300
Remove option to enable/disable tooltips
Pyblio/ConfDir/Gnome.py | 5 -----
Pyblio/GnomeUI/Document.py | 8 +-------
Pyblio/GnomeUI/Fields.py | 3 ---
Pyblio/GnomeUI/Utils.py | 14 --------------
4 files changed, 1 insertions(+), 29 deletions(-)
---
diff --git a/Pyblio/ConfDir/Gnome.py b/Pyblio/ConfDir/Gnome.py
index b508820..edb0162 100644
--- a/Pyblio/ConfDir/Gnome.py
+++ b/Pyblio/ConfDir/Gnome.py
@@ -11,9 +11,6 @@ Config.define ('gnome/columns', """ A list of the fields displayed
on the main screen of the interface """,
Config.List (Config.String ()))
-Config.define ('gnome/tooltips', """ A boolean indicating if
-tooltips are enabled """, Config.Boolean ())
-
Config.define ('gnome/native-as-default', """ Should we edit the
entries in their native format by default ? """, Config.Boolean ())
@@ -33,8 +30,6 @@ Config.define ('gnome/paste-key', """ Paste key instead of entry content """,
Config.set ('gnome/searched', ['Author', 'Title', 'Abstract', 'Date'])
-Config.set ('gnome/tooltips', 1)
-
Config.set ('gnome/native-as-default', 0)
Config.set ('gnome/old-confirmation-dialog', 0)
diff --git a/Pyblio/GnomeUI/Document.py b/Pyblio/GnomeUI/Document.py
index 2b5ae92..63afb37 100644
--- a/Pyblio/GnomeUI/Document.py
+++ b/Pyblio/GnomeUI/Document.py
@@ -230,16 +230,10 @@ class Document (Connector.Publisher):
i.set_from_stock(Gtk.STOCK_FIND, Gtk.IconSize.LARGE_TOOLBAR)
h.pack_start(i, False, False, False)
- # create a tooltips object
-## self.toolbartips = Gtk.Tooltips()
-
self.quick_search = Gtk.Entry()
self.quick_search.connect('activate', self.simple_search)
h.pack_start(self.quick_search, False, False, False)
-## self.toolbartips.set_tip(self.quick_search, _('Quick search'))
-
- if Config.get ('gnome/tooltips').data:
- self.quick_search.set_tooltip_text (_('Quick search'))
+ self.quick_search.set_tooltip_text (_('Quick search'))
i = Gtk.ToolItem()
i.add(h)
diff --git a/Pyblio/GnomeUI/Fields.py b/Pyblio/GnomeUI/Fields.py
index a51c2df..384c289 100644
--- a/Pyblio/GnomeUI/Fields.py
+++ b/Pyblio/GnomeUI/Fields.py
@@ -61,9 +61,6 @@ class FieldsDialog (Utils.GladeWindow):
self.dialog = self.xml.get_object('fields1')
self.w = self.xml.get_object('notebook')
-## tooltips = Gtk.Tooltips ()
-## tooltips.enable ()
-
self.menu_items = []
self.warning = 0
self.parent = parent
diff --git a/Pyblio/GnomeUI/Utils.py b/Pyblio/GnomeUI/Utils.py
index e06080e..81ffe77 100644
--- a/Pyblio/GnomeUI/Utils.py
+++ b/Pyblio/GnomeUI/Utils.py
@@ -151,20 +151,6 @@ def set_cursor (self, name):
return
-##_tooltips = Gtk.Tooltips ()
-
-
-##def set_tip (w, text):
-## _tooltips.set_tip (w, text)
-## return
-
-
-##if Config.get ('gnome/tooltips').data:
-## _tooltips.enable ()
-##else:
-## _tooltips.disable ()
-
-
def popup_add (menu, item, action = None, argument = None):
''' Helper to add a new menu entry '''
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]