]> Pileus Git - ~andy/gtk/log
~andy/gtk
13 years agoMake "button" class depend on mode for GtkToggleButtons
Carlos Garnacho [Fri, 19 Nov 2010 18:56:25 +0000 (19:56 +0100)]
Make "button" class depend on mode for GtkToggleButtons

13 years agoFix checkbuttons theming in CSS so it's more similar to 2.x
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

13 years agoGtkCheckButton: Use GtkStyleContext for rendering.
Carlos Garnacho [Fri, 19 Nov 2010 18:19:42 +0000 (19:19 +0100)]
GtkCheckButton: Use GtkStyleContext for rendering.

13 years agoGtkThemingEngine: Make render_check() depend on border-style and border-color.
Carlos Garnacho [Fri, 19 Nov 2010 18:18:20 +0000 (19:18 +0100)]
GtkThemingEngine: Make render_check() depend on border-style and border-color.

13 years agoGtkContainer: Also copy permanent container's classes on get_path_for_child()
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.

13 years agoGtkWidgetPath: Make iter API deal with gints.
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.

13 years agoGtkWidgetPath: Make gtk_widget_path_prepend_type() return nothing.
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

13 years agoGtkStyleContext: preserve state on save().
Carlos Garnacho [Fri, 19 Nov 2010 17:53:34 +0000 (18:53 +0100)]
GtkStyleContext: preserve state on save().

13 years agoGtkThemingEngine: Documents that engines must only use this API.
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.

13 years agoAdd tests for matching
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.

13 years agoCopy GtkWidgetPaths correctly
Matthias Clasen [Fri, 19 Nov 2010 04:35:00 +0000 (23:35 -0500)]
Copy GtkWidgetPaths correctly

The code was forgetting to copy class information.

13 years agoMore css parsing tests
Matthias Clasen [Fri, 19 Nov 2010 00:18:09 +0000 (19:18 -0500)]
More css parsing tests

13 years agoA little closer to css
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.

13 years agodocs: Refer to gtk_paint_*() instead draw_*() vfuncs in the migration guide
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

13 years agoSome css parsing tests
Matthias Clasen [Thu, 18 Nov 2010 07:00:53 +0000 (02:00 -0500)]
Some css parsing tests

13 years agoWork harder at parsing import statements
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.

13 years agoMove import syntax closer to css
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.

13 years agoSome error reporting
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.

13 years agoFix prototype of gtk_css_style_provider_load_from_data
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 **.

13 years agoAdd an outline around menu popups
Matthias Clasen [Wed, 17 Nov 2010 06:39:03 +0000 (01:39 -0500)]
Add an outline around menu popups

13 years agoTransform the 'menu' detail string to the 'popup' class
Matthias Clasen [Wed, 17 Nov 2010 06:38:40 +0000 (01:38 -0500)]
Transform the 'menu' detail string to the 'popup' class

13 years agoFix prelighting of inconsistent radio and check buttons
Matthias Clasen [Wed, 17 Nov 2010 06:04:14 +0000 (01:04 -0500)]
Fix prelighting of inconsistent radio and check buttons

13 years agoFix the resize handle drawing
Matthias Clasen [Wed, 17 Nov 2010 05:44:36 +0000 (00:44 -0500)]
Fix the resize handle drawing

13 years agoHandle float and uint style properties
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.

13 years agoRemove debug output
Matthias Clasen [Wed, 17 Nov 2010 04:09:32 +0000 (23:09 -0500)]
Remove debug output

13 years agoFix a typo
Matthias Clasen [Wed, 17 Nov 2010 04:03:21 +0000 (23:03 -0500)]
Fix a typo

13 years agoMake frames visible by default
Matthias Clasen [Wed, 17 Nov 2010 04:02:59 +0000 (23:02 -0500)]
Make frames visible by default

13 years agoFix a memory leak
Matthias Clasen [Wed, 17 Nov 2010 02:50:56 +0000 (21:50 -0500)]
Fix a memory leak

13 years agoTranslate detail strings for radio buttons
Matthias Clasen [Wed, 17 Nov 2010 02:50:04 +0000 (21:50 -0500)]
Translate detail strings for radio buttons

13 years agoGtkThemingEngine: remove unused code
Carlos Garnacho [Wed, 17 Nov 2010 01:59:19 +0000 (02:59 +0100)]
GtkThemingEngine: remove unused code

