diff options
author | Daniel Brötzmann <mailtrash@posteo.de> | 2018-10-15 20:23:18 +0300 |
---|---|---|
committer | Daniel Brötzmann <mailtrash@posteo.de> | 2018-10-24 22:19:10 +0300 |
commit | 3b92aaac28a82fdb40d48906cde0b637afde18c6 (patch) | |
tree | 6454516292fba6de203652ec30da459c84ba49a9 /set_location/set_location.py | |
parent | 39ef5002c3c7419518c21a50af2883ff3f19a73a (diff) |
[set_location] Add dependency bar
Diffstat (limited to 'set_location/set_location.py')
-rw-r--r-- | set_location/set_location.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/set_location/set_location.py b/set_location/set_location.py index 6c77da4..2dbcd0d 100644 --- a/set_location/set_location.py +++ b/set_location/set_location.py @@ -35,7 +35,7 @@ try: GtkClutter.init([]) # Must be initialized before importing those: from gi.repository import Champlain, GtkChamplain except: - log.exception('Champlain library not available') + log.exception('To view the map, you have to install all dependencies') CHAMPLAIN_AVAILABLE = False @@ -141,13 +141,11 @@ class SetLocationPluginConfigDialog(GajimPluginConfigDialog): map_placeholder = self.xml.get_object('map_placeholder') dependency_bar = self.xml.get_object('dependency_warning') - dependency_bar.connect("close", lambda b: b.hide()) - dependency_bar.connect("response", lambda b,i: b.hide()) if CHAMPLAIN_AVAILABLE and not self.is_active: map_placeholder.set_no_show_all(True) map_placeholder.hide() - dependency_bar.set_revealed(False) + dependency_bar.hide() map_box = self.xml.get_object('map_box') map_box.set_size_request(400, -1) |