-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bubble: minor refactor #202
Conversation
src/Bubble.vala
Outdated
dismiss (); | ||
}); | ||
protected override bool leave_notify_event (Gdk.EventCrossing event) { | ||
if (notification.priority < GLib.NotificationPriority.HIGH) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't there a change recently with notifications because we treat high priority as a normal priority? I would think this is supposed to be less than urgent is that is the case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's #189, i prefer to keep PRs the most self-contained possible, so that they can be reviewed and merged in any order.
@Marukesu can you resolve conflicts here please? |
Signed-off-by: Gustavo Marques <[email protected]>
Signed-off-by: Gustavo Marques <[email protected]>
DRY the content creation code by handling it in the setter for the notification property. Signed-off-by: Gustavo Marques <[email protected]>
93d84b5
to
8cb9676
Compare
@danirabbit done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good and simpler as well. Fixes the linked issue. Good job!
remove the
replace()
method andconstruct
block in favor of construct the contents widget in one place. we also stop checking if the notification has no action for launching the application, instead we launch it whenever we don't have a default action.Fixes some cases of #195/#145.
Fixes: #170