summaryrefslogtreecommitdiff
path: root/gtk/gtkstyle.c
Commit message (Collapse)AuthorAgeFilesLines
* gtk/gtkstyle.c (option_menu_get_props) use gtk_requisition_free() insteadManish Singh2007-09-211-1/+1
| | | | | | | | | | | 2007-09-21 Manish Singh <yosh@gimp.org> * gtk/gtkstyle.c (option_menu_get_props) * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): use gtk_requisition_free() instead of g_free() for freeing requisitions. svn path=/trunk/; revision=18855
* Revert the clamping of cursor coordinates, since it causes really uglyMatthias Clasen2007-09-091-8/+0
| | | | | | | | | | | | 2007-09-08 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstyle.c (draw_insertion_cursor): Revert the clamping of cursor coordinates, since it causes really ugly drawing artifacts with horizontal scrolling. (#471215, Yevgen Muntyan) svn path=/trunk/; revision=18765
* Fix check/radio indicator drawing mess (bug #452225):Michael Natterer2007-07-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 2007-07-27 Michael Natterer <mitch@imendio.com> Fix check/radio indicator drawing mess (bug #452225): * gtk/gtkstyle.c (gtk_default_draw_check): really decrease the indicator size by one to ensure odd size (don't say -= -1). * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): removed -1 adjustment from calls to gtk_paint_option(). Theme engines now get the actually configured size passed, not one pixel less. * gtk/gtkcellrenderertoggle.c * gtk/gtkcheckmenuitem.c: changed default indicator size from 12 to 13 so all widgets which draw check/option indicators have the same default size now (and render the same size after above changes). * README.in: mention above changes in the release notes. svn path=/trunk/; revision=18547
* Implement block-cursor for overwrite mode. (#80378)Yevgen Muntyan2007-06-121-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* use text colors from widget style to draw cursor instead of hardcodedYevgen Muntyan2007-06-011-6/+8
| | | | | | | | | | | 2007-05-31 Yevgen Muntyan <muntyan@tamu.edu> * gtk/gtkstyle.c (get_insertion_cursor_gc): use text colors from widget style to draw cursor instead of hardcoded black and grey (#79585, comment #30). svn path=/trunk/; revision=17998
* clamp cursor coordinates to window bounds (fix from Maemo Gtk).Tim Janik2007-01-261-0/+8
| | | | | | | | | | | Fri Jan 26 13:07:07 2007 Tim Janik <timj@imendio.com> * gtk/gtkstyle.c (draw_insertion_cursor): clamp cursor coordinates to window bounds (fix from Maemo Gtk). svn path=/trunk/; revision=17217
* gtk/gtkstyle.c (option_menu_get_props) Use gtk_border_free when freeingMichael Natterer2007-01-031-1/+1
| | | | | | | | | | | 2007-01-03 Michael Natterer <mitch@imendio.com> * gtk/gtkstyle.c (option_menu_get_props) * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Use gtk_border_free when freeing borders. svn path=/trunk/; revision=17032
* Clarify docs. (#353423, Christian Persch)Matthias Clasen2006-12-291-5/+6
| | | | | | | 2006-12-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstyle.c (gtk_style_attach): Clarify docs. (#353423, Christian Persch)
* Use gslice for GtkBorder (#383557).Behdad Esfahbod2006-12-241-2/+10
| | | | | | | 2006-12-24 Behdad Esfahbod <behdad@gnome.org> * gtk/gtkstyle.c (gtk_border_copy), (gtk_border_free): Use gslice for GtkBorder (#383557).
* Bug 340141 – Update to Pango 1.16 APIBehdad Esfahbod2006-12-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-12-24 Behdad Esfahbod <behdad@gnome.org> Bug 340141 – Update to Pango 1.16 API * gdk/gdkpango.c (layout_iter_get_line_clip_region), (gdk_pango_layout_line_get_clip_region): * gtk/gtkcalendar.c (gtk_calendar_size_request): * gtk/gtkentry.c (gtk_entry_get_pixel_ranges), (get_layout_position), (gtk_entry_find_position), (gtk_entry_adjust_scroll): * gtk/gtkiconview.c (get_pango_text_offsets): * gtk/gtklabel.c (get_cursor_direction): * gtk/gtkstyle.c (get_insensitive_layout): * gtk/gtktextdisplay.c (render_para): * gtk/gtktextlayout.c (allocate_child_widgets), (find_display_line_below), (find_display_line_above), (gtk_text_layout_move_iter_to_previous_line), (gtk_text_layout_move_iter_to_next_line), (gtk_text_layout_move_iter_to_line_end), (gtk_text_layout_iter_starts_line), (gtk_text_layout_move_iter_to_x): * gtk/gtktextutil.c (limit_layout_lines): Use the _readonly version of pango_layout_iter_get_line(), pango_layout_iter_get_run(), pango_layout_get_line(), and pango_layout_get_lines(). * gtk/gtkmain.c (gtk_get_default_language): Use pango_get_default_language().
* Protect against NULL widget. (#379503)Benjamin Berg2006-11-261-2/+2
| | | | | | | 2006-11-26 Benjamin Berg <benjamin@sipsolutions.net> * gtk/gtkstyle.c: (gtk_default_draw_flat_box): Protect against NULL widget. (#379503)
* also copy icon factories and color hashes. Fixes bug #357132.Michael Natterer2006-09-221-0/+12
| | | | | | | 2006-09-22 Michael Natterer <mitch@imendio.com> * gtk/gtkstyle.c (gtk_style_real_copy): also copy icon factories and color hashes. Fixes bug #357132.
* Commit a patch by Behdad to fix typos, omissions and other errors in theMatthias Clasen2006-09-101-1/+0
| | | | | | | | 2006-09-10 Matthias Clasen <mclasen@redhat.com> * Commit a patch by Behdad to fix typos, omissions and other errors in the symbol aliasing, and add checks for local PLT entries. (#354687, Behdad Esfahbod)
* Only get the indicator-size and indicator-spacing style properties forMatthias Clasen2006-08-061-1/+4
| | | | | | | | 2006-08-06 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstyle.c (option_menu_get_props): Only get the indicator-size and indicator-spacing style properties for GtkOptionMenu. (#349859, Benjamin Otte)
* Add a missing initialization. (#349863, Benjamin Berg)Matthias Clasen2006-08-061-1/+1
| | | | | | | 2006-08-05 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstyle.c (gtk_default_draw_flat_box): Add a missing initialization. (#349863, Benjamin Berg)
* removed the "widget &&" part from "widget && GTK_IS_FOO (widget)" checks.Michael Natterer2006-08-031-4/+4
| | | | | | | 2006-08-03 Michael Natterer <mitch@imendio.com> * gtk/gtkstyle.c: removed the "widget &&" part from "widget && GTK_IS_FOO (widget)" checks.
* 2.10.1GTK_2_10_1Matthias Clasen2006-07-241-2/+2
|
* Replace gtk_rc_style_ref/unref by g_object_ref/unref.Matthias Clasen2006-07-211-2/+2
| | | | | | | | | 2006-07-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstyle.c: * gtk/gtkrc.c: * gtk/gtkwidget.c: Replace gtk_rc_style_ref/unref by g_object_ref/unref.
* Improve consistency of signal and property namesMatthias Clasen2006-07-061-1/+1
|
* handle cell_even_ruled_sorted and cell_odd_ruled_sorted for the selectedKristian Rietveld2006-05-281-2/+4
| | | | | | | | 2006-05-28 Kristian Rietveld <kris@gtk.org> * gtk/gtkstyle.c (gtk_default_draw_flat_box): handle cell_even_ruled_sorted and cell_odd_ruled_sorted for the selected state.
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-33/+3
|
* Remove g_return_if_fail() checks from static functions.Matthias Clasen2006-03-101-52/+0
| | | | | | | 2006-03-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstyle.c: Remove g_return_if_fail() checks from static functions.
* Add some docs. (#330073, Mart Rautsepp)Matthias Clasen2006-02-101-1/+37
| | | | | | 2006-02-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstyle.c: Add some docs. (#330073, Mart Rautsepp)
* Add support for row hinting for the selected state.Kristian Rietveld2006-01-311-4/+13
| | | | | | | 2006-01-31 Kristian Rietveld <kris@imendio.com> * gtk/gtkstyle.c (gtk_default_draw_flat_box): Add support for row hinting for the selected state.
* Added symbolic themable colors. Patch is a merged version of proposalsMichael Natterer2005-11-231-38/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Documentation improvements. (gtk_style_detach): Assert that theMatthias Clasen2005-10-051-0/+13
| | | | | | | | 2005-10-05 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstyle.c (gtk_style_detach): (gtk_style_attach): Documentation improvements. (gtk_style_detach): Assert that the attach_count is > 0.
* Various cleanups. (#315360, Kjartan Maraas)Matthias Clasen2005-09-131-9/+0
| | | | | | 2005-09-13 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: Various cleanups. (#315360, Kjartan Maraas)
* Intern some more strings.Matthias Clasen2005-09-011-6/+7
| | | | | | | | | 2005-09-01 Matthias Clasen <mclasen@redhat.com> * gdk/*.c: Intern some more strings. * gtk/gtkintl.h: * gtk/*.c: Define an I_() macro and use it instead of the bulky g_intern_static_string().
* Also intern static strings passed to g_object_set_data()Matthias Clasen2005-08-311-2/+2
|
* Intern type names in code generated by glib-mkenums, too.Matthias Clasen2005-08-311-2/+2
| | | | | | | | | | | | | 2005-08-31 Matthias Clasen <mclasen@redhat.com> * gdk/Makefile.am: * gtk/Makefile.am: Intern type names in code generated by glib-mkenums, too. * gtk/*.c: * gdk/x11/*.c: * gdk/*.c: Intern type names before registering the type to avoid unnecessary copies.
* Make sure expanded expanders are not fuzzy. (#310172, reported byMatthias Clasen2005-07-201-4/+20
| | | | | | | | 2005-07-20 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstyle.c (gtk_default_draw_expander): Make sure expanded expanders are not fuzzy. (#310172, reported by Alexander Larsson, patch by Owen Taylor)
* updated <io.h> for open() use G_PI instead of M_PIHans Breuer2005-07-031-1/+1
| | | | | | | | | | | | | | | | | | | 2005-07-03 Hans Breuer <hans@breuer.org> * **/makefile.msc[.in] : updated * gtk/gtkiconcache.c : <io.h> for open() * gtk/gtkstyle.c : use G_PI instead of M_PI * gdk/win32/gdkcursor-win32.c : implement gdk_cursor_new_from_name() by mapping the lower case win32 api name to the respective cursor. E.g. pass "wait" to get the IDC_WAIT cursor. Also allows to load cursors from named resources in the executable. (gdk_cursor_get_image) : just return NULL for now. * gdk/win32/gdkgeometry-win32.c : implement gdk_window_move_region() by delegation to ScollWindowEx(), untested. * gdk/win32/gdkwindow-win32.c : stub for gdk_window_set_urgency_hint()
* block the text_layout's "changed" handler when changing cursor visibilityMichael Natterer2005-05-251-1/+5
| | | | | | | | | | | | | | | 2005-05-25 Michael Natterer <mitch@imendio.com> * gtk/gtktextview.c (blink_cb): block the text_layout's "changed" handler when changing cursor visibility because it would expose the whole paragraph where the cursor is. Instead, expose the cursors' areas manually. (#173047). (text_window_invalidate_cursors): new function which exposes the cursors. * gtk/gtkstyle.c (draw_insertion_cursor): added comment that the same cursor size calculation is in text_window_invalidate_cursors().
* Use a GtkAlignment rather than a GtkDrawingArea to draw the swatch in toOwen Taylor2005-05-111-16/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-05-11 Owen Taylor <otaylor@redhat.com> * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea to draw the swatch in to avoid having an extraneous window. * gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe color when !has_opacity. 2005-05-10 Owen Taylor <otaylor@redhat.com> * gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source files for Cairo convenience functionality. * gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a convenience functions to add GdkRectangle, GdkRegion to a cairo path. * gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c gtk/gtkstyle.c: Use gdk_cairo_rectangle/region(). * gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename gdk_drawable_create_cairo_context() to gdk_cairo_create(). * gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Rename gdk_pixbuf_set_as_cairo_source() to gdk_cairo_set_source_pixbuf(). * gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c: Adjust for renames. * gdk/gdk.symbols: Update. * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix coordinate system problem that was causing the wrong portions to be invalidated. * gtk/gtkcellrenderer.c (gtk_cell_renderer_render) gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render) gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render) gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render) gtk/gtkcellview.c (gtk_cell_view_expose) gtk/gtkdnd.c (gtk_drag_highlight_expose) gtk/gtkentry.c (gtk_entry_draw_text) gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization. * gtk/gtkcalendar.[ch]: Beat into something roughly resembling GTK+ style ... use instance-private data and standard names for private structure, etc. Move function docs inline. * gtk/gtkcalendar.[ch]: Switch to drawing everything in expose. Switch drawing to Cairo. * gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate gtk_calendar_freeze/thaw
* Add a draw-border style property to allow themes to draw outside theOwen Taylor2005-05-021-22/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-04-28 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.c: Add a draw-border style property to allow themes to draw outside the widget's allocation. * gdk/gdkwindow.c gtk/gtkstyle.c: Remove some save/restore pairs that were working around the clip-leakage bug in Cairo. * gtk/gtkstyle.c: Use cairo_fill_preserve() rathe than save/fill/restore. * gdk/gdkgc.c gdk/gdkinternals.h: Add _gdk_gc_update_context() That updates a Cairo context to match a GC. * gdk/gdkdraw.c: Use _gdk_gc_update_context() to add support for tiles/stipples/clipping to gdk_draw_glyphs(), gdk_draw_trapezoids(). * gdk/gdkpango.c: Use _gdk_gc_update_context() instead of internal implementation of stipples. Use one cairo_t across the entire drawing operation. Replace cairo_matrix_create() with stack-allocated matrices. * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c gdk/win32/gdkgc-win32.c: Save various aspects of the GC state (fill, tile, stipple, foreground, background, clip region) in instance-private-data for future use. Add getters. Get rid of _gdk_windowing_gc_get_foreground() function implemented by the backends. * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Add _gdk_gc_init() to do initial setup of the GC from values; fixes some problems from drawable redirection. * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Move gdk_gc_copy() and gdk_gc_set_clip_{region,rectangle}() into the generic code, add _gdk_windowing_gc_copy(), _gdk_windowing_gc_set_clip_region() to do backend specific stuff. * gdk/x11/{gdkprivate-x11.h,gdkgc-x11.c.c,gdkdrawable-x11.c} gdk/win32/{gdkprivate-win32.h,gdkgc-x11.c.c,gdkdrawable-x11.c} gdk/linux-fb/{gdkprivate-fb.h,gdkgc-fb.c.c,gdkdrawable-fb.c}: Don't duplicate state that now is stored by the generic code. * gdk/gdk.symbols Update
* gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c Update toOwen Taylor2005-04-181-2/+2
| | | | | | | | | 2005-04-18 Owen Taylor <otaylor@redhat.com> * gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c * gdk/gdkcolor.c gdk/gdkwindow.c gdk/gdkpixbuf-render.c gdk/gdkpango.c tests/testcairo.c: Update to new Cairo API for setting color and opacity. (#301066, Vincent Noel)
* Covert expander drawing to Cairo. Also always draw the entire triangleOwen Taylor2005-04-041-112/+92
| | | | | | | | | 2005-04-04 Owen Taylor <otaylor@redhat.com> * gtk/gtkstyle.c (gtk_default_draw_expander): Covert expander drawing to Cairo. Also always draw the entire triangle instead of just drawing the center for prelight. (Fixes inconsistent drawing in GtkTreeView.)
* [merged from gtk-2-6 branch] let dash_offset shift the start of the lineHans Breuer2005-04-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 2005-04-03 Hans Breuer <hans@breuer.org> [merged from gtk-2-6 branch] * gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of the line pattern not the start of the line. Fixes bug #171641. * gtk/makefile.msc.in : follow .symbols changes * gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor() dynamically. (It is not available in _WIN_VER <= 0x0400) * gdk/win32/makefile.msc : removed gdkpango-win32.obj * gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI [also applied to gtk-2-6 branch] * gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def * gdk/makefile.msc.in : add gtkmnemonichash.obj * test/testgtk.c(set_parent_signal) : use g_message instead of g_print to keep the 'testgtk --bench=all' output clean
* Use canonical names for g_object_notify() as well.Matthias Clasen2005-03-261-9/+9
| | | | | | | | 2005-03-26 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: * gdk/gdkdisplaymanager.c: Use canonical names for g_object_notify() as well.
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+4
| | | | | | | | | | | | | | | | | | 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.
* Switch set_cairo_target() virtual function to ref_cairo_surface()Owen Taylor2005-03-171-454/+287
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-03-15 Owen Taylor <otaylor@redhat.com> * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Switch set_cairo_target() virtual function to ref_cairo_surface() * gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual function to create_cairo_context() * gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo. * gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color, not just the pixel. * tests/testcairo.c: Update for create_cairo_context() * gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]): Reimplement in terms of Cairo, bypass the vtable entries. * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove implementation of draw_trapezoids / draw_glyphs[_transformed]. * gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo * gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move gdk_pango_context_get_for_screen() into the backend independent code. * gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly for drawing images. * gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove gdk_draw_rectangle_alpha_libgtk_only. * gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add gdk_pixbuf_set_as_cairo_source() * gdk/gdk.symbols: Update * gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch] gtk/gtk[hv]ruler.c: Convert to Cairo rendering. * gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus, gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton, radio button style for now to get something more scalable. * gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/ antialiasing/dpi settings.
* Document which parameters may be NULL. (#166855, Frank Naumann)Matthias Clasen2005-03-071-57/+76
| | | | | | | 2005-03-07 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstyle.c: Document which parameters may be NULL. (#166855, Frank Naumann)
* AddSøren Sandmann2005-02-241-0/+21
| | | | | | | | | | Thu Feb 24 14:20:16 2005 Søren Sandmann <sandmann@redhat.com> * gtk/gtkstyle.c: Add g_return_if_fail (style->depth == gdk_drawable_get_depth(window)); all over the place.
* Add some more NULL checks, patch by Michael Natterer.Matthias Clasen2005-01-181-4/+4
| | | | | | | | 2005-01-18 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstyle.c (gtk_default_draw_check) (gtk_default_draw_option, gtk_default_draw_handle): Add some more NULL checks, patch by Michael Natterer.
* Check for NULL detail and NULL widget.Søren Sandmann2005-01-181-4/+4
| | | | | | | | | | Tue Jan 18 10:55:47 2005 Søren Sandmann <sandmann@redhat.com> * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail and NULL widget. * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and NULL widget. (#164477, Michael Natterer)
* gdk/linux-fb/gdkgc-fb.c gdk/win32/gdkgc-win32.cManish Singh2004-11-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Nov 19 14:54:09 2004 Manish Singh <yosh@gimp.org> * gdk/linux-fb/gdkgc-fb.c * gdk/win32/gdkgc-win32.c * gdk/win32/gdkwindow-win32.c * gtk/gtkaboutdialog.c * gtk/gtkaction.c * gtk/gtkactiongroup.c * gtk/gtkcellrendererprogress.c * gtk/gtkcellview.c * gtk/gtkcolorbutton.c * gtk/gtkcombobox.c * gtk/gtkcomboboxentry.c * gtk/gtkentrycompletion.c * gtk/gtkfilechooserbutton.c * gtk/gtkmenutoolbutton.c * gtk/gtkrc.c * gtk/gtksettings.c * gtk/gtkstyle.c * gtk/gtktoggletoolbutton.c * gtk/gtktoolbutton.c * gtk/gtktoolitem.c * gtk/gtktreemodelfilter.c * gtk/gtktreeselection.c * gtk/gtktreeviewcolumn.c * gtk/gtkuimanager.c: get rid of unnecessary casts. * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_set_property): cast away the const for g_value_set_enum. This is after the g_warning, so this is a hack to begin with. * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_set_property): add a cast to GTK_FILE_CHOOSER for impl here.
* Only clear the triangle below the grip to the background, not the fullMatthias Clasen2004-11-091-22/+28
| | | | | | | | 2004-11-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstyle.c (gtk_default_draw_resize_grip): Only clear the triangle below the grip to the background, not the full area.
* Change the default expander size to 12 to compensate for the recent changeMatthias Clasen2004-09-131-1/+1
| | | | | | | | | | | 2004-09-13 Matthias Clasen <mclasen@redhat.com> * gtk/gtkexpander.c: * gtk/gtktreeview.c: Change the default expander size to 12 to compensate for the recent change to gtk_default_draw_expander(). * gtk/gtkstyle.c (gtk_default_draw_expander): Use a linewidth of one for expander sizes up to 16.
* Draw expanders a bit better.Matthias Clasen2004-09-071-10/+30
| | | | | | | 2004-09-07 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstyle.c (gtk_default_draw_expander): Draw expanders a bit better.