summaryrefslogtreecommitdiff
path: root/gtk/gtkstyle.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Aug 9 12:48:04 2004 Matthias Clasen <maclas@gmx.de> Add hidden aliases for exported symbols which are used internally in order to get rid of many PLT entries. (#145519, Arjan van de Ven) * gtk/Makefile.am: Add rules to generate gtk.def and from gtk.symbols, and make make check check the abi with abicheck.sh. (gtk_private_h_sources): Add gtkinternals.h (gtk_built_private_headers): Add gtkalias.h (gtk_extra_sources): Add gtk.symbols (EXTRA_DIST): Add makegtkalias.pl and abicheck.sh * gtk/gtk.symbols: New file. Definition of the GTK+ ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gtk/abicheck.sh: New file. Script to check the actually symbols exported from libgtk-x11.2.0.so against the symbols found in gtk.symbols. * gtk/makegtkalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * gtk/gtkinternals.h: New file. An uninstalled header listing symbols which must be exported for some reason and do not appear in any other header. * gtk/*.c: Include gtkalias.h
* Fix #60128, #58307, #144706:Matthias Clasen2004-07-161-26/+44
| | | | | | | | | | | | | | | | Thu Jul 15 22:19:40 2004 Matthias Clasen <maclas@gmx.de> Fix #60128, #58307, #144706: * gtk/gtkstyle.c (gtk_style_real_copy): Handle references to bg_pixmaps properly. (gtk_style_real_unrealize): Don't keep dangling references to the bg_pixmaps. (gtk_style_attach): Split the loop into two loops, first looking for a matching style, then for an empty one. (gtk_style_finalize): (gtk_style_duplicate): Add comments explaining the handling of style->styles.
* Fix some cases where style functions were not handling widget == NULLMatthias Clasen2004-07-091-9/+23
| | | | | | | 2004-07-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstyle.c: Fix some cases where style functions were not handling widget == NULL properly. (#146282)
* small color tweak. (#141173)Soeren Sandmann2004-06-261-13/+21
| | | | | | Sat Jun 26 15:07:25 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkstyle.c, gtk/gtkrc.c: small color tweak. (#141173)
* Accept a NULL style.Matthias Clasen2004-06-261-1/+1
| | | | | | | | | Sat Jun 26 00:40:02 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkiconfactory.c (render_icon_name_pixbuf): * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): * gtk/gtkstyle.c (gtk_default_render_icon): Accept a NULL style.
* Typo fix.Matthias Clasen2004-06-101-1/+1
|
* Draw focus indication in the color wheel using standard focus style.Matthias Clasen2004-05-071-6/+14
| | | | | | | | | | | 2004-05-07 Matthias Clasen <mclasen@redhat.com> * gtk/gtkhsv.c: Draw focus indication in the color wheel using standard focus style. (#63071, Bill Haneman, idea for new style by Owen Taylor) * gtk/gtkstyle.c (gtk_default_draw_focus): Support drawing on focus on the colorwheel via details.
* Use the PRELIGHT fg color for drawing the expander when prelit. FixesMark McLoughlin2004-03-111-1/+1
| | | | | | | | 2004-03-11 Mark McLoughlin <mark@skynet.ie> * gtk/gtkstyle.c: (gtk_default_draw_expander): Use the PRELIGHT fg color for drawing the expander when prelit. Fixes problem with the HighContrast theme: bug #136789.
* Remove spurious semicolon. Thanks to Kjartan Maraas for pointing it out.Federico Mena Quintero2004-03-111-1/+1
| | | | | | | 2004-03-10 Federico Mena Quintero <federico@ximian.com> * gtk/gtkstyle.c (draw_dot): Remove spurious semicolon. Thanks to Kjartan Maraas for pointing it out.
* Fix g_return_if_fail() that was checking draw_shadow. (#136669, MortenOwen Taylor2004-03-091-1/+1
| | | | | | | | Tue Mar 9 13:49:14 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkstyle.c (gtk_paint_polygon): Fix g_return_if_fail() that was checking draw_shadow. (#136669, Morten Welinder)
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-061-0/+1
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* hu Feb 26 15:43:43 2004 Owen Taylor <otaylor@redhat.com>Owen Taylor2004-02-261-45/+61
| | | | | | | | | | | | | | | | | | | * gtk/gtkstyle.[ch]: Export insertion cursor drawing functionality in a simplified form as gtk_draw_insertion_cursor(). (#99031, request from Alex Larsson) * gtk/gtktextdisplay.c gtk/gtkentry.c gtk/gtklabel.c: Adapt to new gtk_draw_insertion_cursor(). * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init) gtk/gtkstyle.c (gtk_style_class_init): Add some missed Since: 2.4. * gtk/gtkiconfactory.c (icon_size_settings_changed) gtk/gtkicontheme.c (do_theme_change) gtk/gtkrc.c (_gtk_rc_context_get_default_font_name) * gtk/gtksettings.c (gtk_settings_notify): _gtk_rc_reset_styles => gtk_rc_reset_styles.
* Make realize and unrealize signals. (#73310)Owen Taylor2004-02-251-2/+40
| | | | | | Wed Feb 25 12:44:49 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkstyle.[ch]: Make realize and unrealize signals. (#73310)
* Free style->icon_factories (#130128)Owen Taylor2004-02-251-0/+13
| | | | | | | Wed Feb 25 09:46:34 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkstyle.c (gtk_style_finalize): Free style->icon_factories (#130128)
* Make the paned handles gray when the the widget is_focus() but notMatthias Clasen2004-02-191-6/+31
| | | | | | | | Fri Feb 20 00:21:38 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkstyle.c (gtk_default_draw_handle): (gtk_default_draw_box): Make the paned handles gray when the the widget is_focus() but not HAS_FOCUS(). (#122751, Soeren Sandmann)
* Clip narrow columns in rtl-oriented tree views (#128089,Matthias Clasen2004-02-031-0/+13
| | | | | | | | | | | | | | | | | | | | | Tue Feb 3 01:38:06 2004 Matthias Clasen <maclas@gmx.de> Clip narrow columns in rtl-oriented tree views (#128089, chinen@jp.ibm.com): * gtk/gtkstyle.c (gtk_default_draw_option): * gtk/gtkstyle.c (gtk_default_draw_check): Clip to the given area. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): Use the right clip area when calling gtk_cell_renderer_render(). * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_cell_draw_focus): Use the right clip area when calling gtk_paint_focus(). * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): Use the right clip area when calling gtk_paint_toggle() or gtk_paint_check(). * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): Clip to the expose_area when drawing the background rectangle.
* Fix doc comment. (#126369, Olexiy Avramchenko)Matthias Clasen2003-11-061-1/+1
| | | | | | | Thu Nov 6 20:41:40 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkstyle.c (gtk_style_attach): Fix doc comment. (#126369, Olexiy Avramchenko)
* remove correction on x when detail is "menuitem". With the new menu lookSoeren Sandmann2003-07-081-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Jul 8 19:57:14 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x when detail is "menuitem". With the new menu look is isn't needed anymore. * gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a resize here, so that tool items will get a chance to relayout themselves based on the toolbar configuration. change DEFAULT_SPACE_SIZE to 4 instead of 5 * gtk/gtktoolbar.c Get rid of "!GTK_BIN (item)->child means separator". Separators are widgets in their own right change DEFAULT_SPACE_SIZE to 4 instead of 5 (get_space_size): remove this function (toolbar_item_is_homogeneous): new function * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_size_request): new function. Tue Jul 8 14:10:35 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoggletoolbutton.h: use private data, add new internal function _gtk_toggle_tool_button_get_button() * gtk/gtktoolbutton.h: move to private data * gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new private data.
* better drawing of GtkMenuItem add notes about GtkMenu remove leftoverSoeren Sandmann2003-07-061-1/+0
| | | | | | | | Sun Jul 6 17:21:23 2003 Soeren Sandmann <sandmann@daimi.au.dk> * docs/widget_geometry.txt: better drawing of GtkMenuItem * docs/widget_geometry.txt: add notes about GtkMenu * gtk/gtkstyle.c: remove leftover "#include "gtkhandlebox.h""
* add vertical_padding style property.Soeren Sandmann2003-07-061-7/+76
| | | | | | | | | | | | | | | | | | | | | | | | Sat Jul 5 10:34:00 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkmenu.c: add vertical_padding style property. * gtk/gtkmenuitem.c: add style properties toggle_spacing, arrow_spacing and horizontal_padding. Also center separators and make them a bit taller. * gtk/*menuitem.c: use new style properties. * docs/widget_geometry.txt: Add note about GtkMenuItem * gtk/gtkstyle.c (gtk_default_draw_vline, gtk_default_draw_hline): fix +/-1 errors. (gtk_default_draw_shadow): draw a black border around menus. * gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix calls to gtk_paint_hline() and gtk_paint_vline() (they take x1, x2 and y1, y2 respectively, not x, width and y, height).
* Doc additions and fixes.Matthias Clasen2003-04-151-26/+384
|
* demos/gtk-demo/main.c demos/gtk-demo/tree_store.c gdk/x11/gdkscreen-x11.cManish Singh2003-02-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Feb 27 17:44:24 2003 Manish Singh <yosh@gimp.org> * demos/gtk-demo/main.c * demos/gtk-demo/tree_store.c * gdk/x11/gdkscreen-x11.c * gtk/gtkcellrenderertoggle.c * gtk/gtkcolorsel.c * gtk/gtkdnd.c * gtk/gtkeditable.c * gtk/gtkentry.c * gtk/gtkmenu.c * gtk/gtkmenubar.c * gtk/gtkmenuitem.c * gtk/gtkmenushell.c * gtk/gtkrc.c * gtk/gtksettings.c * gtk/gtkstyle.c * gtk/gtktextbuffer.c * gtk/gtktextview.c * gtk/gtktreeviewcolumn.c * tests/testgtk.c * tests/testtext.c * tests/testtreeedit.c * tests/testtreefocus.c * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.