]>
Pileus Git - ~andy/gtk/log
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.
Carlos Garnacho [Sun, 11 Apr 2010 18:30:24 +0000 (20:30 +0200)]
Add GtkWidgetPath parameter to gtk_style_provider_get_style().
Carlos Garnacho [Sun, 11 Apr 2010 18:26:49 +0000 (20:26 +0200)]
GtkStyleSet: Add method to lookup property default settings.
Carlos Garnacho [Sun, 11 Apr 2010 17:52:58 +0000 (19:52 +0200)]
GtkStyleSet: Make property registration take const GValues.
Carlos Garnacho [Sun, 11 Apr 2010 17:46:57 +0000 (19:46 +0200)]
GtkStyleContext: allow late set_path() calls.
Now the properties will only be regenerated whenever there's a GtkWidgetPath
to query about.
Carlos Garnacho [Sat, 27 Mar 2010 20:30:30 +0000 (21:30 +0100)]
GtkStyleContext: Fix compiler warning.
Carlos Garnacho [Sat, 27 Mar 2010 20:29:55 +0000 (21:29 +0100)]
GtkStyleContext: Fix typo.
Carlos Garnacho [Sat, 27 Mar 2010 20:28:44 +0000 (21:28 +0100)]
GtkStyleContext: Add gtk_render_handle().
Carlos Garnacho [Sat, 27 Mar 2010 20:27:52 +0000 (21:27 +0100)]
GtkThemingEngine: Add vmethod to render a handle area.
Carlos Garnacho [Sat, 27 Mar 2010 20:26:27 +0000 (21:26 +0100)]
GtkStyleContext: Add gtk_render_extension().
Carlos Garnacho [Sat, 27 Mar 2010 20:25:33 +0000 (21:25 +0100)]
GtkThemingEngine: Add vmethod to render an extension.
Carlos Garnacho [Sat, 27 Mar 2010 20:24:22 +0000 (21:24 +0100)]
GtkStyleContext: Add gtk_render_frame_gap().
Carlos Garnacho [Sat, 27 Mar 2010 20:23:13 +0000 (21:23 +0100)]
GtkThemingEngine: Add vmethod to render frames with a gap.
Carlos Garnacho [Sat, 27 Mar 2010 20:21:34 +0000 (21:21 +0100)]
GtkStyleContext: Add gtk_render_slider().
Carlos Garnacho [Sat, 27 Mar 2010 20:20:21 +0000 (21:20 +0100)]
GtkThemingEngine: Add vmethod to render sliders.
Carlos Garnacho [Sat, 27 Mar 2010 20:18:24 +0000 (21:18 +0100)]
GtkStyleContext: Add gtk_render_line().
Carlos Garnacho [Sat, 27 Mar 2010 20:17:22 +0000 (21:17 +0100)]
GtkThemingEngine: Add vmethod to render lines.
Carlos Garnacho [Sat, 27 Mar 2010 19:22:44 +0000 (20:22 +0100)]
GtkStyleContext: Add gtk_render_layout().
Carlos Garnacho [Sat, 27 Mar 2010 19:21:55 +0000 (20:21 +0100)]
GtkThemingEngine: Add vmethod to render layouts.
Carlos Garnacho [Sat, 27 Mar 2010 19:19:53 +0000 (20:19 +0100)]
GtkStyleContext: Add gtk_render_focus().
Carlos Garnacho [Sat, 27 Mar 2010 19:18:38 +0000 (20:18 +0100)]
GtkThemingEngine: Add vmethod to render focus indicator.
Carlos Garnacho [Sat, 27 Mar 2010 19:16:44 +0000 (20:16 +0100)]
GtkStyleContext: Add gtk_render_expander().
Carlos Garnacho [Sat, 27 Mar 2010 19:15:45 +0000 (20:15 +0100)]
GtkThemingEngine: Add vmethod to render expanders.
Carlos Garnacho [Sat, 27 Mar 2010 19:12:46 +0000 (20:12 +0100)]
GtkStyleContext: Add gtk_render_frame().
Carlos Garnacho [Sat, 27 Mar 2010 19:11:31 +0000 (20:11 +0100)]
GtkThemingEngine: Add vmethod to render frames.
Carlos Garnacho [Sat, 27 Mar 2010 19:08:23 +0000 (20:08 +0100)]
GtkStyleContext: Add gtk_render_background().
Carlos Garnacho [Sat, 27 Mar 2010 19:06:44 +0000 (20:06 +0100)]
GtkThemingEngine: Add vmethod to render backgrounds.
Carlos Garnacho [Sat, 27 Mar 2010 18:57:54 +0000 (19:57 +0100)]
GtkStyleContext: Add gtk_render_arrow().
Carlos Garnacho [Sat, 27 Mar 2010 17:50:39 +0000 (18:50 +0100)]
GtkThemingEngine: Add vmethod to render arrows.
Carlos Garnacho [Sat, 20 Mar 2010 16:40:21 +0000 (17:40 +0100)]
GtkStyleContext: Add gtk_render_option().
Carlos Garnacho [Sat, 20 Mar 2010 16:37:34 +0000 (17:37 +0100)]
GtkThemingEngine: Add vmethod to render radio buttons.
Carlos Garnacho [Sat, 20 Mar 2010 13:26:11 +0000 (14:26 +0100)]
GtkStyleContext: Add gtk_render_check().
Carlos Garnacho [Sat, 20 Mar 2010 13:17:40 +0000 (14:17 +0100)]
GtkThemingEngine: Add vmethod to render checkboxes.
Carlos Garnacho [Sat, 20 Mar 2010 13:13:50 +0000 (14:13 +0100)]
GtkThemingEngine: Add accessors to style classes.
Carlos Garnacho [Sat, 20 Mar 2010 12:30:05 +0000 (13:30 +0100)]
GtkWidget: Add widget path to style context.
Carlos Garnacho [Sat, 20 Mar 2010 12:07:41 +0000 (13:07 +0100)]
GtkStyleContext: Add child style classes.
Child style classes are like style classes, but with additional positional
information. This would be usually set by the parent container.
Carlos Garnacho [Sat, 20 Mar 2010 12:02:20 +0000 (13:02 +0100)]
GtkStyleContext: Add style classes.
Style classes are the replacement of detail strings.
Carlos Garnacho [Sat, 13 Mar 2010 19:08:06 +0000 (20:08 +0100)]
GtkStyleContext: Relate to a GtkThemingEngine.
Carlos Garnacho [Sat, 13 Mar 2010 17:35:35 +0000 (18:35 +0100)]
GtkThemingEngine: Add module loading capabilities.
Carlos Garnacho [Sat, 13 Mar 2010 10:23:23 +0000 (11:23 +0100)]
Add GtkThemingEngine.
GtkThemingEngine will be the theming engines base class, with default
implementations for all paint functions, and readonly access to the
related GtkStyleContext data.
Carlos Garnacho [Sat, 13 Mar 2010 10:15:42 +0000 (11:15 +0100)]
GtkStyleContext: Add gtk_style_context_[gs]et_path()
This relates a GtkStyleContext with a widget path, so
all style querying would happen based on it.
Carlos Garnacho [Fri, 12 Mar 2010 18:02:33 +0000 (19:02 +0100)]
GtkWidget: Add gtk_widget_get_path().
This function composes and returns a GtkWidgetPath representing
the passed widget.
Carlos Garnacho [Fri, 12 Mar 2010 17:55:54 +0000 (18:55 +0100)]
Add GtkWidgetPath.
GtkWidgetPath represents a widget path. It will mainly used by theming
engines to know detail about the widget hierarchy without actually
accessing the widget.
Carlos Garnacho [Wed, 10 Mar 2010 00:02:46 +0000 (01:02 +0100)]
GtkStyleContext: Add getters and setter for state.
Carlos Garnacho [Tue, 9 Mar 2010 23:55:48 +0000 (00:55 +0100)]
GtkWidget: Add gtk_widget_get_style_context().
There will be one GtkStyleContext per widget, at the moment its
lifetime is tied to the widget's, but it could be narrowed down
to GTK_WIDGET_REALIZED.
Carlos Garnacho [Tue, 9 Mar 2010 23:52:57 +0000 (00:52 +0100)]
Add GtkStateFlags.
It basically represents GtkStateType as a flag set.
Carlos Garnacho [Tue, 9 Mar 2010 23:28:18 +0000 (00:28 +0100)]
GtkStateType: Add inconsistent and focused state.
Carlos Garnacho [Sun, 7 Mar 2010 18:58:35 +0000 (19:58 +0100)]
GtkStyleContext: Fix typo.
Carlos Garnacho [Sun, 7 Mar 2010 18:57:53 +0000 (19:57 +0100)]
GtkStyleSet: Add method to register border property.
Carlos Garnacho [Sun, 7 Mar 2010 18:07:27 +0000 (19:07 +0100)]
GtkStyleSet: Add method to register font properties.
Carlos Garnacho [Sun, 7 Mar 2010 00:22:38 +0000 (01:22 +0100)]
GtkStyleContext: Add methods to query composed style.
Carlos Garnacho [Sat, 6 Mar 2010 18:52:18 +0000 (19:52 +0100)]
GtkStyleSet: Return default value if value is not set.
Carlos Garnacho [Fri, 5 Mar 2010 02:02:59 +0000 (03:02 +0100)]
GtkStyleSet: Add valist and varargs getters/setters.
Carlos Garnacho [Fri, 5 Mar 2010 01:06:53 +0000 (02:06 +0100)]
GtkStyleSet: Use property GQuark as store keys.
Carlos Garnacho [Fri, 5 Mar 2010 00:45:47 +0000 (01:45 +0100)]
GtkStyleSet: Add style property registration funcs.
Also some properties have been added as a default set.
Carlos Garnacho [Thu, 4 Mar 2010 22:00:30 +0000 (23:00 +0100)]
Add GtkStyleContext.
GtkStyleContext will conglomerate the information of several
GtkStyleProviders for widgets and theme engines to query it.
Carlos Garnacho [Thu, 4 Mar 2010 21:58:28 +0000 (22:58 +0100)]
gtkstyleset.h: Add declaration for gtk_style_set_merge().
Carlos Garnacho [Thu, 4 Mar 2010 21:51:56 +0000 (22:51 +0100)]
GtkStyleSet: Implement GtkStyleProvider.
As simple as it can get.
Carlos Garnacho [Thu, 4 Mar 2010 20:05:03 +0000 (21:05 +0100)]
Add GtkStyleProvider, an interface to provide style details.
The get_style() function isn't final yet, further parameters
should be added to query details based on the widget hierarchy,
name, etc.
Carlos Garnacho [Thu, 4 Mar 2010 19:59:18 +0000 (20:59 +0100)]
Add GtkStyleSet, a store of style properties.
At the moment there's only basic API for adding,
removing and clearing a property. There's also
API to merge 2 GtkStyleSets.
Carlos Garnacho [Thu, 4 Mar 2010 19:58:18 +0000 (20:58 +0100)]
Add GTK_STATE_LAST to mark the end of GtkState enum.
Yaron Shahrabani [Sat, 4 Dec 2010 13:28:27 +0000 (15:28 +0200)]
Updated Hebrew translation
Matthias Clasen [Sat, 4 Dec 2010 04:50:58 +0000 (23:50 -0500)]
Another attempt to fix the gdk symbol list
Matthias Clasen [Fri, 3 Dec 2010 20:41:37 +0000 (15:41 -0500)]
Update sections
Benjamin Otte [Fri, 3 Dec 2010 15:14:31 +0000 (16:14 +0100)]
API: gdk: Rename GdkWindowObjectClass to GdkWindowClass
Be consistent in the naming of objects.
Benjamin Otte [Fri, 3 Dec 2010 15:10:46 +0000 (16:10 +0100)]
API: Rename GdkWindowClass to GdkWindowWindowClass
We argued replacing GdkWindowClass with a input_only boolean, but this
is not doable in an API-stable way, so I decided against it.