summaryrefslogtreecommitdiff
path: root/src/nautilus-container-max-width.c
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2017-03-10 16:17:00 +0100
committerCarlos Soriano <csoriano@gnome.org>2017-03-10 16:17:00 +0100
commit71ad9be5fe87a07b63d1ca3df96a6620f516aef3 (patch)
treef102dce18c7bb10f413c44cc93bd93f5003c5053 /src/nautilus-container-max-width.c
parent08e6082974e826f348b444e7fff653ee6d985df8 (diff)
downloadnautilus-71ad9be5fe87a07b63d1ca3df96a6620f516aef3.tar.gz
container-max-width: Increase default min & max width
So there is more room for a label
Diffstat (limited to 'src/nautilus-container-max-width.c')
-rw-r--r--src/nautilus-container-max-width.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nautilus-container-max-width.c b/src/nautilus-container-max-width.c
index b94e01699..29dd34ad7 100644
--- a/src/nautilus-container-max-width.c
+++ b/src/nautilus-container-max-width.c
@@ -1,5 +1,7 @@
#include "nautilus-container-max-width.h"
+#define DEFAULT_MAX_SIZE 120
+
struct _NautilusContainerMaxWidth
{
GtkBin parent_instance;
@@ -105,7 +107,7 @@ get_preferred_width (GtkWidget *widget,
*minimum_size = 0;
gtk_widget_get_preferred_width (child, minimum_size, natural_size);
- *minimum_size = self->max_width == -1 ? *minimum_size : 96;
+ *minimum_size = self->max_width == -1 ? *minimum_size : DEFAULT_MAX_SIZE;
*natural_size = self->max_width == -1 ? *natural_size :
MAX (*minimum_size, MIN (self->max_width, *natural_size));