[gnome-software: 4/6] common: Drop unused gs_image_set_from_pixbuf_with_scale()




commit f48052ff97735f8cb86c7e8169053281e31de9b1
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Jul 27 20:00:08 2021 +0200

    common: Drop unused gs_image_set_from_pixbuf_with_scale()
    
    We stopped using it in the previous commit as the picture resizes itself
    based on the allocation now.

 src/gs-common.c | 11 -----------
 src/gs-common.h |  4 ----
 2 files changed, 15 deletions(-)
---
diff --git a/src/gs-common.c b/src/gs-common.c
index 9c57a5573..583c8c1f6 100644
--- a/src/gs-common.c
+++ b/src/gs-common.c
@@ -311,17 +311,6 @@ gs_app_notify_unavailable (GsApp *app, GtkWindow *parent)
        return response;
 }
 
-void
-gs_image_set_from_pixbuf_with_scale (GtkImage *image, const GdkPixbuf *pixbuf, gint scale)
-{
-       cairo_surface_t *surface;
-       surface = gdk_cairo_surface_create_from_pixbuf (pixbuf, scale, NULL);
-       if (surface == NULL)
-               return;
-       gtk_image_set_from_surface (image, surface);
-       cairo_surface_destroy (surface);
-}
-
 gboolean
 gs_utils_is_current_desktop (const gchar *name)
 {
diff --git a/src/gs-common.h b/src/gs-common.h
index ef29c1b33..ebc5d0952 100644
--- a/src/gs-common.h
+++ b/src/gs-common.h
@@ -26,10 +26,6 @@ GtkResponseType
        gs_app_notify_unavailable       (GsApp          *app,
                                         GtkWindow      *parent);
 
-void   gs_image_set_from_pixbuf_with_scale     (GtkImage               *image,
-                                                const GdkPixbuf        *pixbuf,
-                                                gint                    scale);
-
 gboolean        gs_utils_is_current_desktop    (const gchar    *name);
 gchar          *gs_utils_set_key_colors_in_css (const gchar    *css,
                                                 GsApp          *app);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]