Revert "arrow: Make minimum size 5px"

This reverts commit 1c46e04f30.

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.
This commit is contained in:
Benjamin Otte 2011-05-06 19:35:40 +02:00
parent 6c1133c885
commit f6e11febfa

View File

@ -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;
}