Merge lp:~cimi/overlay-scrollbar/peek-gtk-widget-class into lp:overlay-scrollbar
Proposed by
Andrea Cimitan
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 158 | ||||
Proposed branch: | lp:~cimi/overlay-scrollbar/peek-gtk-widget-class | ||||
Merge into: | lp:overlay-scrollbar | ||||
Diff against target: |
94 lines (+23/-14) 1 file modified
os/os-scrollbar.c (+23/-14) |
||||
To merge this branch: | bzr merge lp:~cimi/overlay-scrollbar/peek-gtk-widget-class | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
David Barth (community) | Needs Fixing | ||
Javier Jardón | Approve | ||
Review via email: mp+53628@code.launchpad.net |
Description of the change
By calling directly gtk widget's class functions I could skip the creation of the useless (for us) event_window.
Will probably need to hook up for more vfunc events and add empty functions (button_release is the only remaining function in gtkrange that is asking for the event window, though afaics it can't be called because there's no area where the mouse could click).
I am overriding size_allocate because the size_allocate function in gtk_range is playing with the event window without checking if it's NULL or not, so we will have some errors.
To post a comment you must log in.
Maybe the proper way for this is to modify gtkrange and/or gtkscrollbar, but this works for us for now.