]> Pileus Git - ~andy/gtk/log
~andy/gtk
13 years agoGtkStyleContext: Add the start of a default set of class names/regions.
Carlos Garnacho [Wed, 3 Nov 2010 11:17:06 +0000 (12:17 +0100)]
GtkStyleContext: Add the start of a default set of class names/regions.

13 years agoTheming documentation fixes
Carlos Garnacho [Wed, 3 Nov 2010 11:15:49 +0000 (12:15 +0100)]
Theming documentation fixes

2 functions were not in -sections.txt, and GtkStyleSet was renamed
to GtkStyleProperties.

13 years agoGtkStyleContext: Fix merging of local and global providers.
Carlos Garnacho [Wed, 3 Nov 2010 10:40:12 +0000 (11:40 +0100)]
GtkStyleContext: Fix merging of local and global providers.

13 years agoGtkStyleProperties: Merge font descriptions on merge()
Carlos Garnacho [Wed, 3 Nov 2010 10:36:18 +0000 (11:36 +0100)]
GtkStyleProperties: Merge font descriptions on merge()

This is necessary so incomplete font descriptions are ensured to have
family and size.

13 years agoGtkSymbolicColor: Take const GdkRGBA in new_literal().
Carlos Garnacho [Wed, 3 Nov 2010 10:35:42 +0000 (11:35 +0100)]
GtkSymbolicColor: Take const GdkRGBA in new_literal().

13 years agoDocument gtk_render_* functions.
Carlos Garnacho [Mon, 1 Nov 2010 02:58:21 +0000 (03:58 +0100)]
Document gtk_render_* functions.

13 years agoAdd gtk_render_activity()
Carlos Garnacho [Mon, 1 Nov 2010 01:46:35 +0000 (02:46 +0100)]
Add gtk_render_activity()

This method will render progress bars and spinners, these should
handle active and inconsistent states' animation progress in order
to perform animations.

13 years agoGtkThemingEngine: draw resize grip through render_handle().
Carlos Garnacho [Mon, 1 Nov 2010 01:42:08 +0000 (02:42 +0100)]
GtkThemingEngine: draw resize grip through render_handle().

GtkJunctionSides is used instead of GdkWindowEdge, GtkStyle
implementation has changed to use GtkStyleContext's.

13 years agoGtkWidget: Trigger state change transitions on state flags change.
Carlos Garnacho [Mon, 1 Nov 2010 01:37:07 +0000 (02:37 +0100)]
GtkWidget: Trigger state change transitions on state flags change.

This makes state transitions automatic for non-complex widgets, complex
widgets such as GtkTreeView still need to notify state updates themselves.

13 years agoGtkToolItemGroup: Set widget state as state flags.
Carlos Garnacho [Sun, 31 Oct 2010 13:45:41 +0000 (14:45 +0100)]
GtkToolItemGroup: Set widget state as state flags.

13 years agoGtkToggleButton: Set widget state as state flags.
Carlos Garnacho [Sun, 31 Oct 2010 13:45:19 +0000 (14:45 +0100)]
GtkToggleButton: Set widget state as state flags.

13 years agoGtkRadioButton: Set widget state as state flags.
Carlos Garnacho [Sun, 31 Oct 2010 13:45:01 +0000 (14:45 +0100)]
GtkRadioButton: Set widget state as state flags.

13 years agoGtkNotebook: Set widget state as state flags.
Carlos Garnacho [Sun, 31 Oct 2010 13:44:26 +0000 (14:44 +0100)]
GtkNotebook: Set widget state as state flags.

13 years agoGtkMenuItem: Set widget state as state flags.
Carlos Garnacho [Sun, 31 Oct 2010 13:44:09 +0000 (14:44 +0100)]
GtkMenuItem: Set widget state as state flags.

13 years agoGtkMenu: Set widget state as state flags.
Carlos Garnacho [Sun, 31 Oct 2010 13:43:55 +0000 (14:43 +0100)]
GtkMenu: Set widget state as state flags.

