[pybliographer] config: Remove option to enable/disable tooltips
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pybliographer] config: Remove option to enable/disable tooltips
- Date: Thu, 29 Mar 2018 03:40:05 +0000 (UTC)
commit 379e9808d8498f32ff39451e88fd215b65e79e35
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Wed Mar 28 21:27:56 2018 -0300
config: Remove option to enable/disable tooltips
Pyblio/ConfDir/Gnome.py | 5 -----
Pyblio/Config.py | 3 ++-
Pyblio/GnomeUI/Common.py | 1 -
Pyblio/GnomeUI/Config.py | 7 -------
Pyblio/GnomeUI/Document.py | 7 -------
Pyblio/GnomeUI/Fields.py | 3 ---
Pyblio/GnomeUI/Utils.py | 14 --------------
7 files changed, 2 insertions(+), 38 deletions(-)
---
diff --git a/Pyblio/ConfDir/Gnome.py b/Pyblio/ConfDir/Gnome.py
index acd5328..3cd56c9 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 ())
@@ -30,8 +27,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/columns', ('Author', 'Date', 'Title'))
diff --git a/Pyblio/Config.py b/Pyblio/Config.py
index 22bdbe3..e891e09 100644
--- a/Pyblio/Config.py
+++ b/Pyblio/Config.py
@@ -32,7 +32,8 @@ import types
pickle = cPickle
del cPickle
-deprecated_keys = ['gnome/old-confirmation-dialog',]
+deprecated_keys = ['gnome/old-confirmation-dialog',
+ 'gnome/tooltips']
class ConfigItem:
diff --git a/Pyblio/GnomeUI/Common.py b/Pyblio/GnomeUI/Common.py
index ae00b4e..b792f55 100644
--- a/Pyblio/GnomeUI/Common.py
+++ b/Pyblio/GnomeUI/Common.py
@@ -127,7 +127,6 @@ class filechooserdialog (gtk.FileChooserDialog):
gtk.FileChooserDialog.__init__ (
self, title, None, gtk.FILE_CHOOSER_ACTION_SAVE,
backend="gnomevfs")
- tips = gtk.Tooltips ()
self.set_local_only (False)
diff --git a/Pyblio/GnomeUI/Config.py b/Pyblio/GnomeUI/Config.py
index 822d368..1a039c9 100644
--- a/Pyblio/GnomeUI/Config.py
+++ b/Pyblio/GnomeUI/Config.py
@@ -53,9 +53,6 @@ class ConfigDialog (Utils.Builder):
content.pack_start (self.w)
-## tooltips = gtk.Tooltips ()
-## tooltips.enable ()
-
self.warning = False
self.parent = parent
@@ -105,10 +102,6 @@ class ConfigDialog (Utils.Builder):
cw [item] = edit
hbox.pack_start (edit.w, False)
-
-
-## tooltips.set_tip (button, desc)
-
table.pack_start (hbox,
expand = edit.resize,
fill = edit.resize)
diff --git a/Pyblio/GnomeUI/Document.py b/Pyblio/GnomeUI/Document.py
index 5d93775..6d93dc0 100644
--- a/Pyblio/GnomeUI/Document.py
+++ b/Pyblio/GnomeUI/Document.py
@@ -225,16 +225,9 @@ class Document (Connector.Publisher):
i.set_from_stock(gtk.STOCK_FIND, gtk.ICON_SIZE_LARGE_TOOLBAR)
h.pack_start(i, 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)
-## self.toolbartips.set_tip(self.quick_search, _('Quick search'))
-
- if Config.get ('gnome/tooltips').data:
- 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 aa51633..d71fc75 100644
--- a/Pyblio/GnomeUI/Fields.py
+++ b/Pyblio/GnomeUI/Fields.py
@@ -60,9 +60,6 @@ class FieldsDialog (Utils.Builder):
self.dialog = self.xml.get_object('fields1')
self.w = self.xml.get_object('notebook')
-## tooltips = gtk.Tooltips ()
-## tooltips.enable ()
-
self.warning = False
self.parent = parent
self.init_page_1()
diff --git a/Pyblio/GnomeUI/Utils.py b/Pyblio/GnomeUI/Utils.py
index e084662..d85bd2b 100644
--- a/Pyblio/GnomeUI/Utils.py
+++ b/Pyblio/GnomeUI/Utils.py
@@ -145,20 +145,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]