diff options
author | Alexander Larsson <alexl@redhat.com> | 2017-10-23 16:39:44 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2017-10-23 16:56:49 +0200 |
commit | 96b04836d81d855999abafdd6a2b7e0cdf0660cc (patch) | |
tree | eb1d46eb497c9db8fb7fa7426b55f4aded529a7b /gtk/gtkiconhelper.c | |
parent | 3a8f2ae64f1f9a607c27511a7d6042cc995d14d4 (diff) | |
download | gtk+-96b04836d81d855999abafdd6a2b7e0cdf0660cc.tar.gz |
Drop all uses of GdkPixbufAnimation in the gtk APIs
These are basically animated gifs, and don't fit well in how
modern things animate.
Diffstat (limited to 'gtk/gtkiconhelper.c')
-rw-r--r-- | gtk/gtkiconhelper.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c index 5918f28d0f..d701e17186 100644 --- a/gtk/gtkiconhelper.c +++ b/gtk/gtkiconhelper.c @@ -348,7 +348,6 @@ gtk_icon_helper_load_surface (GtkIconHelper *self, gtk_image_definition_get_gicon (self->def)); break; - case GTK_IMAGE_ANIMATION: case GTK_IMAGE_EMPTY: default: surface = NULL; @@ -405,7 +404,6 @@ find_cached_texture (GtkIconHelper *self) gicon = g_themed_icon_new (gtk_image_definition_get_icon_name (self->def)); break; case GTK_IMAGE_EMPTY: - case GTK_IMAGE_ANIMATION: case GTK_IMAGE_SURFACE: default: return NULL; @@ -495,14 +493,6 @@ _gtk_icon_helper_get_size (GtkIconHelper *self, &height); break; - case GTK_IMAGE_ANIMATION: - { - GdkPixbufAnimation *animation = gtk_image_definition_get_animation (self->def); - width = gdk_pixbuf_animation_get_width (animation); - height = gdk_pixbuf_animation_get_height (animation); - break; - } - case GTK_IMAGE_ICON_NAME: case GTK_IMAGE_GICON: if (self->pixel_size != -1 || self->force_scale_pixbuf) @@ -565,13 +555,6 @@ _gtk_icon_helper_set_icon_name (GtkIconHelper *self, } void -_gtk_icon_helper_set_animation (GtkIconHelper *self, - GdkPixbufAnimation *animation) -{ - gtk_icon_helper_take_definition (self, gtk_image_definition_new_animation (animation, 1)); -} - -void _gtk_icon_helper_set_surface (GtkIconHelper *self, cairo_surface_t *surface) { @@ -653,12 +636,6 @@ _gtk_icon_helper_peek_gicon (GtkIconHelper *self) return gtk_image_definition_get_gicon (self->def); } -GdkPixbufAnimation * -_gtk_icon_helper_peek_animation (GtkIconHelper *self) -{ - return gtk_image_definition_get_animation (self->def); -} - cairo_surface_t * _gtk_icon_helper_peek_surface (GtkIconHelper *self) { @@ -732,24 +709,3 @@ _gtk_icon_helper_set_force_scale_pixbuf (GtkIconHelper *self, gtk_icon_helper_invalidate (self); } } - -void -_gtk_icon_helper_set_pixbuf_scale (GtkIconHelper *self, - int scale) -{ - switch (gtk_image_definition_get_storage_type (self->def)) - { - case GTK_IMAGE_ANIMATION: - gtk_icon_helper_take_definition (self, - gtk_image_definition_new_animation (gtk_image_definition_get_animation (self->def), - scale)); - break; - - case GTK_IMAGE_EMPTY: - case GTK_IMAGE_ICON_NAME: - case GTK_IMAGE_GICON: - case GTK_IMAGE_SURFACE: - default: - break; - } -} |