Merge lp:~gue5t/midori/menubar-cast into lp:midori
Proposed by
gue5t gue5t
Status: | Merged |
---|---|
Approved by: | Paweł Forysiuk |
Approved revision: | 6970 |
Merged at revision: | 6976 |
Proposed branch: | lp:~gue5t/midori/menubar-cast |
Merge into: | lp:midori |
Diff against target: |
12 lines (+1/-1) 1 file modified
midori/midori-window.vala (+1/-1) |
To merge this branch: | bzr merge lp:~gue5t/midori/menubar-cast |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paweł Forysiuk | Approve | ||
Review via email: mp+262777@code.launchpad.net |
Commit message
Fix menubar warning caused by direct cast instead of `as`
Description of the change
With current trunk, Midori prints:
GLib-GObject-
GLib-GObject-
because midori-window.vala casts the widget with "(GtkToolbar)" instead of "as GtkToolbar", then checks whether the cast returns null. Only the latter syntax will ever do so, so this changes the code to use it as intended.
To post a comment you must log in.
Voting does not meet specified criteria. Required: Approve >= 1. Got: 1 Pending.