13 years agoGtkExpander: Set widget state as state flags.
Carlos Garnacho [Sun, 31 Oct 2010 13:43:37 +0000 (14:43 +0100)]
GtkExpander: Set widget state as state flags.

13 years agoGtkEntry: Set widget state as state flags.
Carlos Garnacho [Sun, 31 Oct 2010 13:43:20 +0000 (14:43 +0100)]
GtkEntry: Set widget state as state flags.

13 years agoGtkComboBox: Set widget state as state flags.
Carlos Garnacho [Sun, 31 Oct 2010 13:42:51 +0000 (14:42 +0100)]
GtkComboBox: Set widget state as state flags.

13 years agoGtkButton: Set widget state as state flags.
Carlos Garnacho [Sun, 31 Oct 2010 13:38:26 +0000 (14:38 +0100)]
GtkButton: Set widget state as state flags.

13 years agoImplement widget states as a set of flags
Carlos Garnacho [Sat, 30 Oct 2010 19:48:38 +0000 (21:48 +0200)]
Implement widget states as a set of flags

gtk_widget_(set|unset|get)_state_flags() has been added, using GtkStateFlags
to represent the widget state. GtkStateType API has been implemented on top
of the new one.

13 years agoDocument missing value in GtkStateFlags
Carlos Garnacho [Sat, 30 Oct 2010 17:53:43 +0000 (19:53 +0200)]
Document missing value in GtkStateFlags

13 years agos/GtkStyleSet/GtkStyleProperties/
Carlos Garnacho [Fri, 29 Oct 2010 04:47:32 +0000 (06:47 +0200)]
s/GtkStyleSet/GtkStyleProperties/

The former name had oddities such as gtk_style_set_set() and such,
so the new name is nicer in that regard and not much longer.

13 years agoGtkWidget: Ensure name changes involve a style context update.
Carlos Garnacho [Fri, 29 Oct 2010 04:01:51 +0000 (06:01 +0200)]
GtkWidget: Ensure name changes involve a style context update.

13 years agoRely only on fg/bg colors.
Carlos Garnacho [Fri, 29 Oct 2010 03:33:38 +0000 (05:33 +0200)]
Rely only on fg/bg colors.

"foreground-color" has been renamed to just "color" as in regular CSS,
and the "text-color" and "base-color" properties have been removed. The
default CSS has been changed to have widgets cope with this change.

13 years agoGtkCssProvider: Fix parsing of concatenated classes.
Carlos Garnacho [Fri, 29 Oct 2010 03:30:36 +0000 (05:30 +0200)]
GtkCssProvider: Fix parsing of concatenated classes.

Now selectors such as:

 GtkWidget#name.class1.class2
 #name.class1.class2
 .class1.class2

are parsed correctly, being meaningful for a widget defining several
classes.

13 years agoGtkThemingEngine: Use ::name when registering style props.
Carlos Garnacho [Wed, 27 Oct 2010 21:23:14 +0000 (23:23 +0200)]
GtkThemingEngine: Use ::name when registering style props.

13 years agoGtkThemingEngine: Add ::name construct only property
Carlos Garnacho [Mon, 25 Oct 2010 22:43:20 +0000 (00:43 +0200)]
GtkThemingEngine: Add ::name construct only property

This property is to be set by theming engines, the name set will be favored
over the object type name when registering custom properties, making possible
something like:

-Clearlooks-border: blah;

13 years agoGtkStyleSet: Prevent from possible underflow.
Carlos Garnacho [Mon, 25 Oct 2010 22:16:22 +0000 (00:16 +0200)]
GtkStyleSet: Prevent from possible underflow.

13 years agoGtkCssProvider: Parse alpha() symbolic colors.
Carlos Garnacho [Mon, 25 Oct 2010 18:44:15 +0000 (20:44 +0200)]
GtkCssProvider: Parse alpha() symbolic colors.

The "alpha" symbolic color modifies a passed color's alpha by a factor,
the syntax would accept things like:

background-color: alpha (@bg_color, 0.8);
foreground-color: alpha (shade (@fg_color, 0.8), 0.5);

13 years agoGtkSymbolicColor: Add gtk_symbolic_color_new_alpha()
Carlos Garnacho [Mon, 25 Oct 2010 18:41:36 +0000 (20:41 +0200)]
GtkSymbolicColor: Add gtk_symbolic_color_new_alpha()

This function modifies the alpha channel of a color, multiplying
it by a factor.

13 years agoGtkCssProvider: Make default style depend more on custom colors.
Carlos Garnacho [Mon, 25 Oct 2010 11:55:56 +0000 (13:55 +0200)]
GtkCssProvider: Make default style depend more on custom colors.

13 years agoGtkStyle: Get to style GtkCellRendererText text.
Carlos Garnacho [Mon, 25 Oct 2010 11:55:18 +0000 (13:55 +0200)]
GtkStyle: Get to style GtkCellRendererText text.

13 years agoGtkThemingEngine: render 0-radius frames with 3D-like 45° corner effect
Carlos Garnacho [Mon, 25 Oct 2010 08:24:15 +0000 (10:24 +0200)]
GtkThemingEngine: render 0-radius frames with 3D-like 45° corner effect

13 years agoGtkThemingEngine: Clear the background for .background class
Carlos Garnacho [Sat, 23 Oct 2010 22:04:34 +0000 (00:04 +0200)]
GtkThemingEngine: Clear the background for .background class

13 years agoGtkStyle: translate active state in paint_flat_box().
Carlos Garnacho [Sat, 23 Oct 2010 20:51:58 +0000 (22:51 +0200)]
GtkStyle: translate active state in paint_flat_box().

13 years agoGtkCssProvider: Update end string when misparsing symbolic colors.
Carlos Garnacho [Sat, 23 Oct 2010 20:24:57 +0000 (22:24 +0200)]
GtkCssProvider: Update end string when misparsing symbolic colors.

13 years agoGtkCssProvider: Allow '\t' when parsing values.
Carlos Garnacho [Sat, 23 Oct 2010 19:40:49 +0000 (21:40 +0200)]
GtkCssProvider: Allow '\t' when parsing values.

13 years agoGtkSymbolicColor: Initialize alpha when resolving shades.
Carlos Garnacho [Sat, 23 Oct 2010 19:40:20 +0000 (21:40 +0200)]
GtkSymbolicColor: Initialize alpha when resolving shades.

13 years agoGtkThemingEngine: Improve rendering of inset/outset borders.
Carlos Garnacho [Sat, 23 Oct 2010 16:33:07 +0000 (18:33 +0200)]
GtkThemingEngine: Improve rendering of inset/outset borders.

13 years agoGtkCssProvider: Improve default CSS.
Carlos Garnacho [Sat, 23 Oct 2010 16:32:15 +0000 (18:32 +0200)]
GtkCssProvider: Improve default CSS.

13 years agoGtkStyle: Handle scrollbar buttons.
Carlos Garnacho [Sat, 23 Oct 2010 16:25:18 +0000 (18:25 +0200)]
GtkStyle: Handle scrollbar buttons.

13 years agoDo not shade alpha values.
Carlos Garnacho [Sat, 23 Oct 2010 16:24:14 +0000 (18:24 +0200)]
Do not shade alpha values.

13 years agoGtkStyle: Match "trough" and "slider" detail strings.
Carlos Garnacho [Fri, 22 Oct 2010 21:59:58 +0000 (23:59 +0200)]
GtkStyle: Match "trough" and "slider" detail strings.

This is so scrollbars can be themed throught the "trough" and
"slider" classes.

13 years agoUse GdkRGBA all around in GtkStyleContext.
Carlos Garnacho [Fri, 22 Oct 2010 10:41:19 +0000 (12:41 +0200)]
Use GdkRGBA all around in GtkStyleContext.

