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 753506 - remove unneeded code from the pixbuf renderer
remove unneeded code from the pixbuf renderer
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks: 753510 753512
 
 
Reported: 2015-08-11 12:47 UTC by Paolo Borelli
Modified: 2015-08-12 19:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (3.45 KB, patch)
2015-08-11 12:47 UTC, Paolo Borelli
none Details | Review
pathc (4.26 KB, patch)
2015-08-12 06:22 UTC, Paolo Borelli
needs-work Details | Review

Description Paolo Borelli 2015-08-11 12:47:18 UTC
Created attachment 309062 [details] [review]
patch

see patch commit message
Comment 1 Matthias Clasen 2015-08-12 03:22:46 UTC
I'm not convinced. set_property will automatically notify for the property you are setting, it wil not notify for the property corresponding to the previous image type.
Comment 2 Paolo Borelli 2015-08-12 06:22:22 UTC
Created attachment 309100 [details] [review]
pathc

You are right.

What about this instead:
 - remove the icon_helper_clear that's not needed
 - make it more explicit that we are notifying another property and avoid extra notifications if the image type is the same
Comment 3 Matthias Clasen 2015-08-12 17:13:53 UTC
Review of attachment 309100 [details] [review]:

other than that typo, looks good to me

::: gtk/gtkcellrendererpixbuf.c
@@ +322,2 @@
 static void
+notify_old_storarge_type (GtkCellRendererPixbuf *cellpixbuf,

arrrr, you got an extra r here: storage
Comment 4 Paolo Borelli 2015-08-12 19:41:23 UTC
aye, captain!

Patch amended and pushed.