Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gajim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
210
Issues
210
List
Boards
Labels
Service Desk
Milestones
Merge Requests
22
Merge Requests
22
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim
Commits
a9b2922b
Commit
a9b2922b
authored
Feb 14, 2021
by
Daniel Brötzmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GroupChatInvitation: Show account badge
Fixes:
#10424
parent
25ddc9d2
Pipeline
#7328
passed with stages
in 9 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
gajim/gtk/groupchat_invitation.py
gajim/gtk/groupchat_invitation.py
+13
-3
No files found.
gajim/gtk/groupchat_invitation.py
View file @
a9b2922b
...
...
@@ -21,6 +21,7 @@
from
.groupchat_info
import
GroupChatInfoScrolled
from
.groupchat_nick
import
NickChooser
from
.util
import
generate_account_badge
class
GroupChatInvitation
(
Gtk
.
ApplicationWindow
):
...
...
@@ -50,9 +51,18 @@ def __init__(self, account, event):
separator
=
Gtk
.
Separator
()
contact_label
=
Gtk
.
Label
(
label
=
event
.
get_inviter_name
())
contact_label
.
get_style_context
().
add_class
(
'bold16'
)
contact_label
.
set_halign
(
Gtk
.
Align
.
CENTER
)
contact_label
.
set_justify
(
Gtk
.
Justification
.
CENTER
)
contact_label
.
set_line_wrap
(
True
)
contact_box
=
Gtk
.
Box
(
orientation
=
Gtk
.
Orientation
.
HORIZONTAL
,
spacing
=
6
)
contact_box
.
set_halign
(
Gtk
.
Align
.
CENTER
)
contact_box
.
add
(
contact_label
)
enabled_accounts
=
app
.
get_enabled_accounts_with_labels
()
if
len
(
enabled_accounts
)
>
1
:
account_badge
=
generate_account_badge
(
account
)
account_badge
.
set_tooltip_text
(
_
(
'Account: %s'
)
%
app
.
get_account_label
(
account
))
contact_box
.
add
(
account_badge
)
invitation_label
=
Gtk
.
Label
(
label
=
_
(
'has invited you to a group chat.
\n
Do you want to join?'
))
invitation_label
.
set_halign
(
Gtk
.
Align
.
CENTER
)
...
...
@@ -61,7 +71,7 @@ def __init__(self, account, event):
invitation_label
.
set_line_wrap
(
True
)
main_box
.
add
(
separator
)
main_box
.
add
(
contact_
label
)
main_box
.
add
(
contact_
box
)
main_box
.
add
(
invitation_label
)
decline_button
=
Gtk
.
Button
.
new_with_mnemonic
(
_
(
'_Decline'
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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