summaryrefslogtreecommitdiff
path: root/src/nautilus-ui-utilities.c
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2021-11-02 21:57:50 +0000
committerAntónio Fernandes <antoniof@gnome.org>2021-12-26 18:12:29 +0000
commitb6ec43aaf0ff2e001d4f31dff5142c8dc271483b (patch)
tree00825249fd3110a3f96f809455c5978ca476a776 /src/nautilus-ui-utilities.c
parent8cf4113d701efc30ac1e5e502f16138df144592a (diff)
downloadnautilus-b6ec43aaf0ff2e001d4f31dff5142c8dc271483b.tar.gz
general: Remove thumbnail frame
Shadows are present in design mockups, frame is not. In GTK 4 we are going to be able to draw shadows in the new views using CSS, which is going to be much better than transforming pixbufs. Furthermore, this removes another use of libgd, which we want to stop depending on as part of the GTK 3-to-4 migration.
Diffstat (limited to 'src/nautilus-ui-utilities.c')
-rw-r--r--src/nautilus-ui-utilities.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/nautilus-ui-utilities.c b/src/nautilus-ui-utilities.c
index 195f765f9..79a624a14 100644
--- a/src/nautilus-ui-utilities.c
+++ b/src/nautilus-ui-utilities.c
@@ -28,7 +28,6 @@
#include <gio/gio.h>
#include <gtk/gtk.h>
-#include <libgd/gd.h>
#include <string.h>
#include <glib/gi18n.h>
@@ -68,30 +67,6 @@ nautilus_gmenu_set_from_model (GMenu *target_menu,
}
}
-#define NAUTILUS_THUMBNAIL_FRAME_LEFT 3
-#define NAUTILUS_THUMBNAIL_FRAME_TOP 3
-#define NAUTILUS_THUMBNAIL_FRAME_RIGHT 3
-#define NAUTILUS_THUMBNAIL_FRAME_BOTTOM 3
-
-void
-nautilus_ui_frame_image (GdkPixbuf **pixbuf)
-{
- GtkBorder border;
- GdkPixbuf *pixbuf_with_frame;
-
- border.left = NAUTILUS_THUMBNAIL_FRAME_LEFT;
- border.top = NAUTILUS_THUMBNAIL_FRAME_TOP;
- border.right = NAUTILUS_THUMBNAIL_FRAME_RIGHT;
- border.bottom = NAUTILUS_THUMBNAIL_FRAME_BOTTOM;
-
- pixbuf_with_frame = gd_embed_image_in_frame (*pixbuf,
- "resource:///org/gnome/nautilus/icons/thumbnail_frame.png",
- &border, &border);
- g_object_unref (*pixbuf);
-
- *pixbuf = pixbuf_with_frame;
-}
-
static GdkPixbuf *filmholes_left = NULL;
static GdkPixbuf *filmholes_right = NULL;