Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gajim-plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
59
Issues
59
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim-plugins
Commits
3b92aaac
Commit
3b92aaac
authored
Oct 15, 2018
by
Daniel Brötzmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[set_location] Add dependency bar
parent
39ef5002
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
16 deletions
+14
-16
set_location/config_dialog.ui
set_location/config_dialog.ui
+12
-12
set_location/set_location.py
set_location/set_location.py
+2
-4
No files found.
set_location/config_dialog.ui
View file @
3b92aaac
...
...
@@ -18,24 +18,15 @@
<object
class=
"GtkInfoBar"
id=
"dependency_warning"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"no_show_all"
>
True
</property>
<property
name=
"message_type"
>
warning
</property>
<property
name=
"show_close_button"
>
True
</property>
<child
internal-child=
"action_area"
>
<object
class=
"GtkButtonBox"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"spacing"
>
6
</property>
<property
name=
"layout_style"
>
end
</property>
<child>
<object
class=
"GtkLabel"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
You need to install gir1.2-gtkchamplain and gir1.2-gtkclutter-1.0 for the map to work.
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
<placeholder/>
</child>
</object>
<packing>
...
...
@@ -48,7 +39,16 @@
<object
class=
"GtkBox"
>
<property
name=
"can_focus"
>
False
</property>
<child>
<placeholder/>
<object
class=
"GtkLabel"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
You need to install gir1.2-gtkchamplain and gir1.2-gtkclutter-1.0 for the map to work.
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
</object>
<packing>
...
...
set_location/set_location.py
View file @
3b92aaac
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment