[gtk+] Use 16 as default size for checkbutton indicator



commit 64aac9624ce58e76f1c9ab58d0c6357ca7f97b1f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Mar 1 22:31:13 2011 -0500

    Use 16 as default size for checkbutton indicator
    
    So that 16x16 icons can be used from themes such as Adwaita in their
    natural size.

 gtk/gtkcellrenderertoggle.c |    2 +-
 gtk/gtkcheckbutton.c        |    2 +-
 gtk/gtkcheckmenuitem.c      |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkcellrenderertoggle.c b/gtk/gtkcellrenderertoggle.c
index 1603ce0..efc2066 100644
--- a/gtk/gtkcellrenderertoggle.c
+++ b/gtk/gtkcellrenderertoggle.c
@@ -70,7 +70,7 @@ enum {
   PROP_INDICATOR_SIZE
 };
 
-#define TOGGLE_WIDTH 13
+#define TOGGLE_WIDTH 16
 
 static guint toggle_cell_signals[LAST_SIGNAL] = { 0 };
 
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index 686dc84..5b9d35d 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -35,7 +35,7 @@
 #include "gtkintl.h"
 
 
-#define INDICATOR_SIZE     13
+#define INDICATOR_SIZE     16
 #define INDICATOR_SPACING  2
 
 
diff --git a/gtk/gtkcheckmenuitem.c b/gtk/gtkcheckmenuitem.c
index 850a811..8385ff5 100644
--- a/gtk/gtkcheckmenuitem.c
+++ b/gtk/gtkcheckmenuitem.c
@@ -34,7 +34,7 @@
 #include "gtkprivate.h"
 #include "gtkintl.h"
 
-
+#define INDICATOR_SIZE 16
 
 struct _GtkCheckMenuItemPrivate
 {
@@ -130,7 +130,7 @@ gtk_check_menu_item_class_init (GtkCheckMenuItemClass *klass)
                                                              P_("Size of check or radio indicator"),
                                                              0,
                                                              G_MAXINT,
-                                                             13,
+                                                             INDICATOR_SIZE,
                                                              GTK_PARAM_READABLE));
 
   widget_class->draw = gtk_check_menu_item_draw;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]