mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-04 19:08:23 +00:00
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.
This commit is contained in:
parent
8cf4113d70
commit
b6ec43aaf0
5 changed files with 0 additions and 31 deletions
Binary file not shown.
Before Width: | Height: | Size: 482 B |
|
@ -5261,10 +5261,6 @@ nautilus_file_get_thumbnail_icon (NautilusFile *file,
|
|||
{
|
||||
nautilus_ui_frame_video (&pixbuf);
|
||||
}
|
||||
else
|
||||
{
|
||||
nautilus_ui_frame_image (&pixbuf);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
void nautilus_gmenu_set_from_model (GMenu *target_menu,
|
||||
GMenuModel *source_model);
|
||||
|
||||
void nautilus_ui_frame_image (GdkPixbuf **pixbuf);
|
||||
void nautilus_ui_frame_video (GdkPixbuf **pixbuf);
|
||||
|
||||
gboolean nautilus_file_date_in_between (guint64 file_unix_time,
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
<file>ui/nautilus-operations-ui-manager-request-passphrase.ui</file>
|
||||
<file alias="gtk/ui/nautilusgtkplacesview.ui">../gtk/nautilusgtkplacesview.ui</file>
|
||||
<file alias="gtk/ui/nautilusgtkplacesviewrow.ui">../gtk/nautilusgtkplacesviewrow.ui</file>
|
||||
<file alias="icons/thumbnail_frame.png">../../icons/thumbnail_frame.png</file>
|
||||
<file alias="icons/filmholes.png">../../icons/filmholes.png</file>
|
||||
<file>css/Adwaita.css</file>
|
||||
<file>css/nautilus.css</file>
|
||||
|
|
Loading…
Reference in a new issue