13 years agoFix compile warnings
Carlos Garnacho [Wed, 17 Nov 2010 01:56:49 +0000 (02:56 +0100)]
Fix compile warnings

13 years agoGtkStyleProvider: Pass a GParamSpec in get_style_property().
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.

13 years agoGtkStyleContext: Also use screen providers for widget style properties.
Carlos Garnacho [Wed, 17 Nov 2010 01:41:54 +0000 (02:41 +0100)]
GtkStyleContext: Also use screen providers for widget style properties.

13 years agoHandle menuitem detail string better.
Carlos Garnacho [Wed, 17 Nov 2010 01:40:21 +0000 (02:40 +0100)]
Handle menuitem detail string better.

13 years agoGtkSettings: install theme CSS with a lower priority.
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.

13 years agoAdd corners to GtkJunctionSides, defining sides as 2 corners.
Carlos Garnacho [Wed, 17 Nov 2010 01:38:31 +0000 (02:38 +0100)]
Add corners to GtkJunctionSides, defining sides as 2 corners.

13 years agoDon't whine about expander-style missing
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.

13 years agoGtkCssProvider: theme notebooks.
Carlos Garnacho [Mon, 15 Nov 2010 22:28:53 +0000 (23:28 +0100)]
GtkCssProvider: theme notebooks.

13 years agoGtkThemingEngine: Use border settings on render_extension/frame_gap()
Carlos Garnacho [Mon, 15 Nov 2010 22:28:06 +0000 (23:28 +0100)]
GtkThemingEngine: Use border settings on render_extension/frame_gap()

13 years agoGtkStyle: transform tabs' detail string.
Carlos Garnacho [Mon, 15 Nov 2010 22:27:44 +0000 (23:27 +0100)]
GtkStyle: transform tabs' detail string.

13 years agoGtkThemingEngine: Do not use possible reserved word.
Carlos Garnacho [Sun, 14 Nov 2010 18:47:09 +0000 (19:47 +0100)]
GtkThemingEngine: Do not use possible reserved word.

13 years agotestgtk: Try to locate the right file.
Carlos Garnacho [Sat, 13 Nov 2010 22:18:44 +0000 (23:18 +0100)]
testgtk: Try to locate the right file.

13 years agoFix gtk_css_provider_get_named() docs.
Carlos Garnacho [Sat, 13 Nov 2010 21:57:49 +0000 (22:57 +0100)]
Fix gtk_css_provider_get_named() docs.

13 years agoGtkSettings: Keep right refcount of the theme provider.
Carlos Garnacho [Sat, 13 Nov 2010 21:36:22 +0000 (22:36 +0100)]
GtkSettings: Keep right refcount of the theme provider.

13 years agoGtkSettings: Ensure the theme CSS is loaded on startup.
Carlos Garnacho [Sat, 13 Nov 2010 21:35:58 +0000 (22:35 +0100)]
GtkSettings: Ensure the theme CSS is loaded on startup.

13 years agoGtkCssProvider: Fix typo in gtk_css_provider_get_named()
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.

13 years agoHardcode 3.0 version for style files and paths.
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.

13 years agoMake testgtk load CSS for custom styling.
Carlos Garnacho [Sat, 13 Nov 2010 20:19:41 +0000 (21:19 +0100)]
Make testgtk load CSS for custom styling.

13 years agoGtkCssProvider: Accept '%' in value strings.
Carlos Garnacho [Sat, 13 Nov 2010 20:13:13 +0000 (21:13 +0100)]
GtkCssProvider: Accept '%' in value strings.

13 years agoDo not initialize RC subsystem.
Carlos Garnacho [Sat, 13 Nov 2010 18:54:37 +0000 (19:54 +0100)]
Do not initialize RC subsystem.

13 years agoGtkStyleProperties: Use GParamSpec for properties registration.
Carlos Garnacho [Sat, 13 Nov 2010 18:53:36 +0000 (19:53 +0100)]
GtkStyleProperties: Use GParamSpec for properties registration.

13 years agoGtkCssProvider: Docs fix for -gtk-gradient() syntax.
Carlos Garnacho [Sat, 13 Nov 2010 12:27:37 +0000 (13:27 +0100)]
GtkCssProvider: Docs fix for -gtk-gradient() syntax.

13 years agoHandle looping transition animations.
Carlos Garnacho [Sat, 13 Nov 2010 12:24:18 +0000 (13:24 +0100)]
Handle looping transition animations.