13 years agoGtkStyleSet: Register the border-style and border-color properties
Carlos Garnacho [Fri, 22 Oct 2010 08:38:21 +0000 (10:38 +0200)]
GtkStyleSet: Register the border-style and border-color properties

This is also implemented in the theming engine, although the default
CSS should be using it in order to theme buttons, troughs, sliders
and such.

13 years agoGtkStyleContext: '_' prefix the structs, gtk-doc prefers this.
Carlos Garnacho [Wed, 20 Oct 2010 17:52:50 +0000 (19:52 +0200)]
GtkStyleContext: '_' prefix the structs, gtk-doc prefers this.

13 years agoGtkWidgetPath: turn into a boxed type.
Carlos Garnacho [Wed, 20 Oct 2010 17:33:39 +0000 (19:33 +0200)]
GtkWidgetPath: turn into a boxed type.

13 years agoGtkStyleContext: s/set/add/ and s/unset/remove/ for classes/regions.
Carlos Garnacho [Wed, 20 Oct 2010 17:02:41 +0000 (19:02 +0200)]
GtkStyleContext: s/set/add/ and s/unset/remove/ for classes/regions.

Several classes and regions may be set to GtkStyleContext, so rename
the functions to be more intuitive.

13 years agoGtkThemingEngine: Honor border-radius in render_background().
Carlos Garnacho [Wed, 20 Oct 2010 16:47:28 +0000 (18:47 +0200)]
GtkThemingEngine: Honor border-radius in render_background().

13 years agoGtkStyleSet: Register the "border-radius" property
Carlos Garnacho [Wed, 20 Oct 2010 16:44:48 +0000 (18:44 +0200)]
GtkStyleSet: Register the "border-radius" property

13 years agoGtkStyleContext: Update function declaration in header.
Carlos Garnacho [Wed, 20 Oct 2010 16:05:15 +0000 (18:05 +0200)]
GtkStyleContext: Update function declaration in header.

13 years agoGtkCssProvider: Make it able to parse enums.
Carlos Garnacho [Wed, 20 Oct 2010 16:04:39 +0000 (18:04 +0200)]
GtkCssProvider: Make it able to parse enums.

13 years agoGtkCssProvider: Run through the widget path in the correct order.
Carlos Garnacho [Wed, 20 Oct 2010 15:37:00 +0000 (17:37 +0200)]
GtkCssProvider: Run through the widget path in the correct order.

Comparing a selector with a widget path was being done backwards since
the change to use GtkContainer::get_path_for_child().

13 years agoMake loading of theming engines from modules work
Matthias Clasen [Wed, 20 Oct 2010 11:26:27 +0000 (13:26 +0200)]
Make loading of theming engines from modules work

13 years agoGtkStyleContext: Add gtk_style_context_new().
Carlos Garnacho [Tue, 19 Oct 2010 16:42:00 +0000 (18:42 +0200)]
GtkStyleContext: Add gtk_style_context_new().

13 years agoGtkCssProvider: Parse default/sorted region flags.
Carlos Garnacho [Tue, 19 Oct 2010 11:00:07 +0000 (13:00 +0200)]
GtkCssProvider: Parse default/sorted region flags.

13 years agoGtkCssProvider: Parse missing widget states.
Carlos Garnacho [Tue, 19 Oct 2010 10:59:19 +0000 (12:59 +0200)]
GtkCssProvider: Parse missing widget states.

13 years agoChange semantics of the methods to check whether an animation is running.
Carlos Garnacho [Tue, 19 Oct 2010 10:09:23 +0000 (12:09 +0200)]
Change semantics of the methods to check whether an animation is running.

It actually messed up with the state being actually set, and having a
transition animation running for it. Now this dichotomy is removed, and
gtk_style_context_state_is_running() only checks whether an animation is
running, leaving state checking to flags & GTK_STATE_FLAG_*.

13 years agoGtkStyleContext: Actually store region ID when starting an animation.
Carlos Garnacho [Tue, 19 Oct 2010 09:29:18 +0000 (11:29 +0200)]
GtkStyleContext: Actually store region ID when starting an animation.

