Skip to content
  • Havoc Pennington's avatar
    use MetaMenuIconType not button type for the size of the menu ops array · 58359617
    Havoc Pennington authored
    2002-08-04  Havoc Pennington  <hp@redhat.com>
    
    	* src/theme.c (free_menu_ops): use MetaMenuIconType not button
    	type for the size of the menu ops array
    	(meta_theme_define_int_constant): return TRUE on success (how the
    	heck did this ever work?)
    	(meta_theme_define_float_constant): return TRUE on success
    	(meta_frame_style_validate): allow the "positional" buttons to
    	be omitted for now.
    
    	* src/testgradient.c (render_multi): don't define N_COLORS twice
    
    	* src/theme-viewer.c (run_theme_benchmark): don't define
    	ITERATIONS twice
    
    	* src/theme.c (button_rect): handle new button types
    	(meta_button_type_to_string): update
    	(meta_button_type_from_string): update
    
    	* src/theme.h (enum): add button types for the 6 possible button
    	positions. No way to reposition buttons still but this will allow
    	themes to go ahead and support doing so.
    58359617