13 years agoGtkCssProvider: Handle better wrong enum/flag values.
Carlos Garnacho [Sat, 13 Nov 2010 11:44:55 +0000 (12:44 +0100)]
GtkCssProvider: Handle better wrong enum/flag values.

13 years agoGtkCssProviders: Parse GTypeFlags based values.
Carlos Garnacho [Sat, 13 Nov 2010 11:36:24 +0000 (12:36 +0100)]
GtkCssProviders: Parse GTypeFlags based values.

13 years agoGtkCssProvider: Add initial unit parsing logic
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.

13 years agoGtkCssProvider: Handle the "none" keyword to unset properties.
Carlos Garnacho [Sat, 13 Nov 2010 01:30:53 +0000 (02:30 +0100)]
GtkCssProvider: Handle the "none" keyword to unset properties.

13 years agoGtkStyleContext: Resolve symbolic colors for widget style properties.
Carlos Garnacho [Sat, 13 Nov 2010 01:18:11 +0000 (02:18 +0100)]
GtkStyleContext: Resolve symbolic colors for widget style properties.

13 years agoGtkStyleProperties: Handle GdkColor types.
Carlos Garnacho [Sat, 13 Nov 2010 00:25:07 +0000 (01:25 +0100)]
GtkStyleProperties: Handle GdkColor types.

Just in case.

13 years agoGtkCssProvider: Also parse GdkColor values
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.

13 years agoGtkCssProvider: Add lighter/darker color functions.
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.

13 years agoGtkCssProvider: allow color names from rgb.txt when parsing colors.
Carlos Garnacho [Fri, 12 Nov 2010 21:59:21 +0000 (22:59 +0100)]
GtkCssProvider: allow color names from rgb.txt when parsing colors.

13 years agoGtkStyleContext: Add #define's for the default properties.
Carlos Garnacho [Fri, 12 Nov 2010 21:48:29 +0000 (22:48 +0100)]
GtkStyleContext: Add #define's for the default properties.

13 years agoDocument missing GtkStateType values.
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.

13 years agoRemove GTK_STATE_LAST.
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.

13 years agoUse the correct cairo-gobject.h include path.
Carlos Garnacho [Fri, 12 Nov 2010 20:43:13 +0000 (21:43 +0100)]
Use the correct cairo-gobject.h include path.

13 years agoAdd gtk_render_icon_pixbuf() function to docs.
Carlos Garnacho [Fri, 12 Nov 2010 18:31:04 +0000 (19:31 +0100)]
Add gtk_render_icon_pixbuf() function to docs.

13 years agoAdd GtkStyleContext migration docs.
Carlos Garnacho [Fri, 12 Nov 2010 18:28:51 +0000 (19:28 +0100)]
Add GtkStyleContext migration docs.

13 years agoGtkThemingEngine: Document missing class vmethods.
Carlos Garnacho [Tue, 9 Nov 2010 20:48:49 +0000 (21:48 +0100)]
GtkThemingEngine: Document missing class vmethods.

13 years agoGtkButton: Use GtkStyleContext for rendering.
Carlos Garnacho [Tue, 9 Nov 2010 20:33:10 +0000 (21:33 +0100)]
GtkButton: Use GtkStyleContext for rendering.

13 years agoGtkWindow: Use GtkStyleContext for rendering.
Carlos Garnacho [Tue, 9 Nov 2010 20:26:52 +0000 (21:26 +0100)]
GtkWindow: Use GtkStyleContext for rendering.

13 years agoGtkStyleContext: Add gtk_style_context_set_background().
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().

13 years agoGtkWidget: Update pango context from style context's font description.
Carlos Garnacho [Tue, 9 Nov 2010 17:31:39 +0000 (18:31 +0100)]
GtkWidget: Update pango context from style context's font description.

13 years agoGtkWidget: Ensure the style context always has an screen.
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.

13 years agoAdd CSS class defines for toolbars and docks.
Carlos Garnacho [Tue, 9 Nov 2010 17:27:36 +0000 (18:27 +0100)]
Add CSS class defines for toolbars and docks.

13 years agoGtkStyle: translate a few more detail strings.
Carlos Garnacho [Tue, 9 Nov 2010 17:27:13 +0000 (18:27 +0100)]
GtkStyle: translate a few more detail strings.