13 years agoAdd theming docs
Carlos Garnacho [Tue, 19 Oct 2010 08:59:46 +0000 (10:59 +0200)]
Add theming docs

Both API and file format is documented, there's still missing
a migration doc though.

13 years agoRemove GtkOrientation parameter from gtk_render_handle().
Carlos Garnacho [Tue, 12 Oct 2010 22:52:50 +0000 (00:52 +0200)]
Remove GtkOrientation parameter from gtk_render_handle().

The case for paned can be guessed out from the height and width,
for handlebox the orientation parameter doesn't make much sense,
and this way it could also be used for resize grips.

13 years agoUse cairo gobject support instead of a new boxed type.
Benjamin Berg [Wed, 13 Oct 2010 14:33:38 +0000 (16:33 +0200)]
Use cairo gobject support instead of a new boxed type.

13 years agoGtkGradient: Handle symbolic gradients.
Carlos Garnacho [Tue, 12 Oct 2010 19:48:23 +0000 (21:48 +0200)]
GtkGradient: Handle symbolic gradients.

The css parser has been modified to parse correctly radial gradients:

background-image: -gtk-gradient (radial,
                                 center center, 0,
                                 center center, 0.8,
                                 from (#000), to (#fff));

The theming engine has been modified to correctly animate these,
as well as transitions between different pattern types.

13 years agoGtk9Slice: Fix stretch case.
Carlos Garnacho [Tue, 12 Oct 2010 01:46:40 +0000 (03:46 +0200)]
Gtk9Slice: Fix stretch case.

13 years agoGtkWidget: Store GtkStyleContext in private struct.
Carlos Garnacho [Mon, 11 Oct 2010 17:27:36 +0000 (19:27 +0200)]
GtkWidget: Store GtkStyleContext in private struct.

13 years agoGtkStyleContext: Cache style properties accross class/region changes.
Carlos Garnacho [Mon, 11 Oct 2010 15:58:31 +0000 (17:58 +0200)]
GtkStyleContext: Cache style properties accross class/region changes.

13 years agoGtkContainer: Add method to get the GtkWidgetPath for a child.
Carlos Garnacho [Sun, 10 Oct 2010 22:23:40 +0000 (00:23 +0200)]
GtkContainer: Add method to get the GtkWidgetPath for a child.

This is now used throughout in order to have the full path for a given widget,
including intermediate named regions, the default implementation just returns
the GtkContainer's path copy, no intermediate regions between.

13 years agoGtkStyleContext: Fix animation framework to work with the new draw() semantics.
Carlos Garnacho [Sat, 9 Oct 2010 13:19:52 +0000 (15:19 +0200)]
GtkStyleContext: Fix animation framework to work with the new draw() semantics.

Invalidation region coalescing now happens recursively as draw() runs, and the
widget's x/y as now drawing coordinates are 0,0 based.

13 years agoGtkCssProvider: Add support for @import rules
Carlos Garnacho [Fri, 8 Oct 2010 16:36:46 +0000 (18:36 +0200)]
GtkCssProvider: Add support for @import rules

Now other CSS files can be referenced from the currently parsed file:

@import url (other-file.css);
@import url (/some/file.css);

13 years agoGtkCssProvider: no need for resetting the parser prior to parsing data
Carlos Garnacho [Fri, 8 Oct 2010 16:32:10 +0000 (18:32 +0200)]
GtkCssProvider: no need for resetting the parser prior to parsing data

This is done anyway on each iteration to parse_rule() in parse_stylesheet()

13 years agoGtkCssProvider: improve file paths parser.
Carlos Garnacho [Fri, 8 Oct 2010 16:27:22 +0000 (18:27 +0200)]
GtkCssProvider: improve file paths parser.

It will now return a full path, and check about the file being sane.

13 years agoGtkCssProvider: Transform custom colors to a @define-color rule.
Carlos Garnacho [Fri, 8 Oct 2010 16:19:34 +0000 (18:19 +0200)]
GtkCssProvider: Transform custom colors to a @define-color rule.

Given there are other rules such as @import (which will be supported),
keep a sane namespace here, so for (re)defining a color name, in the CSS
file it will look like:

@define-color color-name #fff;
@define-color other-color mix (@color-name, #f00, 0.4);

13 years agoGtkThemingEngine: Do not return a const GtkThemingEngine on load()
Carlos Garnacho [Fri, 8 Oct 2010 16:13:14 +0000 (18:13 +0200)]
GtkThemingEngine: Do not return a const GtkThemingEngine on load()

13 years agoPlug some leaks.
Carlos Garnacho [Tue, 5 Oct 2010 23:04:06 +0000 (01:04 +0200)]
Plug some leaks.

13 years agoFix typo in the Gtk9Slice parser.
Carlos Garnacho [Tue, 5 Oct 2010 22:53:49 +0000 (00:53 +0200)]
Fix typo in the Gtk9Slice parser.

13 years agoGtkButton: Notify on prelight state change.
Carlos Garnacho [Tue, 5 Oct 2010 08:56:52 +0000 (10:56 +0200)]
GtkButton: Notify on prelight state change.

13 years agoGtkThemingEngine: Implement animations between gradients/colors.
Carlos Garnacho [Tue, 5 Oct 2010 08:55:40 +0000 (10:55 +0200)]
GtkThemingEngine: Implement animations between gradients/colors.

13 years agoGtkSymbolicColor: Use G_DEFINE_BOXED_TYPE
Carlos Garnacho [Tue, 5 Oct 2010 08:54:49 +0000 (10:54 +0200)]
GtkSymbolicColor: Use G_DEFINE_BOXED_TYPE

13 years agoGtkStyleContext: Store animation region for a bunch of paint operations.
Carlos Garnacho [Tue, 5 Oct 2010 08:54:19 +0000 (10:54 +0200)]
GtkStyleContext: Store animation region for a bunch of paint operations.

13 years agoGtkStyleContext: Invalidate whole window if no invalidation region is obtained.
Carlos Garnacho [Tue, 5 Oct 2010 08:53:09 +0000 (10:53 +0200)]
GtkStyleContext: Invalidate whole window if no invalidation region is obtained.

13 years agoGtkCssProvider: use mapped file to read CSS files.
Carlos Garnacho [Fri, 24 Sep 2010 20:10:20 +0000 (22:10 +0200)]
GtkCssProvider: use mapped file to read CSS files.

13 years agoGtkCssProvider: unset filename on load_from_data()
Carlos Garnacho [Fri, 24 Sep 2010 20:09:37 +0000 (22:09 +0200)]
GtkCssProvider: unset filename on load_from_data()

13 years agoGtkThemingEngine: Use border-image to render borders if an image is available.
Carlos Garnacho [Fri, 24 Sep 2010 20:08:49 +0000 (22:08 +0200)]
GtkThemingEngine: Use border-image to render borders if an image is available.

13 years agoGtkCssProvider: Add a parser for 9slice typed properties.
Carlos Garnacho [Fri, 24 Sep 2010 20:05:20 +0000 (22:05 +0200)]
GtkCssProvider: Add a parser for 9slice typed properties.

The value it parses is similar to the border-image CSS3 property,
so strings like this will be accepted:

  border-image: url (foo.png) 4 3 4 3 repeat repeat;

the image path is relative to the parsed CSS file dirname if no
absolute path is provided.

13 years agoRegister the border-image property
Carlos Garnacho [Fri, 24 Sep 2010 20:02:39 +0000 (22:02 +0200)]
Register the border-image property

It will contain a 9-sliced image, so it can be rendered as rectangles with any
dimensions.

13 years agoAdd Gtk9Slice
Carlos Garnacho [Fri, 24 Sep 2010 19:42:18 +0000 (21:42 +0200)]
Add Gtk9Slice

This is a private boxed object to contain information about a border image
in order to render it in a size independent way.

13 years agoGtkSettings: Add a new provider for the theme CSS file.
Carlos Garnacho [Wed, 22 Sep 2010 21:44:06 +0000 (23:44 +0200)]
GtkSettings: Add a new provider for the theme CSS file.

13 years agoGtkStyleContext: Add gtk_style_context_reset_widgets()
Carlos Garnacho [Wed, 22 Sep 2010 21:40:59 +0000 (23:40 +0200)]
GtkStyleContext: Add gtk_style_context_reset_widgets()

This function recalculates the style for all widgets on a screen.

13 years agoGtkCssProvider: Add gtk_css_provider_get_named()
Carlos Garnacho [Wed, 22 Sep 2010 21:39:15 +0000 (23:39 +0200)]
GtkCssProvider: Add gtk_css_provider_get_named()

This functions loads a CSS file from a installed theme.

13 years agoAdd generic providers per-screen.
Carlos Garnacho [Sat, 11 Sep 2010 10:48:27 +0000 (12:48 +0200)]
Add generic providers per-screen.

The providers are added as soon as gtk GtkSettings object for the screen
is created.

13 years agoGtkStyleContext: invalidate context when setting the screen
Carlos Garnacho [Sat, 11 Sep 2010 10:47:31 +0000 (12:47 +0200)]
GtkStyleContext: invalidate context when setting the screen

13 years agoGtkWidget: Set style context's screen before the widget_path.
Carlos Garnacho [Sat, 11 Sep 2010 10:45:42 +0000 (12:45 +0200)]
GtkWidget: Set style context's screen before the widget_path.

This is so the style context has all necessary information before
triggering a style change on setting the path.

13 years agoGtkStyleContext: Add gtk_style_context_[add|remove]_provider_for_screen()
Carlos Garnacho [Sat, 11 Sep 2010 10:42:35 +0000 (12:42 +0200)]
GtkStyleContext: Add gtk_style_context_[add|remove]_provider_for_screen()

These functions allow per-screen style providers. also, the changed signal
will be emitted whenever a style context changes.

13 years agoGtkWidget: Add gtk_widget_reset_style().
Carlos Garnacho [Sat, 11 Sep 2010 10:40:31 +0000 (12:40 +0200)]
GtkWidget: Add gtk_widget_reset_style().

This function is analogous to gtk_widget_reset_rc_styles(),
updates style recursively on a widget.

13 years agoGtkWidget: Add the style-updated signal
Carlos Garnacho [Sat, 11 Sep 2010 10:36:54 +0000 (12:36 +0200)]
GtkWidget: Add the style-updated signal

This signal is emitted whenever the widget's style changes.

13 years agoGtkStyle: Protect against padding being NULL
Carlos Garnacho [Sat, 11 Sep 2010 10:10:50 +0000 (12:10 +0200)]
GtkStyle: Protect against padding being NULL

13 years agoGtkStyleContext: Add gtk_style_context_invalidate().
Carlos Garnacho [Sat, 11 Sep 2010 10:18:26 +0000 (12:18 +0200)]
GtkStyleContext: Add gtk_style_context_invalidate().

This function will regenerate all styling information.

13 years agoGtkStyleSet: Fix typo
Carlos Garnacho [Sat, 11 Sep 2010 10:10:25 +0000 (12:10 +0200)]
GtkStyleSet: Fix typo

13 years agoGtkThemingEngine: use background-image in render_background()
Carlos Garnacho [Thu, 2 Sep 2010 00:14:10 +0000 (02:14 +0200)]
GtkThemingEngine: use background-image in render_background()

13 years agoGtkStyleSet: Register a "background-image" property.
Carlos Garnacho [Thu, 2 Sep 2010 00:12:26 +0000 (02:12 +0200)]
GtkStyleSet: Register a "background-image" property.

Ironically, it currently just handles gradients, the name is to conform
to current CSS gradient implementation trends.