After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 625099 - Don't use deprecated GDK drawing APIs
Don't use deprecated GDK drawing APIs
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on: 625097
Blocks: 626688
 
 
Reported: 2010-07-23 08:21 UTC by Benjamin Otte (Company)
Modified: 2010-08-13 17:01 UTC
See Also:
GNOME target: 3.0
GNOME version: ---


Attachments
Don't use deprecated GDK drawing APIs (64.91 KB, patch)
2010-07-23 08:21 UTC, Benjamin Otte (Company)
none Details | Review
Don't use deprecated GDK drawing APIs (72.13 KB, patch)
2010-08-12 14:16 UTC, Benjamin Otte (Company)
none Details | Review
Don't use deprecated GDK drawing APIs (72.33 KB, patch)
2010-08-12 16:34 UTC, Benjamin Otte (Company)
none Details | Review

Description Benjamin Otte (Company) 2010-07-23 08:21:32 UTC
This patch makes Nautilus compile against the gtk rendering-cleanup branch.
Comment 1 Benjamin Otte (Company) 2010-07-23 08:21:35 UTC
Created attachment 166429 [details] [review]
Don't use deprecated GDK drawing APIs
Comment 2 Marcus Carlson 2010-07-24 08:44:14 UTC
Just a question: should intends be tab or spaces? Looks like many "-" rows was tab and replaced by spaces.
Comment 3 Benjamin Otte (Company) 2010-07-24 09:08:23 UTC
I don't care at all about tabs vs spaces, because I'm contributing to so many different projects that all have different ideas about it that I wouldn't get anything done due to reformatting...
I just know that my vimrc ontains "set expandtab", so in allt he code I write tabs get replaced by spaces automatically.

So if you need a space vs tabs replacement you probably need to do it manually before applying the patch.
Comment 4 Marcus Carlson 2010-07-24 09:12:14 UTC
Didn't mean to offend you, just asking because I self make patches and just wanted to know if there was a standard so I can do the right formatting.
Comment 5 Benjamin Otte (Company) 2010-07-24 09:36:09 UTC
Sorry if it sounded like I was offended, I'm a bit sensitive to that topic.
Lots of projects have different ideas about tabs vs spaces, so there is no right solution.

In the GNOME realm 2 solutions to the problem have begun to emerge:
1) GStreamer runs a script that reindents your code as a pre-commit hook and with that ensures that you don't have to do any work but the code is still properly intented.
2) Gtk/Glib don't care about indenting a lot as long as the code is still readable. So you can use tabs or spaces freely.
I like both of these solutions as they free the coders (both maintainers and patch submitters) from having to care about indentation.

And for the other projects, they can do the code cleanup themselves. I don't consider it my job to win a beauty contest for them.
Comment 6 Benjamin Otte (Company) 2010-08-12 14:16:46 UTC
Created attachment 167732 [details] [review]
Don't use deprecated GDK drawing APIs

FIXME: This code has one issue left: It removes stippling when dnd is
active. Someone needs to invent a better method to do dnd indications.
There seems to have been code that avoided stippling, but it was deleted
for performance reasons back in the days...
Comment 7 Benjamin Otte (Company) 2010-08-12 16:34:42 UTC
Created attachment 167748 [details] [review]
Don't use deprecated GDK drawing APIs

FIXME: This code has one issue left: It removes stippling when dnd is
active. Someone needs to invent a better method to do dnd indications.
There seems to have been code that avoided stippling, but it was deleted
for performance reasons back in the days...
Comment 8 Benjamin Otte (Company) 2010-08-12 17:27:28 UTC
The latest patch here is updated to fix everything Cosimo complained about on IRC.

As noted in the commit message, I removed al the stippling code. I have no idea what it was used for (and if it was still used), but if someone explains it to me, I'm sure we can come up with a solution.
Comment 9 Cosimo Cecchi 2010-08-13 17:01:49 UTC
Thank you very much for the patch; I splitted it into logical pieces and pushed them to master, along with some additional fixes for regressions I found here and there.