[nautilus/wip/ernestask/gtk4-continued: 12/50] properties-window: Set thumbnail GtkImage size explicitly
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/ernestask/gtk4-continued: 12/50] properties-window: Set thumbnail GtkImage size explicitly
- Date: Sun, 10 Feb 2019 20:10:04 +0000 (UTC)
commit faf38ea39b44269506bcb290e32f38de5fce2376
Author: Ernestas Kulik <ernestask gnome org>
Date: Thu Jul 26 21:25:34 2018 +0300
properties-window: Set thumbnail GtkImage size explicitly
The icon size of a GtkImage is GTK_ICON_SIZE_INHERIT by default, which
is the size of a regular button, given that the parent element is a
button. This commit sets the pixel size of the GtkImage to that of the
displayed thumbnail.
src/nautilus-properties-window.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index f8c697cb1..1a8d815e9 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -515,6 +515,9 @@ create_image_widget (NautilusPropertiesWindow *window,
window->icon_image = image;
update_properties_window_icon (window);
+
+ gtk_image_set_pixel_size (GTK_IMAGE (window->icon_image),
+ NAUTILUS_CANVAS_ICON_SIZE_SMALL);
gtk_widget_show (image);
button = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]