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
fac74c66
Commit
fac74c66
authored
13 years ago
by
Dicson
Browse files
Options
Downloads
Patches
Plain Diff
clients_icons. Added option to disable icons for vk.com and facebook.com
parent
a5871871
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
clients_icons/clients_icons.py
+11
-4
11 additions, 4 deletions
clients_icons/clients_icons.py
clients_icons/config_dialog.ui
+16
-1
16 additions, 1 deletion
clients_icons/config_dialog.ui
clients_icons/manifest.ini
+1
-1
1 addition, 1 deletion
clients_icons/manifest.ini
with
28 additions
and
6 deletions
clients_icons/clients_icons.py
+
11
−
4
View file @
fac74c66
...
...
@@ -160,7 +160,8 @@ class ClientsIconsPlugin(GajimPlugin):
'
show_in_roster
'
:
(
True
,
''
),
'
show_in_groupchats
'
:
(
True
,
''
),
'
show_unknown_icon
'
:
(
True
,
''
),
'
pos_in_list
'
:
(
0
,
''
),
}
'
pos_in_list
'
:
(
0
,
''
),
'
show_facebook
'
:
(
True
,
''
)
}
self
.
config_dialog
=
ClientsIconsPluginConfigDialog
(
self
)
icon_path
=
os
.
path
.
join
(
self
.
local_file_path
(
'
icons
'
),
'
unknown.png
'
)
...
...
@@ -179,12 +180,12 @@ class ClientsIconsPlugin(GajimPlugin):
return
if
roster
.
model
[
child_iters
[
0
]][
self
.
renderer_num
]
is
None
:
caps
=
contact
.
client_caps
.
_node
if
'
facebook.com
'
in
jid
:
if
'
facebook.com
'
in
jid
and
self
.
config
[
'
show_facebook
'
]
:
caps
=
'
facebook.com
'
elif
'
@vk.com
'
in
jid
and
self
.
config
[
'
show_facebook
'
]:
caps
=
'
vk.com
'
elif
jid
==
'
juick@juick.com
'
:
caps
=
'
http://juick.com/caps
'
elif
'
@vk.com
'
in
jid
:
caps
=
'
vk.com
'
elif
jid
==
'
psto@psto.net
'
:
caps
=
'
psto@psto.net
'
elif
jid
==
'
rss@isida-bot.com
'
:
...
...
@@ -429,6 +430,8 @@ class ClientsIconsPluginConfigDialog(GajimPluginConfigDialog):
self
.
plugin
.
config
[
'
show_in_groupchats
'
])
self
.
xml
.
get_object
(
'
show_unknown_icon
'
).
set_active
(
self
.
plugin
.
config
[
'
show_unknown_icon
'
])
self
.
xml
.
get_object
(
'
show_facebook
'
).
set_active
(
self
.
plugin
.
config
[
'
show_facebook
'
])
self
.
xml
.
connect_signals
(
self
)
...
...
@@ -456,6 +459,10 @@ class ClientsIconsPluginConfigDialog(GajimPluginConfigDialog):
self
.
plugin
.
config
[
'
show_unknown_icon
'
]
=
widget
.
get_active
()
self
.
redraw_all
()
def
on_show_facebook_toggled
(
self
,
widget
):
self
.
plugin
.
config
[
'
show_facebook
'
]
=
widget
.
get_active
()
self
.
redraw_all
()
def
on_combobox1_changed
(
self
,
widget
):
self
.
plugin
.
config
[
'
pos_in_list
'
]
=
widget
.
get_active
()
self
.
redraw_all
()
This diff is collapsed.
Click to expand it.
clients_icons/config_dialog.ui
+
16
−
1
View file @
fac74c66
...
...
@@ -52,6 +52,21 @@
<property
name=
"position"
>
2
</property>
</packing>
</child>
<child>
<object
class=
"GtkCheckButton"
id=
"show_facebook"
>
<property
name=
"label"
translatable=
"yes"
>
Show icon for facebook.com and vk.com
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
False
</property>
<property
name=
"draw_indicator"
>
True
</property>
<signal
name=
"toggled"
handler=
"on_show_facebook_toggled"
/>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
False
</property>
<property
name=
"position"
>
3
</property>
</packing>
</child>
<child>
<object
class=
"GtkHBox"
id=
"hbox1"
>
<property
name=
"visible"
>
True
</property>
...
...
@@ -80,7 +95,7 @@
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
False
</property>
<property
name=
"position"
>
3
</property>
<property
name=
"position"
>
4
</property>
</packing>
</child>
</object>
...
...
This diff is collapsed.
Click to expand it.
clients_icons/manifest.ini
+
1
−
1
View file @
fac74c66
[info]
name:
Clients
icons
short_name:
clients_icons
version:
1.
6
version:
1.
7
description:
Shows
the
client
icons
in
the
roster
and
in
groupchats.
Depends:
Gajim
>
r12506
...
...
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