Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Peter Shkenev
gajim
Commits
79c5b5d0
Commit
79c5b5d0
authored
19 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
hidden_rows ==> collapsed_rows
parent
2ca90dba
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
src/common/config.py
+1
-1
1 addition, 1 deletion
src/common/config.py
src/roster_window.py
+13
-13
13 additions, 13 deletions
src/roster_window.py
with
14 additions
and
14 deletions
src/common/config.py
+
1
−
1
View file @
79c5b5d0
...
...
@@ -56,7 +56,7 @@ class Config:
'
inmsgcolor
'
:
[
opt_color
,
'
#ff0000
'
],
'
outmsgcolor
'
:
[
opt_color
,
'
#0000ff
'
],
'
statusmsgcolor
'
:
[
opt_color
,
'
#1eaa1e
'
],
'
hidden
_rows
'
:
[
opt_str
,
''
],
'
collapsed
_rows
'
:
[
opt_str
,
''
],
'
roster_theme
'
:
[
opt_str
,
'
green
'
],
'
accounttextcolor
'
:
[
opt_color
,
'
#ffffff
'
],
'
accountbgcolor
'
:
[
opt_color
,
'
#94aa8c
'
],
...
...
This diff is collapsed.
Click to expand it.
src/roster_window.py
+
13
−
13
View file @
79c5b5d0
...
...
@@ -127,12 +127,12 @@ def add_user_to_roster(self, jid, account):
iterG
=
model
.
append
(
IterAcct
,
(
self
.
jabber_state_images
[
'
closed
'
],
g
,
'
group
'
,
g
,
account
,
False
))
if
not
self
.
groups
[
account
].
has_key
(
g
):
#It can probably never append
if
account
+
g
in
self
.
hidden
_rows
:
if
account
+
g
in
self
.
collapsed
_rows
:
ishidden
=
False
else
:
ishidden
=
True
self
.
groups
[
account
][
g
]
=
{
'
expand
'
:
ishidden
}
if
not
account
in
self
.
hidden
_rows
and
\
if
not
account
in
self
.
collapsed
_rows
and
\
not
gajim
.
config
.
get
(
'
mergeaccounts
'
):
self
.
tree
.
expand_row
((
model
.
get_path
(
iterG
)[
0
]),
False
)
...
...
@@ -386,7 +386,7 @@ def mklists(self, array, account):
if
g
in
self
.
groups
[
account
].
keys
():
continue
if
account
+
g
in
self
.
hidden
_rows
:
if
account
+
g
in
self
.
collapsed
_rows
:
ishidden
=
False
else
:
ishidden
=
True
...
...
@@ -1020,7 +1020,7 @@ def quit_gtkgui_plugin(self):
gajim
.
config
.
set
(
'
width
'
,
width
)
gajim
.
config
.
set
(
'
height
'
,
height
)
gajim
.
config
.
set
(
'
hidden
_rows
'
,
'
\t
'
.
join
(
self
.
hidden
_rows
))
gajim
.
config
.
set
(
'
collapsed
_rows
'
,
'
\t
'
.
join
(
self
.
collapsed
_rows
))
self
.
plugin
.
save_config
()
for
account
in
gajim
.
connections
:
gajim
.
connections
[
account
].
quit
(
True
)
...
...
@@ -1104,11 +1104,11 @@ def on_roster_treeview_row_expanded(self, widget, iter, path):
model
.
set_value
(
iter
,
0
,
self
.
jabber_state_images
[
'
opened
'
])
jid
=
model
.
get_value
(
iter
,
3
)
self
.
groups
[
account
][
jid
][
'
expand
'
]
=
True
if
account
+
jid
in
self
.
hidden
_rows
:
self
.
hidden
_rows
.
remove
(
account
+
jid
)
if
account
+
jid
in
self
.
collapsed
_rows
:
self
.
collapsed
_rows
.
remove
(
account
+
jid
)
elif
type
==
'
account
'
:
if
account
in
self
.
hidden
_rows
:
self
.
hidden
_rows
.
remove
(
account
)
if
account
in
self
.
collapsed
_rows
:
self
.
collapsed
_rows
.
remove
(
account
)
for
g
in
self
.
groups
[
account
]:
groupIter
=
self
.
get_group_iter
(
g
,
account
)
if
groupIter
and
self
.
groups
[
account
][
g
][
'
expand
'
]:
...
...
@@ -1126,11 +1126,11 @@ def on_roster_treeview_row_collapsed(self, widget, iter, path):
model
.
set_value
(
iter
,
0
,
self
.
jabber_state_images
[
'
closed
'
])
jid
=
model
.
get_value
(
iter
,
3
)
self
.
groups
[
account
][
jid
][
'
expand
'
]
=
False
if
not
account
+
jid
in
self
.
hidden
_rows
:
self
.
hidden
_rows
.
append
(
account
+
jid
)
if
not
account
+
jid
in
self
.
collapsed
_rows
:
self
.
collapsed
_rows
.
append
(
account
+
jid
)
elif
type
==
'
account
'
:
if
not
account
in
self
.
hidden
_rows
:
self
.
hidden
_rows
.
append
(
account
)
if
not
account
in
self
.
collapsed
_rows
:
self
.
collapsed
_rows
.
append
(
account
)
def
on_editing_canceled
(
self
,
cell
):
'''
editing has been canceled
'''
...
...
@@ -1518,7 +1518,7 @@ def __init__(self, plugin):
self
.
id_signal_cb
=
self
.
status_combobox
.
connect
(
'
changed
'
,
self
.
on_status_combobox_changed
)
self
.
hidden
_rows
=
gajim
.
config
.
get
(
'
hidden
_rows
'
).
split
(
'
\t
'
)
self
.
collapsed
_rows
=
gajim
.
config
.
get
(
'
collapsed
_rows
'
).
split
(
'
\t
'
)
self
.
draw_roster
()
if
len
(
gajim
.
connections
)
==
0
:
# if no account
self
.
plugin
.
windows
[
'
account_modification
'
]
=
\
...
...
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