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
eta
gajim
Commits
912192ed
Commit
912192ed
authored
7 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
NotificationAreaTooltip: Dont inherit from BaseTooltip
parent
9db9e69c
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
gajim/statusicon.py
+1
-2
1 addition, 2 deletions
gajim/statusicon.py
gajim/tooltips.py
+5
-4
5 additions, 4 deletions
gajim/tooltips.py
with
6 additions
and
6 deletions
gajim/statusicon.py
+
1
−
2
View file @
912192ed
...
...
@@ -104,8 +104,7 @@ class StatusIcon:
self
.
make_menu
(
event_button
,
event_time
)
def
on_status_icon_query_tooltip
(
self
,
widget
,
x
,
y
,
keyboard_mode
,
tooltip
):
self
.
tooltip
.
populate
()
tooltip
.
set_custom
(
self
.
tooltip
.
hbox
)
tooltip
.
set_custom
(
self
.
tooltip
.
get_tooltip
())
return
True
def
hide_icon
(
self
):
...
...
This diff is collapsed.
Click to expand it.
gajim/tooltips.py
+
5
−
4
View file @
912192ed
...
...
@@ -263,13 +263,13 @@ class StatusTable:
self
.
table
.
attach
(
lock_image
,
4
,
self
.
current_row
,
1
,
1
)
self
.
current_row
+=
1
class
NotificationAreaTooltip
(
BaseTooltip
,
StatusTable
):
class
NotificationAreaTooltip
(
StatusTable
):
"""
Tooltip that is shown in the notification area
"""
def
__init__
(
self
):
BaseTooltip
.
__init__
(
self
)
StatusTable
.
__init__
(
self
)
def
fill_table_with_accounts
(
self
,
accounts
):
...
...
@@ -297,8 +297,7 @@ class NotificationAreaTooltip(BaseTooltip, StatusTable):
for
line
in
acct
[
'
event_lines
'
]:
self
.
add_text_row
(
'
'
+
line
,
1
)
def
populate
(
self
,
data
=
''
):
self
.
create_window
()
def
get_tooltip
(
self
):
self
.
create_table
()
accounts
=
helpers
.
get_notification_icon_tooltip_dict
()
...
...
@@ -308,6 +307,8 @@ class NotificationAreaTooltip(BaseTooltip, StatusTable):
self
.
hbox
.
add
(
self
.
table
)
self
.
hbox
.
show_all
()
return
self
.
hbox
class
GCTooltip
(
Gtk
.
Window
):
# pylint: disable=E1101
...
...
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