mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
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:
parent
6c1133c885
commit
f6e11febfa
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user