]>
Pileus Git - ~andy/gtk/log
Carlos Garnacho [Tue, 3 Aug 2010 18:36:09 +0000 (20:36 +0200)]
GtkThemingEngine: Add gtk_theming_engine_get_junction_sides().
Carlos Garnacho [Tue, 3 Aug 2010 18:33:53 +0000 (20:33 +0200)]
GtkStyleContext: Add gtk_style_context_[gs]et_junction_sides().
These functions will help widgets specify how does one element being painted
relate to other contiguous elements.
Carlos Garnacho [Tue, 3 Aug 2010 18:32:25 +0000 (20:32 +0200)]
Add GtkJunctionSides flags.
Carlos Garnacho [Tue, 3 Aug 2010 18:30:26 +0000 (20:30 +0200)]
GtkStyleContext: Add gtk_style_context_lookup_color().
gtk_style_lookup_color() now uses this function internally.
Carlos Garnacho [Tue, 3 Aug 2010 18:29:07 +0000 (20:29 +0200)]
GtkStyleSet: Register the "border" property.
Carlos Garnacho [Tue, 3 Aug 2010 18:27:32 +0000 (20:27 +0200)]
GtkThemingEngine: fix typo in function declaration.
Carlos Garnacho [Tue, 3 Aug 2010 18:26:53 +0000 (20:26 +0200)]
GtkThemingEngine: Add gtk_theming_engine_get_direction().
Carlos Garnacho [Mon, 2 Aug 2010 15:24:27 +0000 (17:24 +0200)]
GtkWidget: Set style context direction.
Carlos Garnacho [Mon, 2 Aug 2010 15:18:53 +0000 (17:18 +0200)]
GtkStyleContext: Add gtk_style_context_[gs]et_direction().
Carlos Garnacho [Mon, 2 Aug 2010 14:16:50 +0000 (16:16 +0200)]
GtkWidget: Add the default CSS provider to all style contexts.
Carlos Garnacho [Mon, 2 Aug 2010 14:16:03 +0000 (16:16 +0200)]
GtkCssProvider: Add gtk_css_provider_get_default().
This method returns a GtkCssProvider with the default style information
loaded.
Carlos Garnacho [Mon, 2 Aug 2010 14:15:06 +0000 (16:15 +0200)]
GtkStyle: Move gtk_render_* calls to default vmethod implementations.
Carlos Garnacho [Mon, 2 Aug 2010 14:14:17 +0000 (16:14 +0200)]
GtkWidget: Create GtkStyle on top of GtkStyleContext.
Carlos Garnacho [Mon, 2 Aug 2010 14:11:40 +0000 (16:11 +0200)]
GtkWidget: Construct style for partial widget hierarchies.
Some unparented widgets like to ask style details, so now the style is
constructed regardless of the parent being present or not, and then
reconstructed if the parent changes.
Carlos Garnacho [Mon, 2 Aug 2010 14:05:58 +0000 (16:05 +0200)]
GtkStyle: Optionally construct above a GtkStyleContext.
Carlos Garnacho [Mon, 2 Aug 2010 13:52:26 +0000 (15:52 +0200)]
GtkThemingEngine: Add code to render GtkFrame frame with gap.
Carlos Garnacho [Mon, 2 Aug 2010 13:51:23 +0000 (15:51 +0200)]
GtkThemingEngine: Obey active/selected when rendering text.
Carlos Garnacho [Mon, 2 Aug 2010 13:50:37 +0000 (15:50 +0200)]
GtkThemingEngine: Rip out focus rendering from old code.
Carlos Garnacho [Mon, 2 Aug 2010 13:49:45 +0000 (15:49 +0200)]
GtkThemingEngine: Rip out expander rendering from old code.
Carlos Garnacho [Mon, 2 Aug 2010 13:48:31 +0000 (15:48 +0200)]
GtkThemingEngine: Render frames and spinbutton boxes properly.
Carlos Garnacho [Mon, 2 Aug 2010 13:46:08 +0000 (15:46 +0200)]
GtkThemingEngine: Improve background rendering.
Now active and selected states are taken into account, and GtkSpinButton
buttons are special cased.
Carlos Garnacho [Mon, 2 Aug 2010 13:45:13 +0000 (15:45 +0200)]
GtkThemingEngine: Improve pixel alignment in arrows.
Carlos Garnacho [Mon, 2 Aug 2010 13:33:20 +0000 (15:33 +0200)]
GtkThemingEngine: Add methods to retrieve widget style properties.
Carlos Garnacho [Mon, 2 Aug 2010 13:26:41 +0000 (15:26 +0200)]
GtkStyleSet: Allow setting default value when registering properties.
This is now used for the "engine" keyword, where the default engine is used
if none is specified.
Carlos Garnacho [Mon, 2 Aug 2010 11:58:16 +0000 (13:58 +0200)]
GtkStyleContext: Add varargs functions for getting widget style properties.
Carlos Garnacho [Mon, 2 Aug 2010 11:52:28 +0000 (13:52 +0200)]
GtkStyleContext: Ensure style rebuilds after adding/removing classes.
Carlos Garnacho [Mon, 2 Aug 2010 11:50:17 +0000 (13:50 +0200)]
GtkStyleContext: ensure class lookup return the correct insertion position if not found.
Carlos Garnacho [Mon, 2 Aug 2010 11:46:25 +0000 (13:46 +0200)]
GtkCssProvider: Allow '_' in the middle of symbolic color names.
Carlos Garnacho [Mon, 19 Jul 2010 10:00:07 +0000 (12:00 +0200)]
GtkThemingEngine: Improve slider rendering.
Carlos Garnacho [Mon, 19 Jul 2010 09:59:27 +0000 (11:59 +0200)]
GtkThemingEngine: Cairo-ify frame rendering from GtkStyle.
Carlos Garnacho [Mon, 19 Jul 2010 09:58:13 +0000 (11:58 +0200)]
GtkThemingEngine: Cairo-ify frame_gap rendering from GtkStyle.
Carlos Garnacho [Mon, 19 Jul 2010 09:57:25 +0000 (11:57 +0200)]
GtkThemingEngine: Cairo-ify extension rendering from GtkStyle.
Carlos Garnacho [Mon, 19 Jul 2010 09:56:01 +0000 (11:56 +0200)]
GtkThemingEngine: Make render_background use drawing primitives.
Carlos Garnacho [Mon, 19 Jul 2010 09:54:31 +0000 (11:54 +0200)]
GtkThemingEngine: Unify code to render lines.
Carlos Garnacho [Mon, 19 Jul 2010 09:51:17 +0000 (11:51 +0200)]
GtkThemingEngine: Add cairo-ified rendering primitives.
Functions to add paths for lines, rectangle sides, and the gap side in notebooks
have been added.
Carlos Garnacho [Mon, 19 Jul 2010 09:47:37 +0000 (11:47 +0200)]
GtkThemingEngine: Cairo-ify handle rendering from GtkStyle.
Carlos Garnacho [Mon, 19 Jul 2010 09:45:35 +0000 (11:45 +0200)]
GtkThemingEngine: Take option rendering from GtkStyle.
Carlos Garnacho [Mon, 19 Jul 2010 09:42:18 +0000 (11:42 +0200)]
GtkThemingEngine: Take checkbox rendering from GtkStyle.
Carlos Garnacho [Sun, 18 Jul 2010 16:40:48 +0000 (18:40 +0200)]
GtkStyleContext: Don crash on empty class sets.
Carlos Garnacho [Sat, 3 Jul 2010 18:55:38 +0000 (20:55 +0200)]
GtkThemingEngine: Use GdkPangoRenderer when painting layouts.
Carlos Garnacho [Sat, 3 Jul 2010 18:53:50 +0000 (20:53 +0200)]
GtkStyleContext: Add gtk_style_context_save/restore().
This API will be used to have savepoints when adding and removing
style classes information.
Carlos Garnacho [Sat, 3 Jul 2010 11:21:56 +0000 (13:21 +0200)]
GtkThemingEngine: Add gtk_theming_engine_get_screen().
Carlos Garnacho [Sat, 3 Jul 2010 11:20:45 +0000 (13:20 +0200)]
GtkWidget: Set screen info in GtkStyleContext.
Carlos Garnacho [Sat, 3 Jul 2010 11:17:35 +0000 (13:17 +0200)]
GtkStyleContext: Add gtk_style_context_[gs]et_screen()
Carlos Garnacho [Sat, 3 Jul 2010 00:20:42 +0000 (02:20 +0200)]
GtkStyleContext: Add priv pointer to object struct.
Carlos Garnacho [Sat, 3 Jul 2010 00:19:54 +0000 (02:19 +0200)]
GtkStyleSet: Add priv pointer to object struct.
Carlos Garnacho [Sat, 3 Jul 2010 00:19:27 +0000 (02:19 +0200)]
GtkCssProvider: Add priv pointer to object struct.
Carlos Garnacho [Fri, 2 Jul 2010 18:54:20 +0000 (20:54 +0200)]
Fix include.
Carlos Garnacho [Sun, 27 Jun 2010 17:37:34 +0000 (19:37 +0200)]
GtkStyleContext: Add gtk_style_context_lookup_icon_set().
Carlos Garnacho [Sun, 27 Jun 2010 17:35:08 +0000 (19:35 +0200)]
GtkStyleProvider: Add gtk_style_provider_get_icon_factory().
With this, style providers have a way to override default icon theme.
Carlos Garnacho [Fri, 25 Jun 2010 18:31:08 +0000 (20:31 +0200)]
GtkCssProvider: Allow symbolic colors when parsing style rules.
Carlos Garnacho [Fri, 25 Jun 2010 18:27:15 +0000 (20:27 +0200)]
GtkCssProvider: Parse color mappings.
These are of the form:
@color-a: #fff;
@color-b: mix (@color-a, #000, 0.5)
@color-c: shade (@color-b, 0.7)
In the stylesheet, arbitrary nesting of these commands is handled.
Carlos Garnacho [Fri, 25 Jun 2010 18:08:07 +0000 (20:08 +0200)]
GtkStyleSet: Optionally take GtkSymbolicColors.
gtk_style_set_set_property() now takes both GdkColor and GtkSymbolicColor
GValues, All accessors still return GdkColors, so any symbolic color will
be resolved and replaced in the styleset at that time.
Carlos Garnacho [Fri, 25 Jun 2010 17:39:15 +0000 (19:39 +0200)]
GtkSymbolicColor: Add method to resolve to a GdkColor.
Carlos Garnacho [Fri, 25 Jun 2010 17:37:54 +0000 (19:37 +0200)]
GtkStyleSet: Add API to map symbolic colors.
Carlos Garnacho [Fri, 25 Jun 2010 17:29:51 +0000 (19:29 +0200)]
Add GtkSymbolicColor.
This is a small boxed struct used to store symbolic colors so they
can be resolved at a later point.
Carlos Garnacho [Fri, 25 Jun 2010 17:24:19 +0000 (19:24 +0200)]
GtkWidgetPath: Add to gtkalias.
Carlos Garnacho [Fri, 25 Jun 2010 16:49:15 +0000 (18:49 +0200)]
GtkCssProvider: Plug memory leak.
Carlos Garnacho [Fri, 25 Jun 2010 16:46:59 +0000 (18:46 +0200)]
GtkCssProvider: Fix compile warning.
Carlos Garnacho [Sat, 19 Jun 2010 14:04:30 +0000 (16:04 +0200)]
GtkCssProvider: set scanner->input_name.
Carlos Garnacho [Fri, 18 Jun 2010 15:25:53 +0000 (17:25 +0200)]
GtkWidget: Do not reset GtkStyleContext per get_style_context().
Carlos Garnacho [Fri, 18 Jun 2010 15:16:21 +0000 (17:16 +0200)]
GtkWidget: Hook up widget style property querying to style context.
Carlos Garnacho [Fri, 18 Jun 2010 15:11:37 +0000 (17:11 +0200)]
GtkStyleContext: Add methods to get style property values.
Carlos Garnacho [Fri, 18 Jun 2010 15:04:03 +0000 (17:04 +0200)]
GtkCssProvider: Implement GtkStyleProvider->get_style_property
Style properties in the resource files are something like:
-GtkComboBox-appears-as-string
-GtkEntry-icon-prelight
Following the usual naming spec for extensions to CSS.
Carlos Garnacho [Fri, 18 Jun 2010 14:59:14 +0000 (16:59 +0200)]
GtkWidgetPath: Add methods to check topmost widget type.
Carlos Garnacho [Fri, 18 Jun 2010 14:58:16 +0000 (16:58 +0200)]
GtkStyleProvider: Add method to get widget style properties.
Carlos Garnacho [Fri, 18 Jun 2010 14:52:34 +0000 (16:52 +0200)]
GtkCssProvider: refactor out selector matching.
Carlos Garnacho [Fri, 18 Jun 2010 14:49:06 +0000 (16:49 +0200)]
GtkCssProvider: Ensure each scope has its parser config.
Carlos Garnacho [Fri, 18 Jun 2010 14:46:31 +0000 (16:46 +0200)]
GtkCssProvider: Parse boolean values.
Carlos Garnacho [Fri, 18 Jun 2010 14:42:48 +0000 (16:42 +0200)]
GtkCssProvider: Make additions to parse_value() less error prone.
Carlos Garnacho [Sun, 13 Jun 2010 15:33:47 +0000 (17:33 +0200)]
Fix compile warning.
Carlos Garnacho [Sun, 13 Jun 2010 15:31:22 +0000 (17:31 +0200)]
GtkStyleSet: Register GtkThemingEngine type.
This has been also hooked up to the CSS provider, which parses the "engine"
value to load the corresponding module.
Carlos Garnacho [Sun, 13 Jun 2010 15:26:18 +0000 (17:26 +0200)]
GtkWidget: Generate GtkWidgetPath on set_parent.
There's no need to wait for realize() to have the right widget style.
Carlos Garnacho [Sun, 13 Jun 2010 15:10:05 +0000 (17:10 +0200)]
GtkStyleSet: Remove default value for registered properties.
This should be handled at a higher level, a single default value for all
states isn't that useful...
Carlos Garnacho [Tue, 4 May 2010 19:01:35 +0000 (21:01 +0200)]
Fix compilation.
Carlos Garnacho [Tue, 4 May 2010 18:16:34 +0000 (20:16 +0200)]
GtkNotebook: Set GtkChildClassFlags for tabs.
Carlos Garnacho [Tue, 4 May 2010 17:58:07 +0000 (19:58 +0200)]
GtkCssProvider: Set default value if no state pseudo-class is specified.
Carlos Garnacho [Tue, 4 May 2010 17:55:19 +0000 (19:55 +0200)]
GtkStyleSet: Add gtk_style_set_set_default().
This will set the default value to a given property for all possible states,
such default value will only be used if the queried state doesn't have a
value itself.
Carlos Garnacho [Tue, 4 May 2010 17:46:58 +0000 (19:46 +0200)]
GtkStyleContext: Fix compiler warning.
Carlos Garnacho [Tue, 4 May 2010 17:38:39 +0000 (19:38 +0200)]
GtkStyle: Use new render methods underneath.
This commit should probably be squashed in the future, when GtkStyleContext
is on par with it, and GtkStyle is just a shallow object on top of
GtkStyleContext and calling it in the default implementation methods, so
all gtk_paint_* and gtk_draw_* would work.
Carlos Garnacho [Fri, 23 Apr 2010 00:36:47 +0000 (02:36 +0200)]
Add region details in gtk_widget_get_path().
Carlos Garnacho [Fri, 23 Apr 2010 00:33:01 +0000 (02:33 +0200)]
GtkStyleContext: fix typos in code.
The wrong list was being modified in gtk_style_context_set_child_class(),
and gtk_style_context_has_child_class() was checking for *flags != 0, not
flags != NULL.
Carlos Garnacho [Fri, 23 Apr 2010 00:31:57 +0000 (02:31 +0200)]
GtkStyleContext: Add gtk_style_context_list_child_classes().
Carlos Garnacho [Thu, 22 Apr 2010 23:31:44 +0000 (01:31 +0200)]
GtkCssProvider: Compare GtkWidgetPath regions with css.
Carlos Garnacho [Thu, 22 Apr 2010 23:28:24 +0000 (01:28 +0200)]
GtkCssProvider: fix parsing of consecutive pseudo-classes.
Now either of foo{}, foo:first-child{}, foo:nth-child(even):insensitive or
foo:active{} will be correctly parsed.
Carlos Garnacho [Thu, 22 Apr 2010 23:23:27 +0000 (01:23 +0200)]
GtkCssProvider: move to next selector element on match or child combinator.
Carlos Garnacho [Tue, 20 Apr 2010 23:51:46 +0000 (01:51 +0200)]
GtkCssProvider: free selector path on parse_rule().
Carlos Garnacho [Tue, 20 Apr 2010 23:48:01 +0000 (01:48 +0200)]
GtkCssProvider: Add named regions to selector path.
Carlos Garnacho [Tue, 20 Apr 2010 23:46:52 +0000 (01:46 +0200)]
GtkCssProvider: Parse named regions.
Carlos Garnacho [Tue, 20 Apr 2010 23:35:54 +0000 (01:35 +0200)]
GtkWidgetPath: Add API for named regions.
Carlos Garnacho [Tue, 20 Apr 2010 23:27:46 +0000 (01:27 +0200)]
Refurbish GtkWidgetPath API.
The foreach() function is now gone, there's now API to get
GTypes and names from the position in the path.
Carlos Garnacho [Tue, 20 Apr 2010 22:32:21 +0000 (00:32 +0200)]
Move GtkChildClassFlags to gtkenums.h.
Carlos Garnacho [Fri, 16 Apr 2010 01:02:42 +0000 (03:02 +0200)]
GtkCssProvider: Add support for child/descendant combinators.
Now, selectors like:
GtkWindow > GtkButton {}
GtkNotebook > GtkLabel {}
will represent a direct parent/child relation between both elements, while
GtkWindow GtkButton {}
GtkNotebook GtkLabel {}
will allow intermediate children between these.
Carlos Garnacho [Fri, 16 Apr 2010 00:59:36 +0000 (02:59 +0200)]
GtkCssProvider: Fix typo freeing SelectorElements.
Carlos Garnacho [Thu, 15 Apr 2010 23:44:50 +0000 (01:44 +0200)]
GtkCssProvider: Allow empty selector.
universal selector is implied, so things like this work:
:active {}
:insensitive{}
Carlos Garnacho [Thu, 15 Apr 2010 22:29:11 +0000 (00:29 +0200)]
GtkCssProvider: Allow '*' selectors.
These would match a single widget of any type.
Carlos Garnacho [Wed, 14 Apr 2010 21:36:48 +0000 (23:36 +0200)]
GtkCssProvider: Add state parsing.
Now state is now defined as a pseudoclass in the CSS format, selectors like:
GtkWidget:active { }
GtkButton:insensitive { }
GtkCalendar:prelight { } (also :hover is accepted)
...
define the style for the given state.
Carlos Garnacho [Sun, 11 Apr 2010 21:30:49 +0000 (23:30 +0200)]
GtkWidget: Create GtkCssProvider for user modifications.
~/.gtk-X.0.css is checked, and added as a style resource if available.
Carlos Garnacho [Sun, 11 Apr 2010 21:30:07 +0000 (23:30 +0200)]
GtkStyleProvider: Add defines for most common priorities.
Carlos Garnacho [Sun, 11 Apr 2010 21:03:25 +0000 (23:03 +0200)]
Added GtkCssProvider.
GtkCssProvider is a GtkStyleProvider implementation which is able to read
CSS-like input to style widgets.
At the moment, only the basic parser features are available.