summaryrefslogtreecommitdiff
path: root/gtk/gtkstyle.h
Commit message (Collapse)AuthorAgeFilesLines
* API: Get rid of gtk_draw_insertion_cursor()Benjamin Otte2010-09-261-8/+1
| | | | | and rename gtk_cairo_draw_insertion_cursor() to gtk_draw_insertion_cursor().
* API: Rename gtk_cairo_paint_*() to gtk_paint_*()Benjamin Otte2010-09-261-20/+20
| | | | | | Large patch, but just renaming. Indentation should still mostly be correct because I took care of keeping the indentation for this function name.
* API: style: Remove old drawing functionsBenjamin Otte2010-09-261-223/+0
|
* style: Move from colormaps to visualsBenjamin Otte2010-09-261-4/+4
|
* style: Remove depth member from GtkStyleBenjamin Otte2010-09-261-4/+3
|
* API: Add gtk_cairo_draw_insertion_cursor()Benjamin Otte2010-09-261-0/+6
| | | | | | | For now just add it instead of replacing the current function. In the end, this one should probably be renamed to gtk_draw_insertion_cursor() and the current gtk_draw_insertion_cursor() should die.
* style: Rewrite background handling to use cairo_pattern_tBenjamin Otte2010-09-261-1/+1
|
* style: Convert draw_spinner vfunc to Cairo versionBenjamin Otte2010-09-261-13/+23
|
* style: Convert draw_resize_grip vfunc to Cairo versionBenjamin Otte2010-09-261-13/+22
| | | | | Includes removal of now unused draw_simple_image_no_cairo() function from pixbuf engine.
* style: Convert draw_layout vfunc to Cairo versionBenjamin Otte2010-09-261-12/+20
|
* style: Convert draw_expander vfunc to Cairo versionBenjamin Otte2010-09-261-11/+18
|
* style: Convert draw_handle vfunc to Cairo versionBenjamin Otte2010-09-261-14/+24
|
* style: Convert draw_slider vfunc to Cairo versionBenjamin Otte2010-09-261-14/+24
|
* style: Convert draw_focus vfunc to Cairo versionBenjamin Otte2010-09-261-12/+20
|
* style: Convert draw_extension vfunc to Cairo versionBenjamin Otte2010-09-261-14/+24
|
* style: Convert draw_box_gap vfunc to Cairo versionBenjamin Otte2010-09-261-16/+28
| | | | | Includes removal of now unused draw_gap_image_no_cairo() function from pixbuf theme engine.
* style: Convert draw_shadow_gap vfunc to a Cairo versionBenjamin Otte2010-09-261-16/+28
|
* style: Convert draw_tab vfunc to Cairo versionBenjamin Otte2010-09-261-13/+22
|
* style: Convert draw_option vfunc to Cairo versionBenjamin Otte2010-09-261-13/+22
|
* style: Convert draw_check vfunc to Cairo versionBenjamin Otte2010-09-261-13/+22
|
* style: Convert draw_flat_box vfunc to Cairo versionBenjamin Otte2010-09-261-13/+22
|
* style: Convert draw_shadow vfunc to Cairo versionBenjamin Otte2010-09-261-54/+92
|
* style: Convert draw_vline vfunc to a Cairo versionBenjamin Otte2010-09-261-11/+18
|
* style: Convert draw_hline vfunc to Cairo versionBenjamin Otte2010-09-261-11/+18
|
* API: change gtk_style_apply_default_background()Benjamin Otte2010-09-261-2/+1
| | | | | It now takes a cr to apply the default background to. And it no longer takes a set_bg parameter
* Use gint16 for GtkBorderHavoc Pennington2010-09-121-4/+4
| | | | | | | | | | | | | | | 32K of border ought to be enough for any pixel dimensions. At least until screens are so huge we start using doubles. This saves a nice 64 bits of space when we have a GtkBorder stored somewhere. Signed integers are used to avoid surprising unsigned math issues. Just search GTK's whole git log from inception for "unsigned" if you want to find any number of commits fixing signed/unsigned bugs. https://bugzilla.gnome.org/show_bug.cgi?id=629387
* API: Remove GC members from GtkStyleBenjamin Otte2010-08-101-11/+0
|
* API: remove gtk_paint_polygon()Benjamin Otte2010-08-101-20/+0
| | | | | Almost noone uses it in real applications and it's broken in most theme engines.
* Remove _gtk_widget_get_cursor_gc() functionBenjamin Otte2010-07-261-1/+0
| | | | It's unused now.
* [GtkStyle] Remove deprecated GdkFont usageJavier Jardón2010-06-281-1/+0
|
* drop the draw_string() function from GtkStyleSven Herzberg2010-06-071-9/+0
| | | | | | | | | | | Reviewed by Michael Natterer. * gtk/gtkstyle.c, * gtk/gtkstyle.h: gdk_draw_string() has been deprecated and removed already. There's no one left who should be using this function (found this when porting sapwood to GTK+ 3.0) * modules/engines/pixbuf/pixbuf-draw.c: don't implement this unused function
* Move documentation to inline comments: GtkStyleJavier Jardón2010-05-161-0/+16
|
* Remove all traces of GDK_PIXBUF/GTK_DISABLE_SINGLE_INCLUDESMichael Natterer2010-05-031-1/+1
| | | | ...and disallow inclusion of individual files unconditionally.
* Remove deprecated GtkStyle functionsChristian Dywan2010-05-031-194/+0
|
* Add customary args to gtk_style_paint_spinner()Matthias Clasen2009-11-271-8/+14
| | | | ...and adjust all callers.
* Bug 319607 – Add a throbber (activity widget) to GTK+Bastien Nocera2009-10-141-2/+16
| | | | Add GtkSpinner activity throbber, as well as a cell renderer.
* Bug 574561 – gtk_style_get "shadows" g_object_getMatthias Clasen2009-03-101-12/+12
| | | | | | | | | | * gtk/gtk.symbols: * gtk/gtkstyle.[hc]: Rename gtk_style_get_property to gtk_style_get_style_property to avoid problems for language bindings. Pointed out by Torsten Schoenfeld. svn path=/trunk/; revision=22502
* Bug 412134 – Add API to query style properties from the styleMatthias Clasen2008-11-011-0/+13
| | | | | | | | | | | | | 2008-11-01 Matthias Clasen <mclasen@redhat.com> Bug 412134 – Add API to query style properties from the style * gtk/gtk.symbols: * gtk/gtkstyle.[hc]: Add getters for style properties to avoid the need for ugly workarounds with dummy widget instances. Patch by Mariano Suárez-Alvarez svn path=/trunk/; revision=21744
* gtk/gtkcellrenderertext.h gtk/gtkentry.[ch] gtk/gtkimcontext.hMichael Natterer2008-10-301-1/+0
| | | | | | | | | | | | | | 2008-10-30 Michael Natterer <mitch@gimp.org> * gtk/gtkcellrenderertext.h * gtk/gtkentry.[ch] * gtk/gtkimcontext.h * gtk/gtklabel.c * gtk/gtkstyle.h: <pango/pango.h> is pulled in by <gdk/gdk.h>, remove its inclusion here. svn path=/trunk/; revision=21735
* no need to include <gtk/gtkenums.h> in headers which somehow includeMichael Natterer2008-10-301-0/+1
| | | | | | | | | | 2008-10-30 Michael Natterer <mitch@imendio.com> * gtk/*.h: no need to include <gtk/gtkenums.h> in headers which somehow include gtkobject.h or another header which includes it. svn path=/trunk/; revision=21734
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 2008-06-30 Cody Russell <bratsche@gnome.org> * Practically everything changed. Change all references of GIMP Toolkit (and variations of it) to GTK+ Toolkit, showing no mercy at all to our beloved ancestry. (#540529) svn path=/trunk/; revision=20709
* whitespace cleanup: remove trailing whitespace and excess newlines andMichael Natterer2008-05-281-16/+16
| | | | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * gtk/gtk*.h: whitespace cleanup: remove trailing whitespace and excess newlines and sprinkled some newlines where needed. Zero code or formatting changes included. svn path=/trunk/; revision=20225
* define __GTK_H_INSIDE__ around including all other headers.Michael Natterer2008-05-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * gtk/gtk.h: define __GTK_H_INSIDE__ around including all other headers. * gtk/gtktypebuiltins.h.template * gtk/gtkversion.h.in * gtk/gtk*.h: add single-include guards that #error out if GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is included individually. * gtk/gtkprintbackend.h * gtk/gtkprinter-private.h * gtk/gtktextlayout.h * gtk/gtktexttagprivate.h * gtk/gtktexttypes.h * gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual headers in these private or semi-private headers. * gtk/gtkimmodule.h: also here because it's not in gtk.h. * gtk/gtkpagesetupunixdialog.h * gtk/gtkprinter.h * gtk/gtkprintjob.h * gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers. * gtk/gtkclist.h * gtk/gtkcombo.h * gtk/gtkctree.h * gtk/gtkfilesel.h * gtk/gtkitemfactory.h * gtk/gtklist.h * gtk/gtklistitem.h * gtk/gtkoldeditable.h * gtk/gtkoptionmenu.h * gtk/gtkpixmap.h * gtk/gtkpreview.h * gtk/gtksignal.h * gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h> instead of individual headers in these deprecated headers. They don't get included at all when GTK_DISABLE_DEPRECATED is defined, so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED and include them individually, which should continue to work. * gtk/gtkclist.c: include "gtkctree.h" because of the change above. svn path=/trunk/; revision=20221
* gtk/gtkbutton.h gtk/gtkcellrenderer.h gtk/gtkimcontext.h gtk/gtkstyle.hMichael Natterer2008-01-251-250/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-25 Michael Natterer <mitch@imendio.com> * gtk/gtkbutton.h * gtk/gtkcellrenderer.h * gtk/gtkimcontext.h * gtk/gtkstyle.h * gtk/gtktoolbar.h * gtk/gtktooltip.h * gtk/gtktreeprivate.h * gtk/gtktreeviewcolumn.h * gtk/gtkwidget.h: add const to constant structs which are passed into GTK+. Also add some forgotten const for const strings. * gtk/gtkbutton.c * gtk/gtkcellrenderer.c * gtk/gtkimcontext.c * gtk/gtkstyle.c * gtk/gtktoolbar.c * gtk/gtktooltip.c * gtk/gtktreeview.c * gtk/gtktreeviewcolumn.c * gtk/gtkwidget.c: changed accordingly. svn path=/trunk/; revision=19399
* Add gtk_border_new to avoid memory allocator confusions when usingXan Lopez2007-12-271-0/+1
| | | | | | | | | | | | 2007-12-27 Xan Lopez <xan@gnome.org> * gtk/gtk.symbols: * gtk/gtkstyle.c (gtk_border_new, gtk_border_copy): Add gtk_border_new to avoid memory allocator confusions when using GtkBorders. Also, make gtk_border_copy use g_slice_dup. (#454042) svn path=/trunk/; revision=19248
* Implement block-cursor for overwrite mode. (#80378)Yevgen Muntyan2007-06-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-12 Yevgen Muntyan <muntyan@tamu.edu> * gtk/gtkentry.c (gtk_entry_expose), (gtk_entry_toggle_overwrite), (gtk_entry_draw_cursor): * gtk/gtkstyle.c (_gtk_widget_get_cursor_gc), (_gtk_widget_get_cursor_color): * gtk/gtkstyle.h: * gtk/gtktextdisplay.c (gtk_text_renderer_prepare_run), (gtk_text_renderer_draw_shape), (text_renderer_set_state), (render_para): * gtk/gtktextlayout.c (gtk_text_layout_set_overwrite_mode), (gtk_text_layout_invalidate_cache), (get_block_cursor), (add_cursor), (gtk_text_layout_get_line_display), (_gtk_text_layout_get_block_cursor): * gtk/gtktextlayout.h: * gtk/gtktextutil.c (layout_get_char_width), (_gtk_text_util_get_block_cursor_location): * gtk/gtktextutil.h: * gtk/gtktextview.c (gtk_text_view_set_editable), (gtk_text_view_toggle_overwrite), (gtk_text_view_set_overwrite), (gtk_text_view_ensure_layout), (text_window_invalidate_cursors): Implement block-cursor for overwrite mode. (#80378) svn path=/trunk/; revision=18108
* Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attachChris Wilson2007-01-221-1/+1
| | | | | | | | | | | | | | | 2007-01-22 Chris Wilson <chris@chris-wilson.co.uk> Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach * gtk/gtkstyle.h: Cause gcc to issue a warning if the style returned from gtk_style_attach is not used. Failure to update widget->style causes some very difficult to identify bugs, eg Bug 353498 – crash in Terminal: changing icon theme. svn path=/trunk/; revision=17199
* Added symbolic themable colors. Patch is a merged version of proposalsMichael Natterer2005-11-231-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-23 Michael Natterer <mitch@imendio.com> Added symbolic themable colors. Patch is a merged version of proposals from Matthias and maemo-gtk. Fixes bug #114355. * configure.in: require glib >= 2.9.1 for refcountable hashtables. * gtk/gtksettings.c: added property "color-scheme" which is a string defining colors like "foreground:black\nbackground:grey". Automatically provide a name->GdkColor hash table mapping for the color scheme. * gtk/gtkrc.[ch]: added list of color hashes that works like the list of icon factories. Append the color scheme hash from GtkSettings if it exists. Extended gtkrc syntax to allow defining and referencing of logical colors. Also allow to modulate colors in gtkrc by using arbitrary expressions of mix(), shade(), lighter() and darker(). Added internal function _gtk_rc_style_get_color_hashes(). * gtk/gtkstyle.[ch]: keep a private list of color hashes around. Get the list from _gtk_rc_style_get_color_hashes(). Export internal function _gtk_style_shade() (used by above color expressions). Added public API gtk_style_lookup_color() which looks up a logical color by name. * gtk/gtk.symbols: add gtk_style_lookup_color * tests/testgtkrc: use symbolic colors for making the scrollbars red.
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-7/+2
| | | | | | | | | | | | | | | | | | 2005-03-20 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gtk/grk.symbols: Group symbols by header and source file. * gtk/makegtkalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegtkalias.pl -def * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate this file. * gtk/*.c: Include gtkalias.h after the other headers, include gtkaliasdef.c at the bottom. * gtk/*.h: Small cleanups.