summaryrefslogtreecommitdiff
path: root/src/testgradient.c
Commit message (Collapse)AuthorAgeFilesLines
* remove deprecated gtk stuff.Priit Laes2006-11-051-7/+7
| | | | | | | | | | 2006-11-05 Priit Laes <amd@store20.com> * src/main.c, src/ui.c: remove deprecated gtk stuff. 2006-11-05 Bruno Boaventura <brunoboaventura@gmail.com> * src/theme.c, src/testgradient.c: remove deprecated gtk stuff.
* Stick an emacs comment directive at the beginning of all the code files soElijah Newren2006-10-011-0/+2
| | | | | | | | | 2006-10-01 Elijah Newren <newren gmail com> * src/*.[ch]: Stick an emacs comment directive at the beginning of all the code files so that people using emacs will be more likely to get coding style correct in their patches. We still need a similar vi directive. #358866
* use MetaMenuIconType not button type for the size of the menu ops arrayHavoc Pennington2002-08-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* now just uses meta_gradient_add_alpha (draw_op_as_pixbuf): implement alphaHavoc Pennington2002-05-311-5/+104
| | | | | | | | | | | | 2002-05-31 Havoc Pennington <hp@redhat.com> * src/theme.c (multiply_alpha): now just uses meta_gradient_add_alpha (draw_op_as_pixbuf): implement alpha gradients for tint, gradient, and image draw ops, so I can implement garrett's stuff. * src/gradient.c (meta_gradient_add_alpha): new function to multiply the alpha channel of a pixbuf by an alpha gradient
* add code to save ACLOCAL_FLAGSHavoc Pennington2002-01-081-1/+1
| | | | | | | | | | | | | | 2002-01-08 Havoc Pennington <hp@pobox.com> * configure.in (ACLOCAL): add code to save ACLOCAL_FLAGS * src/frames.c (meta_frames_expose_event): max dither * src/testgradient.c (render_simple): change dither mode to MAX to avoid banding * src/theme.c: lose the gradient cache, and put in some initial data types for the theme format
* change to use spiffy gradient code.Havoc Pennington2002-01-061-0/+246
2002-01-06 Havoc Pennington <hp@pobox.com> * src/theme.c (meta_theme_get_gradient): change to use spiffy gradient code. * src/gradient.c: copy lovely gradient code from WindowMaker, as usual Dan and Alfredo have very nice code