Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gajim-plugins
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evert Mouw
gajim-plugins
Commits
032c3993
Commit
032c3993
authored
14 years ago
by
Dicson
Browse files
Options
Downloads
Patches
Plain Diff
roster_tweaks. Do not break the keyboard shortcuts in the menus.
parent
14460070
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roster_tweaks/manifest.ini
+1
-1
1 addition, 1 deletion
roster_tweaks/manifest.ini
roster_tweaks/roster_tweaks.py
+12
-7
12 additions, 7 deletions
roster_tweaks/roster_tweaks.py
with
13 additions
and
8 deletions
roster_tweaks/manifest.ini
+
1
−
1
View file @
032c3993
[info]
name:
Roster
Tweaks
short_name:
roster_tweaks
version:
0.
1
version:
0.
2
description:
Allows
user
to
tweak
roster
window
appearance
(eg.
make
it
compact).
Based
on
ticket
#3340:
http://trac.gajim.org/ticket/3340.
...
...
This diff is collapsed.
Click to expand it.
roster_tweaks/roster_tweaks.py
+
12
−
7
View file @
032c3993
...
...
@@ -29,8 +29,11 @@ class RosterTweaksPlugin(GajimPlugin):
self
.
accel_group
.
connect_group
(
gtk
.
keysyms
.
m
,
gtk
.
gdk
.
CONTROL_MASK
,
gtk
.
ACCEL_MASK
,
self
.
on_ctrl_m
)
menubar
=
gajim
.
interface
.
roster
.
xml
.
get_object
(
'
menubar
'
)
menubar
.
set_no_show_all
(
True
)
menubar
.
set_property
(
'
visible
'
,
self
.
config
[
'
menu_visible
'
])
menubar
=
gajim
.
interface
.
roster
.
xml
.
get_object
(
'
menubar
'
)
if
self
.
config
[
'
menu_visible
'
]:
menubar
.
set_size_request
(
1
,
1
)
else
:
menubar
.
set_size_request
(
-
1
,
-
1
)
@log_calls
(
'
RosterTweaksPlugin
'
)
def
deactivate
(
self
):
...
...
@@ -38,9 +41,11 @@ class RosterTweaksPlugin(GajimPlugin):
def
on_ctrl_m
(
self
,
accel_group
,
acceleratable
,
keyval
,
modifier
):
menubar
=
gajim
.
interface
.
roster
.
xml
.
get_object
(
'
menubar
'
)
is_visible
=
menubar
.
get_property
(
'
visible
'
)
menubar
.
set_property
(
'
visible
'
,
not
is_visible
)
self
.
config
[
'
menu_visible
'
]
=
not
is_visible
if
not
self
.
config
[
'
menu_visible
'
]:
menubar
.
set_size_request
(
1
,
1
)
else
:
menubar
.
set_size_request
(
-
1
,
-
1
)
self
.
config
[
'
menu_visible
'
]
=
not
self
.
config
[
'
menu_visible
'
]
return
True
class
RosterTweaksPluginConfigDialog
(
GajimPluginConfigDialog
):
...
...
@@ -77,5 +82,5 @@ class RosterTweaksPluginConfigDialog(GajimPluginConfigDialog):
self
.
plugin
.
accel_group
.
disconnect_key
(
gtk
.
keysyms
.
m
,
gtk
.
gdk
.
CONTROL_MASK
)
self
.
plugin
.
config
[
'
menu_visible
'
]
=
True
gajim
.
interface
.
roster
.
xml
.
get_object
(
'
menubar
'
).
set_
property
(
'
visible
'
,
True
)
gajim
.
interface
.
roster
.
xml
.
get_object
(
'
menubar
'
).
set_
size_request
(
-
1
,
-
1
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment