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 782023 - toggle-pixbuf-renderer: Use gtk_render_activity, not gtk_paint_spinner
toggle-pixbuf-renderer: Use gtk_render_activity, not gtk_paint_spinner
Status: RESOLVED FIXED
Product: libgd
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: libgd maintainer(s)
libgd maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-05-01 19:45 UTC by Debarshi Ray
Modified: 2017-09-07 09:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
toggle-pixbuf-renderer: Use gtk_render_activity, not gtk_paint_spinner (1.73 KB, patch)
2017-05-01 19:46 UTC, Debarshi Ray
rejected Details | Review
toggle-pixbuf-renderer: Ignore deprecation warnings (1.35 KB, patch)
2017-05-09 17:31 UTC, Debarshi Ray
committed Details | Review

Description Debarshi Ray 2017-05-01 19:45:30 UTC
gtk_pain_spinner has been deprecated in favour of gtk_render_activity. Unlike the former, the latter doesn't accept a 'step' argument, but that is probably fine because GdTogglePixbufRenderer:pulse is meant to show a spinner for any non-zero value.

Got to ensure that this doesn't break gnome-boxes because it uses the spinner.
Comment 1 Debarshi Ray 2017-05-01 19:46:14 UTC
Created attachment 350819 [details] [review]
toggle-pixbuf-renderer: Use gtk_render_activity, not gtk_paint_spinner
Comment 2 Cosimo Cecchi 2017-05-01 19:49:31 UTC
Review of attachment 350819 [details] [review]:

Sure
Comment 3 Debarshi Ray 2017-05-09 17:31:03 UTC
Review of attachment 350819 [details] [review]:

I tried this with gnome-boxes' express installation, and the spinner doesn't actually spin. It doesn't matter if I use gtk_style_context_set_state to set the GTK_STATE_FLAG_CHECKED flag. We might be out of luck since GtkCellRendererSpinner has also kept using gtk_paint_spinner.
Comment 4 Debarshi Ray 2017-05-09 17:31:49 UTC
Created attachment 351473 [details] [review]
toggle-pixbuf-renderer: Ignore deprecation warnings
Comment 5 Cosimo Cecchi 2017-05-09 18:21:10 UTC
Review of attachment 351473 [details] [review]:

OK then
Comment 6 Cosimo Cecchi 2017-05-09 18:21:27 UTC
Review of attachment 350819 [details] [review]:

Marking as rejected
Comment 7 Debarshi Ray 2017-05-10 07:15:14 UTC
Comment on attachment 351473 [details] [review]
toggle-pixbuf-renderer: Ignore deprecation warnings

Thanks Cosimo!
Comment 8 Debarshi Ray 2017-09-07 09:56:07 UTC
(In reply to Debarshi Ray from comment #3)
> Review of attachment 350819 [details] [review] [review]:
> 
> I tried this with gnome-boxes' express installation, and the spinner doesn't
> actually spin. It doesn't matter if I use gtk_style_context_set_state to set
> the GTK_STATE_FLAG_CHECKED flag. We might be out of luck since
> GtkCellRendererSpinner has also kept using gtk_paint_spinner.

Bug 782396 has some discussion on that.