Summary: | [GTK] Misc improvements to the scrolling code | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Gustavo Noronha (kov) <gustavo> | ||||||||||
Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | commit-queue, webkit.review.bot, xan.lopez | ||||||||||
Priority: | P2 | Keywords: | Gtk | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||||
Hardware: | PC | ||||||||||||
OS: | OS X 10.5 | ||||||||||||
Attachments: |
|
Description
Gustavo Noronha (kov)
2010-07-08 19:24:58 PDT
Created attachment 61001 [details]
no need to reset adjustment on detaching
A couple more will follow tomorrow.
Created attachment 61039 [details]
Make ScrollView and Scrollbar use GtkVersioning infrastructure
Attachment 61039 [details] did not pass style-queue:
Failed to run "['WebKitTools/Scripts/check-webkit-style', '--no-squash']" exit_code: 1
WebCore/platform/gtk/GtkVersioning.cpp:43: Use 0 instead of NULL. [readability/null] [5]
Total errors found: 1 in 6 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 61044 [details]
Use signal connections for disconnecting signals, instead of matching
Comment on attachment 61039 [details]
Make ScrollView and Scrollbar use GtkVersioning infrastructure
Do you really need to #define the actual name to a private name? Why not simply implement the function when the GTK+ is too old?
Comment on attachment 61001 [details]
no need to reset adjustment on detaching
What I understand from the comment is that it's important to do this on destroy for some effects to happen, so waiting until something is re-attached would be wrong (?).
Comment on attachment 61044 [details]
Use signal connections for disconnecting signals, instead of matching
Was this causing any problem?
Comment on attachment 61001 [details] no need to reset adjustment on detaching (In reply to comment #6) > (From update of attachment 61001 [details]) > What I understand from the comment is that it's important to do this on destroy for some effects to happen, so waiting until something is re-attached would be wrong (?). Yes, after reading the original commit and testing I think you are totally right. (In reply to comment #5) > (From update of attachment 61039 [details]) > Do you really need to #define the actual name to a private name? Why not simply implement the function when the GTK+ is too old? That would be more in line with the other stuff we do, indeed, I'll update the patch. (In reply to comment #7) > (From update of attachment 61044 [details]) > Was this causing any problem? None that I could see, but since we can keep the IDs easily enough, and make the disconnection more explicit, it seems like a good idea to have. Created attachment 61223 [details]
make ScrollView and Scrollbar GtkVersioning users
Address comments by Xan and that the first patch is no more.
Comment on attachment 61223 [details]
make ScrollView and Scrollbar GtkVersioning users
OK.
Comment on attachment 61044 [details]
Use signal connections for disconnecting signals, instead of matching
Seeing that this is more code and we don't really need the extra precision it brings I don't really agree with the change to be honest. So marking r- for now, you can try harder to convince me!
Comment on attachment 61223 [details]
make ScrollView and Scrollbar GtkVersioning users
Shall we land this patch?
Comment on attachment 61223 [details]
make ScrollView and Scrollbar GtkVersioning users
I forgot about it, thanks Adam!
Comment on attachment 61223 [details] make ScrollView and Scrollbar GtkVersioning users Clearing flags on attachment: 61223 Committed r65155: <http://trac.webkit.org/changeset/65155> All reviewed patches have been landed. Closing bug. |