Patch: remove hard-coded widget dimensions




Well, gee, I did forget something now, didn't I? }:)

Anyway, once more, the intent of this patch is to allow theme engines and
the like to adjust the size of check/radio indicators in
Gtk(Check|Radio)MenuItem widgets, as can already be done for check/radio
buttons.


--Danny
(writing from his *other* account)


                       //,,    //,,
//=================// //////  ////// //==================================\\
 Straker Skunk     / //////  ////// /      Skunks are such wonderful
 <skunk@mit.edu>  / //////  ////// /     creatures... soft, and cuddly,
 -- -- -- -- -- --\ \\\\\\  \\\\\\ \      and if you annoy them they
 Daniel Richard G. \ \\\\\\  \\\\\\ \      make you stink like hell
 ========--====--==-\ \\\\\\  \\\\\\ \---------------=--==--====--========
 //mit.edu/straker  / //////  ////// / Furry|Course VI-3|MIT Class of 2001
 //skunk.mit.edu   / //////  ////// / 80% Beaver 90% Penguin 100% SKUNK!!!
\\===============// //////  ////// //====================================//
                     ''//    ''//
? gtk+.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtk+/ChangeLog,v
retrieving revision 1.1299
diff -r1.1299 ChangeLog
0a1,16
> Wed Jun 28 11:41:39 2000  Daniel Richard G.  <skunk@sgi.com>
> 
> 	* gtk/gtkcheckmenuitem.h: Added indicator_size field to
> 	struct _GtkCheckMenuItemClass
> 
> 	* gtk/gtkcheckmenuitem.c: Added initialization for indicator_size
> 	field to gtk_check_menu_item_class_init() (set to 8)
> 
> 	* gtk/gtkcheckmenuitem.c: Changed hard-coded 8x8 size for 
> 	check indicator to (indicator_size)x(indicator_size) in
> 	gtk_real_check_menu_item_draw_indicator()
> 
> 	* gtk/gtkradiomenuitem.c: Changed hard-coded 8x8 size for 
> 	radio indicator to (indicator_size)x(indicator_size) in
> 	gtk_radio_menu_item_draw_indicator()
> 
Index: gtk/gtkcheckmenuitem.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkcheckmenuitem.c,v
retrieving revision 1.21
diff -r1.21 gtkcheckmenuitem.c
100c100,101
<   
---
> 
>   klass->indicator_size = 8;
247,248c248,249
<       width = 8;
<       height = 8;
---
>       width = GTK_CHECK_MENU_ITEM_GET_CLASS (check_menu_item)->indicator_size;
>       height = width;
Index: gtk/gtkcheckmenuitem.h
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkcheckmenuitem.h,v
retrieving revision 1.8
diff -r1.8 gtkcheckmenuitem.h
61a62,63
> 
>   gint indicator_size;
Index: gtk/gtkradiomenuitem.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkradiomenuitem.c,v
retrieving revision 1.16
diff -r1.16 gtkradiomenuitem.c
284,285c284,285
<       width = 8;
<       height = 8;
---
>       width = GTK_CHECK_MENU_ITEM_GET_CLASS (check_menu_item)->indicator_size;
>       height = width;


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