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
2065cab5
Commit
2065cab5
authored
8 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
[emoticons] Fix some breaking bugs
parent
5a05b0f8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
emoticons_pack/emoticons_pack.py
+6
-4
6 additions, 4 deletions
emoticons_pack/emoticons_pack.py
with
6 additions
and
4 deletions
emoticons_pack/emoticons_pack.py
+
6
−
4
View file @
2065cab5
...
...
@@ -13,6 +13,7 @@ import tempfile
from
shutil
import
rmtree
import
sys
import
imp
import
posixpath
from
enum
import
IntEnum
from
common
import
gajim
from
plugins
import
GajimPlugin
...
...
@@ -252,9 +253,11 @@ class EmoticonsPackPlugin(GajimPlugin):
self
.
inslall_upgrade_button
.
set_property
(
'
sensitive
'
,
True
)
def
on_notebook_switch_page
(
self
,
widget
,
page
,
page_num
):
tab_label_text
=
self
.
notebook
.
get_tab_label_text
(
self
.
hpaned
)
tab_label_text
=
self
.
notebook
.
get_tab_label_text
(
page
)
if
tab_label_text
!=
(
_
(
'
Emoticons
'
)):
return
if
len
(
self
.
model
):
return
self
.
model
.
clear
()
self
.
fill_table
()
...
...
@@ -268,8 +271,7 @@ class EmoticonsPackPlugin(GajimPlugin):
conf
.
read_file
(
_file
)
for
section
in
conf
.
sections
():
# get icon
filename
=
conf
.
get
(
section
,
'
icon
'
)
filename
=
os
.
path
.
join
(
section
,
filename
)
filename
=
posixpath
.
join
(
section
,
conf
.
get
(
section
,
'
icon
'
))
zip_file
=
os
.
path
.
join
(
self
.
__path__
,
'
emoticons_pack.zip
'
)
with
zipfile
.
ZipFile
(
zip_file
,
'
r
'
)
as
myzip
:
icon_file
=
myzip
.
open
(
filename
,
mode
=
'
r
'
)
...
...
@@ -330,7 +332,7 @@ class EmoticonsPackPlugin(GajimPlugin):
desc
=
desc
.
replace
(
'
preview.image
'
,
(
'
file:
'
+
os
.
path
.
join
(
self
.
tmp_dir
,
set_name
,
'
preview.png
'
)))
self
.
emoticons_description_textview
.
tv
.
display_html
(
desc
,
self
.
emoticons_description_textview
)
desc
,
self
.
emoticons_description_textview
.
tv
,
None
)
self
.
emoticons_description_textview
.
tv
.
set_property
(
'
sensitive
'
,
True
)
else
:
...
...
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