13 years agoGtkCssProvider: theme progressbars in default CSS.
Carlos Garnacho [Tue, 9 Nov 2010 17:26:39 +0000 (18:26 +0100)]
GtkCssProvider: theme progressbars in default CSS.

13 years agoGtkThemingEngine: ensure 1px wide frames aren't painted between pixels.
Carlos Garnacho [Mon, 8 Nov 2010 19:17:17 +0000 (20:17 +0100)]
GtkThemingEngine: ensure 1px wide frames aren't painted between pixels.

13 years agoGtkThemingEngine: Use square cap for solid frames.
Carlos Garnacho [Mon, 8 Nov 2010 19:15:19 +0000 (20:15 +0100)]
GtkThemingEngine: Use square cap for solid frames.

13 years agoGtkThemingEngine: ensure that background isn't rendered past the frame boundaries.
Carlos Garnacho [Mon, 8 Nov 2010 19:12:15 +0000 (20:12 +0100)]
GtkThemingEngine: ensure that background isn't rendered past the frame boundaries.

13 years agoGtkThemingEngine: Get rid of obsolete code for tooltips.
Carlos Garnacho [Mon, 8 Nov 2010 11:48:29 +0000 (12:48 +0100)]
GtkThemingEngine: Get rid of obsolete code for tooltips.

13 years agoGtkStyleContext: Fix check for GtkIconSize in render_icon_pixbuf().
Carlos Garnacho [Mon, 8 Nov 2010 11:39:28 +0000 (12:39 +0100)]
GtkStyleContext: Fix check for GtkIconSize in render_icon_pixbuf().

13 years agoGtkStyleContext: restore widget state too in restore().
Carlos Garnacho [Mon, 8 Nov 2010 01:53:12 +0000 (02:53 +0100)]
GtkStyleContext: restore widget state too in restore().

13 years agoGtkCssProvider: Do not miss the last class name in concatenated classes.
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.

13 years agoGtkStyle: transform window background detail string.
Carlos Garnacho [Mon, 8 Nov 2010 01:30:39 +0000 (02:30 +0100)]
GtkStyle: transform window background detail string.

13 years agoGtkStyle: Transform menubar detail string.
Carlos Garnacho [Mon, 8 Nov 2010 01:15:06 +0000 (02:15 +0100)]
GtkStyle: Transform menubar detail string.

13 years agoGtkStyle: Transform menu accelerators string
Carlos Garnacho [Mon, 8 Nov 2010 00:52:25 +0000 (01:52 +0100)]
GtkStyle: Transform menu accelerators string

13 years agoGtkStyleContext: Define some more class names.
Carlos Garnacho [Mon, 8 Nov 2010 00:30:02 +0000 (01:30 +0100)]
GtkStyleContext: Define some more class names.

13 years agoRemove GTK_REGION_DEFAULT
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.

13 years agoGtkThemingEngine: Use GtkSymbolicColor for shades.
Carlos Garnacho [Sat, 6 Nov 2010 11:38:52 +0000 (12:38 +0100)]
GtkThemingEngine: Use GtkSymbolicColor for shades.

13 years agoGtkThemingEngine: Do not require a default value when registering properties
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.

13 years agoGtkSymbolicColor: Only require styleproperties when resolving named colors.
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.

13 years agoGtkSymbolicColor: convert to/from hls when shading.
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.

13 years agoGtkSymbolicColor: Do not clamp shade/mix/alpha factors.
Carlos Garnacho [Sat, 6 Nov 2010 11:33:52 +0000 (12:33 +0100)]
GtkSymbolicColor: Do not clamp shade/mix/alpha factors.

13 years agoGtkStyleContext: Add gtk_render_icon_pixbuf()
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.

13 years agoGtkThemingEngine: Fix compile warning.
Carlos Garnacho [Wed, 3 Nov 2010 20:12:57 +0000 (21:12 +0100)]
GtkThemingEngine: Fix compile warning.

13 years agoFix compile warning
Carlos Garnacho [Wed, 3 Nov 2010 20:10:06 +0000 (21:10 +0100)]
Fix compile warning

13 years agoGtkStatusIcon: update to use gtk_widget_override_symbolic_color().
Carlos Garnacho [Wed, 3 Nov 2010 18:27:18 +0000 (19:27 +0100)]
GtkStatusIcon: update to use gtk_widget_override_symbolic_color().

13 years agoGtkWidget: Add new set of methods to override style information.
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.

13 years agoGtkStyle: Listen to context changes.
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.