]>
Pileus Git - ~andy/gtk/log
Carlos Garnacho [Fri, 19 Nov 2010 18:56:25 +0000 (19:56 +0100)]
Make "button" class depend on mode for GtkToggleButtons
Carlos Garnacho [Fri, 19 Nov 2010 18:20:12 +0000 (19:20 +0100)]
Fix checkbuttons theming in CSS so it's more similar to 2.x
Carlos Garnacho [Fri, 19 Nov 2010 18:19:42 +0000 (19:19 +0100)]
GtkCheckButton: Use GtkStyleContext for rendering.
Carlos Garnacho [Fri, 19 Nov 2010 18:18:20 +0000 (19:18 +0100)]
GtkThemingEngine: Make render_check() depend on border-style and border-color.
Carlos Garnacho [Fri, 19 Nov 2010 18:02:27 +0000 (19:02 +0100)]
GtkContainer: Also copy permanent container's classes on get_path_for_child()
This makes inheritance work for the simplest cases when style is defined
for classes.
Carlos Garnacho [Fri, 19 Nov 2010 17:59:49 +0000 (18:59 +0100)]
GtkWidgetPath: Make iter API deal with gints.
now gtk_widget_path_iter_* takes gints instead of guints, and also accept
numbers == -1 or > path_length for the path head.
Carlos Garnacho [Fri, 19 Nov 2010 17:58:19 +0000 (18:58 +0100)]
GtkWidgetPath: Make gtk_widget_path_prepend_type() return nothing.
It's senseless to always return 0
Carlos Garnacho [Fri, 19 Nov 2010 17:53:34 +0000 (18:53 +0100)]
GtkStyleContext: preserve state on save().
Carlos Garnacho [Fri, 29 Oct 2010 18:17:03 +0000 (14:17 -0400)]
GtkThemingEngine: Documents that engines must only use this API.
It was a bit unclear in the documentation, even if it was from the
API POV.
Matthias Clasen [Fri, 19 Nov 2010 04:45:42 +0000 (23:45 -0500)]
Add tests for matching
These tests try to decipher how specificity works for selectors.
Matthias Clasen [Fri, 19 Nov 2010 04:35:00 +0000 (23:35 -0500)]
Copy GtkWidgetPaths correctly
The code was forgetting to copy class information.
Matthias Clasen [Fri, 19 Nov 2010 00:18:09 +0000 (19:18 -0500)]
More css parsing tests
Matthias Clasen [Thu, 18 Nov 2010 23:36:08 +0000 (18:36 -0500)]
A little closer to css
Declarations are ;-separated, but there is no ; required after
the last declaration. We harmlessly accept either.
Javier Jardón [Thu, 18 Nov 2010 17:55:25 +0000 (18:55 +0100)]
docs: Refer to gtk_paint_*() instead draw_*() vfuncs in the migration guide
Matthias Clasen [Thu, 18 Nov 2010 07:00:53 +0000 (02:00 -0500)]
Some css parsing tests
Matthias Clasen [Thu, 18 Nov 2010 06:59:27 +0000 (01:59 -0500)]
Work harder at parsing import statements
Also, turn g_warning() into g_message() for now, so that tests
don't abort. Eventually, this needs to all go into GErrors.
Matthias Clasen [Thu, 18 Nov 2010 06:25:41 +0000 (01:25 -0500)]
Move import syntax closer to css
Css allows @import url ("foo.css") or @import "foo.css" or
@import url ('foo.css') but not @import url(foo.css) or @immport foo.css.
Matthias Clasen [Thu, 18 Nov 2010 03:29:39 +0000 (22:29 -0500)]
Some error reporting
When we take a GError argument, better use it.
Matthias Clasen [Thu, 18 Nov 2010 01:24:18 +0000 (20:24 -0500)]
Fix prototype of gtk_css_style_provider_load_from_data
GError arguments must be **.
Matthias Clasen [Wed, 17 Nov 2010 06:39:03 +0000 (01:39 -0500)]
Add an outline around menu popups
Matthias Clasen [Wed, 17 Nov 2010 06:38:40 +0000 (01:38 -0500)]
Transform the 'menu' detail string to the 'popup' class
Matthias Clasen [Wed, 17 Nov 2010 06:04:14 +0000 (01:04 -0500)]
Fix prelighting of inconsistent radio and check buttons
Matthias Clasen [Wed, 17 Nov 2010 05:44:36 +0000 (00:44 -0500)]
Fix the resize handle drawing
Matthias Clasen [Wed, 17 Nov 2010 05:21:21 +0000 (00:21 -0500)]
Handle float and uint style properties
These were giving errors in testgtk.
Matthias Clasen [Wed, 17 Nov 2010 04:09:32 +0000 (23:09 -0500)]
Remove debug output
Matthias Clasen [Wed, 17 Nov 2010 04:03:21 +0000 (23:03 -0500)]
Fix a typo
Matthias Clasen [Wed, 17 Nov 2010 04:02:59 +0000 (23:02 -0500)]
Make frames visible by default
Matthias Clasen [Wed, 17 Nov 2010 02:50:56 +0000 (21:50 -0500)]
Fix a memory leak
Matthias Clasen [Wed, 17 Nov 2010 02:50:04 +0000 (21:50 -0500)]
Translate detail strings for radio buttons
Carlos Garnacho [Wed, 17 Nov 2010 01:59:19 +0000 (02:59 +0100)]
GtkThemingEngine: remove unused code
Carlos Garnacho [Wed, 17 Nov 2010 01:56:49 +0000 (02:56 +0100)]
Fix compile warnings
Carlos Garnacho [Wed, 17 Nov 2010 01:42:27 +0000 (02:42 +0100)]
GtkStyleProvider: Pass a GParamSpec in get_style_property().
This is so we can know the owner type of the property, and matching
with the stored strings in GtkCssProvider is direct.
Carlos Garnacho [Wed, 17 Nov 2010 01:41:54 +0000 (02:41 +0100)]
GtkStyleContext: Also use screen providers for widget style properties.
Carlos Garnacho [Wed, 17 Nov 2010 01:40:21 +0000 (02:40 +0100)]
Handle menuitem detail string better.
Carlos Garnacho [Wed, 17 Nov 2010 01:39:17 +0000 (02:39 +0100)]
GtkSettings: install theme CSS with a lower priority.
This is so GtkSettings has an opportunity to modify theme colors.
Carlos Garnacho [Wed, 17 Nov 2010 01:38:31 +0000 (02:38 +0100)]
Add corners to GtkJunctionSides, defining sides as 2 corners.
Matthias Clasen [Tue, 16 Nov 2010 12:52:27 +0000 (07:52 -0500)]
Don't whine about expander-style missing
This check was lost in the GtkStyleContext porting.
Carlos Garnacho [Mon, 15 Nov 2010 22:28:53 +0000 (23:28 +0100)]
GtkCssProvider: theme notebooks.
Carlos Garnacho [Mon, 15 Nov 2010 22:28:06 +0000 (23:28 +0100)]
GtkThemingEngine: Use border settings on render_extension/frame_gap()
Carlos Garnacho [Mon, 15 Nov 2010 22:27:44 +0000 (23:27 +0100)]
GtkStyle: transform tabs' detail string.
Carlos Garnacho [Sun, 14 Nov 2010 18:47:09 +0000 (19:47 +0100)]
GtkThemingEngine: Do not use possible reserved word.
Carlos Garnacho [Sat, 13 Nov 2010 22:18:44 +0000 (23:18 +0100)]
testgtk: Try to locate the right file.
Carlos Garnacho [Sat, 13 Nov 2010 21:57:49 +0000 (22:57 +0100)]
Fix gtk_css_provider_get_named() docs.
Carlos Garnacho [Sat, 13 Nov 2010 21:36:22 +0000 (22:36 +0100)]
GtkSettings: Keep right refcount of the theme provider.
Carlos Garnacho [Sat, 13 Nov 2010 21:35:58 +0000 (22:35 +0100)]
GtkSettings: Ensure the theme CSS is loaded on startup.
Carlos Garnacho [Sat, 13 Nov 2010 21:34:30 +0000 (22:34 +0100)]
GtkCssProvider: Fix typo in gtk_css_provider_get_named()
provider was being redefined in the inner block, so the loaded
provider didn't get to be returned.
Carlos Garnacho [Sat, 13 Nov 2010 21:33:34 +0000 (22:33 +0100)]
Hardcode 3.0 version for style files and paths.
It's about time to start using the right paths.
Carlos Garnacho [Sat, 13 Nov 2010 20:19:41 +0000 (21:19 +0100)]
Make testgtk load CSS for custom styling.
Carlos Garnacho [Sat, 13 Nov 2010 20:13:13 +0000 (21:13 +0100)]
GtkCssProvider: Accept '%' in value strings.
Carlos Garnacho [Sat, 13 Nov 2010 18:54:37 +0000 (19:54 +0100)]
Do not initialize RC subsystem.
Carlos Garnacho [Sat, 13 Nov 2010 18:53:36 +0000 (19:53 +0100)]
GtkStyleProperties: Use GParamSpec for properties registration.
Carlos Garnacho [Sat, 13 Nov 2010 12:27:37 +0000 (13:27 +0100)]
GtkCssProvider: Docs fix for -gtk-gradient() syntax.
Carlos Garnacho [Sat, 13 Nov 2010 12:24:18 +0000 (13:24 +0100)]
Handle looping transition animations.
Carlos Garnacho [Sat, 13 Nov 2010 11:44:55 +0000 (12:44 +0100)]
GtkCssProvider: Handle better wrong enum/flag values.
Carlos Garnacho [Sat, 13 Nov 2010 11:36:24 +0000 (12:36 +0100)]
GtkCssProviders: Parse GTypeFlags based values.
Carlos Garnacho [Sat, 13 Nov 2010 02:55:21 +0000 (03:55 +0100)]
GtkCssProvider: Add initial unit parsing logic
At the moment only "px" are supported, and such is the default
value when no unit is specified.
Carlos Garnacho [Sat, 13 Nov 2010 01:30:53 +0000 (02:30 +0100)]
GtkCssProvider: Handle the "none" keyword to unset properties.
Carlos Garnacho [Sat, 13 Nov 2010 01:18:11 +0000 (02:18 +0100)]
GtkStyleContext: Resolve symbolic colors for widget style properties.
Carlos Garnacho [Sat, 13 Nov 2010 00:25:07 +0000 (01:25 +0100)]
GtkStyleProperties: Handle GdkColor types.
Just in case.
Carlos Garnacho [Sat, 13 Nov 2010 00:24:07 +0000 (01:24 +0100)]
GtkCssProvider: Also parse GdkColor values
This is necessary for widget style properties to work.
Carlos Garnacho [Fri, 12 Nov 2010 22:59:22 +0000 (23:59 +0100)]
GtkCssProvider: Add lighter/darker color functions.
These behave the same than in GtkStyle.
Carlos Garnacho [Fri, 12 Nov 2010 21:59:21 +0000 (22:59 +0100)]
GtkCssProvider: allow color names from rgb.txt when parsing colors.
Carlos Garnacho [Fri, 12 Nov 2010 21:48:29 +0000 (22:48 +0100)]
GtkStyleContext: Add #define's for the default properties.
Carlos Garnacho [Fri, 12 Nov 2010 20:46:55 +0000 (21:46 +0100)]
Document missing GtkStateType values.
The documentation has also moved to gtkenums.h.
Carlos Garnacho [Fri, 12 Nov 2010 20:44:48 +0000 (21:44 +0100)]
Remove GTK_STATE_LAST.
It didn't turn out to be that useful, nor widely used.
Carlos Garnacho [Fri, 12 Nov 2010 20:43:13 +0000 (21:43 +0100)]
Use the correct cairo-gobject.h include path.
Carlos Garnacho [Fri, 12 Nov 2010 18:31:04 +0000 (19:31 +0100)]
Add gtk_render_icon_pixbuf() function to docs.
Carlos Garnacho [Fri, 12 Nov 2010 18:28:51 +0000 (19:28 +0100)]
Add GtkStyleContext migration docs.
Carlos Garnacho [Tue, 9 Nov 2010 20:48:49 +0000 (21:48 +0100)]
GtkThemingEngine: Document missing class vmethods.
Carlos Garnacho [Tue, 9 Nov 2010 20:33:10 +0000 (21:33 +0100)]
GtkButton: Use GtkStyleContext for rendering.
Carlos Garnacho [Tue, 9 Nov 2010 20:26:52 +0000 (21:26 +0100)]
GtkWindow: Use GtkStyleContext for rendering.
Carlos Garnacho [Tue, 9 Nov 2010 20:24:41 +0000 (21:24 +0100)]
GtkStyleContext: Add gtk_style_context_set_background().
This function replaces gtk_style_set_background().
Carlos Garnacho [Tue, 9 Nov 2010 17:31:39 +0000 (18:31 +0100)]
GtkWidget: Update pango context from style context's font description.
Carlos Garnacho [Tue, 9 Nov 2010 17:28:38 +0000 (18:28 +0100)]
GtkWidget: Ensure the style context always has an screen.
Things like font settings depend on the screen, and widgets
like GtkTextView trigger queries on widgets without screen
when the parent window is being destroyed.
Carlos Garnacho [Tue, 9 Nov 2010 17:27:36 +0000 (18:27 +0100)]
Add CSS class defines for toolbars and docks.
Carlos Garnacho [Tue, 9 Nov 2010 17:27:13 +0000 (18:27 +0100)]
GtkStyle: translate a few more detail strings.
Carlos Garnacho [Tue, 9 Nov 2010 17:26:39 +0000 (18:26 +0100)]
GtkCssProvider: theme progressbars in default CSS.
Carlos Garnacho [Mon, 8 Nov 2010 19:17:17 +0000 (20:17 +0100)]
GtkThemingEngine: ensure 1px wide frames aren't painted between pixels.
Carlos Garnacho [Mon, 8 Nov 2010 19:15:19 +0000 (20:15 +0100)]
GtkThemingEngine: Use square cap for solid frames.
Carlos Garnacho [Mon, 8 Nov 2010 19:12:15 +0000 (20:12 +0100)]
GtkThemingEngine: ensure that background isn't rendered past the frame boundaries.
Carlos Garnacho [Mon, 8 Nov 2010 11:48:29 +0000 (12:48 +0100)]
GtkThemingEngine: Get rid of obsolete code for tooltips.
Carlos Garnacho [Mon, 8 Nov 2010 11:39:28 +0000 (12:39 +0100)]
GtkStyleContext: Fix check for GtkIconSize in render_icon_pixbuf().
Carlos Garnacho [Mon, 8 Nov 2010 01:53:12 +0000 (02:53 +0100)]
GtkStyleContext: restore widget state too in restore().
Carlos Garnacho [Mon, 8 Nov 2010 01:51:53 +0000 (02:51 +0100)]
GtkCssProvider: Do not miss the last class name in concatenated classes.
Selectors like .menu.check or .entry.progressbar were being misparsed
and attributed to .menu and .entry.
Carlos Garnacho [Mon, 8 Nov 2010 01:30:39 +0000 (02:30 +0100)]
GtkStyle: transform window background detail string.
Carlos Garnacho [Mon, 8 Nov 2010 01:15:06 +0000 (02:15 +0100)]
GtkStyle: Transform menubar detail string.
Carlos Garnacho [Mon, 8 Nov 2010 00:52:25 +0000 (01:52 +0100)]
GtkStyle: Transform menu accelerators string
Carlos Garnacho [Mon, 8 Nov 2010 00:30:02 +0000 (01:30 +0100)]
GtkStyleContext: Define some more class names.
Carlos Garnacho [Sat, 6 Nov 2010 11:40:15 +0000 (12:40 +0100)]
Remove GTK_REGION_DEFAULT
GTK_STYLE_CLASS_DEFAULT is preferred to match a default area, as
it doesn't make sense to have a per-region default.
Carlos Garnacho [Sat, 6 Nov 2010 11:38:52 +0000 (12:38 +0100)]
GtkThemingEngine: Use GtkSymbolicColor for shades.
Carlos Garnacho [Sat, 6 Nov 2010 11:37:46 +0000 (12:37 +0100)]
GtkThemingEngine: Do not require a default value when registering properties
NULL should work for 0 for int/double/enum/... types and NULL for
pointer types, this should be sane enough to not require a default
value.
Carlos Garnacho [Sat, 6 Nov 2010 11:36:05 +0000 (12:36 +0100)]
GtkSymbolicColor: Only require styleproperties when resolving named colors.
It is not necessary for resolving colors based on literals,
so be a bit less strict here.
Carlos Garnacho [Sat, 6 Nov 2010 11:35:20 +0000 (12:35 +0100)]
GtkSymbolicColor: convert to/from hls when shading.
This makes shading equal to GtkStyle's.
Carlos Garnacho [Sat, 6 Nov 2010 11:33:52 +0000 (12:33 +0100)]
GtkSymbolicColor: Do not clamp shade/mix/alpha factors.
Carlos Garnacho [Wed, 3 Nov 2010 20:14:08 +0000 (21:14 +0100)]
GtkStyleContext: Add gtk_render_icon_pixbuf()
This function is similar to gtk_style_render_icon(), which is now
implemented on top of this one.
Carlos Garnacho [Wed, 3 Nov 2010 20:12:57 +0000 (21:12 +0100)]
GtkThemingEngine: Fix compile warning.
Carlos Garnacho [Wed, 3 Nov 2010 20:10:06 +0000 (21:10 +0100)]
Fix compile warning
Carlos Garnacho [Wed, 3 Nov 2010 18:27:18 +0000 (19:27 +0100)]
GtkStatusIcon: update to use gtk_widget_override_symbolic_color().
Carlos Garnacho [Wed, 3 Nov 2010 11:21:04 +0000 (12:21 +0100)]
GtkWidget: Add new set of methods to override style information.
gtk_widget_override_*() deprecates gtk_widget_modify_*(). There are
only functions to modify fg/bg/font/symbolic color, If anything more
fancy/complex is needed. There is the possibility of adding a
GtkStyleProvider yourself.
Carlos Garnacho [Wed, 3 Nov 2010 11:18:48 +0000 (12:18 +0100)]
GtkStyle: Listen to context changes.
This way the GtkStyle is updated to the latest style info, actually
emitting ::style-set must be performed after invalidating the style
context.