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
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
TSRh
gajim
Commits
2bf0f3e6
Commit
2bf0f3e6
authored
19 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
remove some user in favor of contact and fix a CB name
parent
e06c4551
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/gtkgui.glade
+1
-1
1 addition, 1 deletion
src/gtkgui.glade
src/vcard.py
+8
-8
8 additions, 8 deletions
src/vcard.py
with
9 additions
and
9 deletions
src/gtkgui.glade
+
1
−
1
View file @
2bf0f3e6
...
...
@@ -5806,7 +5806,7 @@ Custom</property>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<signal name="destroy" handler="on_
user
_information_window_destroy" last_modification_time="
Tue, 01 Mar 2005 15:40:50
GMT"/>
<signal name="destroy" handler="on_
vcard
_information_window_destroy" last_modification_time="
Sun, 24 Jul 2005 19:35:15
GMT"/>
<signal name="key_press_event" handler="on_vcard_information_window_key_press_event" last_modification_time="Thu, 07 Apr 2005 10:06:13 GMT"/>
<child>
...
...
This diff is collapsed.
Click to expand it.
src/vcard.py
+
8
−
8
View file @
2bf0f3e6
...
...
@@ -36,8 +36,8 @@
class
VcardWindow
:
'''
Class for contact
'
s information window
'''
def
__init__
(
self
,
user
,
plugin
,
account
,
vcard
=
False
):
#the
user
variable is the jid if vcard is true
def
__init__
(
self
,
contact
,
plugin
,
account
,
vcard
=
False
):
#the
contact
variable is the jid if vcard is true
self
.
xml
=
gtk
.
glade
.
XML
(
GTKGUI_GLADE
,
'
vcard_information_window
'
,
APP
)
self
.
window
=
self
.
xml
.
get_widget
(
'
vcard_information_window
'
)
self
.
xml
.
get_widget
(
'
photo_vbuttonbox
'
).
set_no_show_all
(
True
)
...
...
@@ -48,18 +48,18 @@ def __init__(self, user, plugin, account, vcard = False):
self
.
retrieve_button
.
set_no_show_all
(
True
)
self
.
plugin
=
plugin
self
.
contact
=
user
#don't use it if vcard is true
self
.
contact
=
contact
#don't use it if vcard is true
self
.
account
=
account
self
.
vcard
=
vcard
self
.
avatar_mime_type
=
None
self
.
avatar_encoded
=
None
if
vcard
:
self
.
jid
=
user
self
.
jid
=
contact
# remove Jabber tab & show publish/retrieve/set_avatar buttons
self
.
change_to_vcard
()
else
:
self
.
jid
=
user
.
jid
self
.
jid
=
contact
.
jid
self
.
publish_button
.
hide
()
self
.
retrieve_button
.
hide
()
self
.
fill_jabber_page
()
...
...
@@ -67,7 +67,7 @@ def __init__(self, user, plugin, account, vcard = False):
self
.
xml
.
signal_autoconnect
(
self
)
self
.
window
.
show_all
()
def
on_
user
_information_window_destroy
(
self
,
widget
=
None
):
def
on_
vcard
_information_window_destroy
(
self
,
widget
=
None
):
del
self
.
plugin
.
windows
[
self
.
account
][
'
infos
'
][
self
.
jid
]
def
on_vcard_information_window_key_press_event
(
self
,
widget
,
event
):
...
...
@@ -75,11 +75,11 @@ def on_vcard_information_window_key_press_event(self, widget, event):
self
.
window
.
destroy
()
def
on_close_button_clicked
(
self
,
widget
):
'''
Save
user
'
s
information
s
and update the roster on the Jabber server
'''
'''
Save
contact
information and update the roster on the Jabber server
'''
if
self
.
vcard
:
self
.
window
.
destroy
()
return
#update
user
.name if it's not ''
#update
contact
.name if it's not ''
name_entry
=
self
.
xml
.
get_widget
(
'
nickname_entry
'
)
new_name
=
name_entry
.
get_text
()
if
new_name
!=
self
.
contact
.
name
and
new_name
!=
''
:
...
...
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