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
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
gajim
gajim-plugins
Commits
8137a59c
Commit
8137a59c
authored
12 years ago
by
Dicson
Browse files
Options
Downloads
Patches
Plain Diff
roster_tweak. always show correct global status message in the quich-change status field.
parent
aec1b5c7
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
+4
-2
4 additions, 2 deletions
roster_tweaks/manifest.ini
roster_tweaks/roster_tweaks.py
+13
-4
13 additions, 4 deletions
roster_tweaks/roster_tweaks.py
with
17 additions
and
6 deletions
roster_tweaks/manifest.ini
+
4
−
2
View file @
8137a59c
[info]
name:
Roster
Tweaks
short_name:
roster_tweaks
version:
0.
5
version:
0.
6
description:
Allows
user
to
tweak
roster
window
appearance
(eg.
make
it
compact).
Based
on
ticket
#3340:
http://trac.gajim.org/ticket/3340
.
http://trac.gajim.org/ticket/3340
Added
ability
to
quickly
change
the
status
message
to
all
connected
accounts.
Based
on
ticket
#5085:
http://trac.gajim.org/ticket/5085.
authors
=
Denis Fomin <fominde@gmail.com>
homepage
=
http://trac-plugins.gajim.org/wiki
This diff is collapsed.
Click to expand it.
roster_tweaks/roster_tweaks.py
+
13
−
4
View file @
8137a59c
...
...
@@ -4,12 +4,11 @@ import gtk
import
pango
import
gobject
from
common
import
gajim
from
common
import
gajim
,
ged
,
helpers
,
pep
from
plugins
import
GajimPlugin
from
plugins.helpers
import
log_calls
from
plugins.gui
import
GajimPluginConfigDialog
from
dialogs
import
ChangeActivityDialog
,
ChangeMoodDialog
from
common
import
pep
import
gtkgui_helpers
...
...
@@ -21,15 +20,24 @@ class RosterTweaksPlugin(GajimPlugin):
'
(eg. make it compact).
\n
Based on ticket #3340:
\n
'
'
http://trac.gajim.org/ticket/3340.
\n
'
'
Added ability to quickly change the status message
'
'
to all connected accounts.
'
)
'
to all connected accounts.
\n
'
'
Based on ticket #5085:
\n
'
'
http://trac.gajim.org/ticket/5085.
'
)
self
.
config_dialog
=
RosterTweaksPluginConfigDialog
(
self
)
self
.
config_default_values
=
{
'
hide_status_combo
'
:
(
False
,
''
),
'
use_ctr_m
'
:
(
False
,
''
),
'
menu_visible
'
:
(
True
,
''
),
'
quick_status
'
:
(
False
,
''
)}
self
.
events_handlers
=
{
'
our-show
'
:
(
ged
.
GUI2
,
self
.
our_show
)}
self
.
roster
=
gajim
.
interface
.
roster
def
our_show
(
self
,
obj
):
if
self
.
active
:
if
helpers
.
get_global_show
()
!=
gajim
.
SHOW_LIST
[
0
]:
self
.
status_widget
.
set_text
(
helpers
.
get_global_status
())
else
:
self
.
status_widget
.
set_text
(
''
)
@log_calls
(
'
RosterTweaksPlugin
'
)
def
activate
(
self
):
self
.
pep_dict
=
{}
...
...
@@ -192,6 +200,7 @@ class RosterTweaksPluginConfigDialog(GajimPluginConfigDialog):
self
.
plugin
.
status_widget
.
set_property
(
'
visible
'
,
button
.
get_active
())
self
.
plugin
.
mood_button
.
set_property
(
'
visible
'
,
button
.
get_active
())
self
.
plugin
.
activity_button
.
set_property
(
'
visible
'
,
button
.
get_active
())
self
.
plugin
.
status_widget
.
set_text
(
helpers
.
get_global_status
())
def
on_use_ctr_m_toggled
(
self
,
button
):
is_ctr_m_enabled
=
button
.
get_active
()
...
...
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