Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Philipp Hörist
gajim
Commits
e4a07d5a
Commit
e4a07d5a
authored
Jun 25, 2019
by
Philipp Hörist
Browse files
new profile window
parent
a3754216
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
gajim/common/modules/vcard_temp.py
View file @
e4a07d5a
...
...
@@ -101,22 +101,25 @@ def send_vcard(self, vcard, sha):
if
not
app
.
account_is_connected
(
self
.
_account
):
return
iq
=
nbxmpp
.
Iq
(
typ
=
'set'
)
iq2
=
iq
.
setTag
(
nbxmpp
.
NS_VCARD
+
' vCard'
)
for
i
in
vcard
:
if
i
==
'jid'
:
continue
if
isinstance
(
vcard
[
i
],
dict
):
iq3
=
iq2
.
addChild
(
i
)
for
j
in
vcard
[
i
]:
iq3
.
addChild
(
j
).
setData
(
vcard
[
i
][
j
])
elif
isinstance
(
vcard
[
i
],
list
):
for
j
in
vcard
[
i
]:
if
isinstance
(
vcard
,
nbxmpp
.
Iq
):
iq
=
vcard
else
:
iq
=
nbxmpp
.
Iq
(
typ
=
'set'
)
iq2
=
iq
.
setTag
(
nbxmpp
.
NS_VCARD
+
' vCard'
)
for
i
in
vcard
:
if
i
==
'jid'
:
continue
if
isinstance
(
vcard
[
i
],
dict
):
iq3
=
iq2
.
addChild
(
i
)
for
k
in
j
:
iq3
.
addChild
(
k
).
setData
(
j
[
k
])
else
:
iq2
.
addChild
(
i
).
setData
(
vcard
[
i
])
for
j
in
vcard
[
i
]:
iq3
.
addChild
(
j
).
setData
(
vcard
[
i
][
j
])
elif
isinstance
(
vcard
[
i
],
list
):
for
j
in
vcard
[
i
]:
iq3
=
iq2
.
addChild
(
i
)
for
k
in
j
:
iq3
.
addChild
(
k
).
setData
(
j
[
k
])
else
:
iq2
.
addChild
(
i
).
setData
(
vcard
[
i
])
self
.
_log
.
info
(
'Upload avatar: %s %s'
,
self
.
_account
,
sha
)
...
...
gajim/data/style/gajim.css
View file @
e4a07d5a
...
...
@@ -248,6 +248,7 @@ .field-fixed { font-size: 16px; font-weight: bold; padding-top:5px;}
.data-form-title
{
font-size
:
16px
;
font-weight
:
bold
;
}
.data-form-widget
grid
{
margin
:
0px
18px
18px
18px
;
}
.data-form-widget
treeview
{
padding
:
5px
;
}
.data-form-widget
scrolledwindow
{
border
:
1px
solid
;
border-color
:
@
unfocused_borders
;
}
.data-form-widget
textview
{
padding
:
5px
;
}
...
...
@@ -262,3 +263,16 @@ .adhoc-scrolled { border: 1px solid; border-color:@unfocused_borders; }
/* Search Dialog */
.search-treeview
{
padding
:
5px
;
}
.search-scrolled
{
border
:
1px
solid
;
border-color
:
@
unfocused_borders
;
}
#ProfileWindow
grid
{
padding
:
18px
;
}
.profile-address-entry
{
border-radius
:
0
0
0
0
;
border-width
:
1px
1px
0
1px
;
}
.profile-address-entry
:nth-child
(
first
)
{
border-radius
:
4px
4px
0
0
;
}
.profile-address-entry
:nth-child
(
last
)
{
border-radius
:
0
0
4px
4px
;
border-width
:
1px
;
}
.profile-textview-edit
{
padding
:
8px
;
border
:
1px
solid
;
border-color
:
@
borders
;
border-radius
:
4px
;
background-color
:
@
theme_base_color
}
.profile-textview-edit
border
{
border
:
none
;
}
.profile-textview
text
{
background-color
:
@
theme_unfocused_bg_color
}
.profile-label-fix
{
padding-top
:
9px
;}
gajim/gui_interface.py
View file @
e4a07d5a
...
...
@@ -87,6 +87,8 @@
from
gajim.common.const
import
SSLError
from
gajim
import
roster_window
from
gajim
import
profile_window_new
from
gajim.common
import
ged
from
gajim.common.caps_cache
import
muc_caps_cache
from
gajim.common
import
configpaths
...
...
@@ -227,9 +229,9 @@ def handle_event_status(self, obj): # OUR status
self
.
show_vcard_when_connect
.
remove
(
account
)
def
edit_own_details
(
self
,
account
):
window
=
app
.
get_app_window
(
ProfileWindow
)
window
=
app
.
get_app_window
(
profile_window_new
.
ProfileWindow
)
if
window
is
None
:
ProfileWindow
(
account
)
profile_window_new
.
ProfileWindow
(
account
)
else
:
window
.
present
()
...
...
gajim/profile_window_new.py
0 → 100644
View file @
e4a07d5a
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment