diff options
author | Stefano Karapetsas <[email protected]> | 2013-09-17 12:48:20 -0700 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-09-17 12:48:20 -0700 |
commit | f66654cf3fc9c5a94003a2823fc64c18a7b987a4 (patch) | |
tree | e3f64388db659d6e716befde96106bc72be27221 /libcaja-private/caja-ui-utilities.c | |
parent | 8537b86bf3a08581e2886ea1ec052ce23cea9bb1 (diff) | |
parent | 74986734b3b188b702513028b53e54cafbb8c85b (diff) | |
download | caja-f66654cf3fc9c5a94003a2823fc64c18a7b987a4.tar.bz2 caja-f66654cf3fc9c5a94003a2823fc64c18a7b987a4.tar.xz |
Merge pull request #154 from romovs/master
fixed thumbnail frame not being displayed for some files
Diffstat (limited to 'libcaja-private/caja-ui-utilities.c')
-rw-r--r-- | libcaja-private/caja-ui-utilities.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libcaja-private/caja-ui-utilities.c b/libcaja-private/caja-ui-utilities.c index 9732b6d9..8077e975 100644 --- a/libcaja-private/caja-ui-utilities.c +++ b/libcaja-private/caja-ui-utilities.c @@ -287,21 +287,12 @@ caja_ui_frame_image (GdkPixbuf **pixbuf) { GdkPixbuf *pixbuf_with_frame, *frame; int left_offset, top_offset, right_offset, bottom_offset; - int size; frame = caja_get_thumbnail_frame (); if (frame == NULL) { return; } - size = MAX (gdk_pixbuf_get_width (*pixbuf), - gdk_pixbuf_get_height (*pixbuf)); - - /* We don't want frames around small icons */ - if (size < 128 && gdk_pixbuf_get_has_alpha (*pixbuf)) { - return; - } - left_offset = CAJA_THUMBNAIL_FRAME_LEFT; top_offset = CAJA_THUMBNAIL_FRAME_TOP; right_offset = CAJA_THUMBNAIL_FRAME_RIGHT; |