[libgd/wip/ernestask/gtk4] toggle-pixbuf-renderer: use gtk_render_activity()
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd/wip/ernestask/gtk4] toggle-pixbuf-renderer: use gtk_render_activity()
- Date: Sat, 10 Mar 2018 09:22:00 +0000 (UTC)
commit dcde22a6116f60aa3a3e3213c3f6291ba83f61e3
Author: Ernestas Kulik <ernestask gnome org>
Date: Sat Mar 10 11:19:26 2018 +0200
toggle-pixbuf-renderer: use gtk_render_activity()
gtk_paint_spinner() has been removed with not straightforward
replacement that allows to set the step value.
libgd/gd-toggle-pixbuf-renderer.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/libgd/gd-toggle-pixbuf-renderer.c b/libgd/gd-toggle-pixbuf-renderer.c
index 1eef19d..bc34d7b 100644
--- a/libgd/gd-toggle-pixbuf-renderer.c
+++ b/libgd/gd-toggle-pixbuf-renderer.c
@@ -96,6 +96,7 @@ render_activity (GdTogglePixbufRenderer *self,
gint ypad)
{
gint x, y, width, height;
+ GtkStyleContext *context;
if (self->priv->pulse == 0)
return;
@@ -105,17 +106,9 @@ render_activity (GdTogglePixbufRenderer *self,
x = cell_area->x + (cell_area->width / 2) - (width / 2) - xpad;
y = cell_area->y + (cell_area->height / 2) - (height / 2) - ypad;
+ context = gtk_widget_get_style_context (widget);
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
- gtk_paint_spinner (gtk_widget_get_style (widget),
- cr,
- GTK_STATE_FLAG_ACTIVE,
- widget,
- NULL,
- (guint) self->priv->pulse - 1,
- x, y,
- width, height);
- G_GNUC_END_IGNORE_DEPRECATIONS;
+ gtk_render_activity (context, cr, x, y, width, height);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]