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
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
Erik Huelsmann
gajim
Commits
6b1e1d1c
Commit
6b1e1d1c
authored
18 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
remove useless function. It has moved to dialogs.py.
parent
e20824e6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/vcard.py
+0
-13
0 additions, 13 deletions
src/vcard.py
with
0 additions
and
13 deletions
src/vcard.py
+
0
−
13
View file @
6b1e1d1c
...
...
@@ -157,19 +157,6 @@ class VcardWindow:
self
.
xml
.
get_widget
(
'
PHOTO_image
'
).
set_from_pixbuf
(
None
)
self
.
avatar_encoded
=
None
def
update_preview
(
self
,
widget
):
path_to_file
=
widget
.
get_preview_filename
()
if
path_to_file
is
None
or
os
.
path
.
isdir
(
path_to_file
):
# nothing to preview or directory
# make sure you clean image do show nothing
widget
.
get_preview_widget
().
set_from_file
(
None
)
return
try
:
pixbuf
=
gtk
.
gdk
.
pixbuf_new_from_file_at_size
(
path_to_file
,
100
,
100
)
except
gobject
.
GError
:
return
widget
.
get_preview_widget
().
set_from_pixbuf
(
pixbuf
)
def
on_set_avatar_button_clicked
(
self
,
widget
):
f
=
None
def
on_ok
(
widget
,
path_to_file
):
...
...
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