Commit f6e11feb authored by Benjamin Otte's avatar Benjamin Otte

Revert "arrow: Make minimum size 5px"

This reverts commit 1c46e04f.

The change broke too many widgets that relied on the size being
constant. A proper fix would require letting themes override the size.
That would probably also require letting themes specify the size
relative to font size.
parent 6c1133c8
......@@ -52,8 +52,7 @@
#include "gtkprivate.h"
#include "gtkintl.h"
#define MINIMUM_ARROW_SIZE 5
#define NATURAL_ARROW_SIZE 15
#define MIN_ARROW_SIZE 15
struct _GtkArrowPrivate
{
......@@ -209,10 +208,10 @@ gtk_arrow_get_preferred_width (GtkWidget *widget,
gtk_misc_get_padding (GTK_MISC (widget), &xpad, NULL);
if (minimum_size)
*minimum_size = MINIMUM_ARROW_SIZE + xpad * 2;
*minimum_size = MIN_ARROW_SIZE + xpad * 2;
if (natural_size)
*natural_size = NATURAL_ARROW_SIZE + xpad * 2;
*natural_size = MIN_ARROW_SIZE + xpad * 2;
}
static void
......@@ -225,10 +224,10 @@ gtk_arrow_get_preferred_height (GtkWidget *widget,
gtk_misc_get_padding (GTK_MISC (widget), NULL, &ypad);
if (minimum_size)
*minimum_size = MINIMUM_ARROW_SIZE + ypad * 2;
*minimum_size = MIN_ARROW_SIZE + ypad * 2;
if (natural_size)
*natural_size = NATURAL_ARROW_SIZE + ypad * 2;
*natural_size = MIN_ARROW_SIZE + ypad * 2;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment