Use 16 as default size for checkbutton indicator

So that 16x16 icons can be used from themes such as Adwaita in their
natural size.
This commit is contained in:
Cosimo Cecchi 2011-03-01 22:31:13 -05:00
parent ea7661cb3f
commit 64aac9624c
3 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ enum {
PROP_INDICATOR_SIZE PROP_INDICATOR_SIZE
}; };
#define TOGGLE_WIDTH 13 #define TOGGLE_WIDTH 16
static guint toggle_cell_signals[LAST_SIGNAL] = { 0 }; static guint toggle_cell_signals[LAST_SIGNAL] = { 0 };

View File

@ -35,7 +35,7 @@
#include "gtkintl.h" #include "gtkintl.h"
#define INDICATOR_SIZE 13 #define INDICATOR_SIZE 16
#define INDICATOR_SPACING 2 #define INDICATOR_SPACING 2

View File

@ -34,7 +34,7 @@
#include "gtkprivate.h" #include "gtkprivate.h"
#include "gtkintl.h" #include "gtkintl.h"
#define INDICATOR_SIZE 16
struct _GtkCheckMenuItemPrivate struct _GtkCheckMenuItemPrivate
{ {
@ -130,7 +130,7 @@ gtk_check_menu_item_class_init (GtkCheckMenuItemClass *klass)
P_("Size of check or radio indicator"), P_("Size of check or radio indicator"),
0, 0,
G_MAXINT, G_MAXINT,
13, INDICATOR_SIZE,
GTK_PARAM_READABLE)); GTK_PARAM_READABLE));
widget_class->draw = gtk_check_menu_item_draw; widget_class->draw = gtk_check_menu_item_draw;