diff --git a/src/common/config.py b/src/common/config.py index d5870739ccf78c68dae1164a40cde5c25b284504..0f77224c77daffec0b1926baa2c14312c9e7672e 100644 --- a/src/common/config.py +++ b/src/common/config.py @@ -118,7 +118,8 @@ class Config: 'always_english_wikipedia': [opt_bool, False], 'use_dbus': [opt_bool, True], # allow control via dbus service 'send_receive_chat_state_notifications': [opt_bool, True], - 'print_ichat_every_foo_minutes': [opt_int, 5], # default is every 5 minutes + 'autodetect_browser_mailer': [opt_bool, True], + 'print_ichat_every_foo_minutes': [opt_int, 5], 'confirm_close_muc': [opt_bool, True], # confirm closing MUC window 'notify_on_file_complete': [opt_bool, True], # notif. on file complete 'file_transfers_port': [opt_int, 28011], # port, used for file transfers diff --git a/src/config.py b/src/config.py index 8989a8f187a8df7e3ba76fa0233c37eec6fa1396..07774a028e0a022f1907cc93fa7ccfbf41ae90e0 100644 --- a/src/config.py +++ b/src/config.py @@ -365,7 +365,7 @@ class PreferencesWindow: self.links_open_with_combobox = self.xml.get_widget('links_open_with_combobox') if gajim.config.get('autodetect_browser_mailer'): self.links_open_with_combobox.set_active(0) - gtkgui_helpers.plugin.autodetect_browser_mailer() + gtkgui_helpers.autodetect_browser_mailer() # autodetect_browser_mailer is now False. # so user has 'Always Use GNOME/KDE' or Custom elif gajim.config.get('openwith') == 'gnome-open': diff --git a/src/gajim.py b/src/gajim.py index 18747abfbf6ec550d8c699cbcfe0ec8d293e4f88..4f1629b51aadead5a42eb6a9bbff0710b304c08a 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -1016,7 +1016,7 @@ class Interface: if gajim.config.get('autodetect_browser_mailer'): - gtkgui_helpers.plugin.autodetect_browser_mailer() + gtkgui_helpers.autodetect_browser_mailer() if gajim.verbose: gajim.log.setLevel(gajim.logging.DEBUG) diff --git a/src/gtkgui.glade b/src/gtkgui.glade index a5f456e03dd49482b72a2897780821278883934a..9cd01441e8442dfd448026e447968508584db9e1 100644 --- a/src/gtkgui.glade +++ b/src/gtkgui.glade @@ -10138,7 +10138,8 @@ Status message</property> <child> <widget class="GtkEventBox" id="gpg_eventbox"> <property name="visible">True</property> - <property name="visible_window">False</property> + <property name="tooltip" translatable="yes">GPG Encryption</property> + <property name="visible_window">True</property> <property name="above_child">False</property> <child> diff --git a/src/gtkgui_helpers.py b/src/gtkgui_helpers.py index 8ac7c07ba90675e6dbb8ffc57ac5ff660bf9534a..8aa12a8937b5ee6229a48e6174797443f5ccc9f0 100644 --- a/src/gtkgui_helpers.py +++ b/src/gtkgui_helpers.py @@ -22,9 +22,14 @@ import xml.sax.saxutils import gtk +import os from common import i18n - +i18n.init() _ = i18n._ +from common import gajim + + + def convert_bytes(string): suffix = '' @@ -60,7 +65,7 @@ def escape_for_pango_markup(string): return escaped_str -def autodetect_browser_mailer(self): +def autodetect_browser_mailer(): #recognize the environment for appropriate browser/mailer if os.path.isdir('/proc'): # under Linux: checking if 'gnome-session' or