]>
Pileus Git - ~andy/gtk/log
Daniel Mustieles [Tue, 10 Jan 2012 09:43:22 +0000 (10:43 +0100)]
Updated Spanish translation
Timo Jyrinki [Tue, 10 Jan 2012 08:54:13 +0000 (09:54 +0100)]
Updated Finnish translations by Jiri Grönroos.
Matthias Clasen [Mon, 9 Jan 2012 22:30:09 +0000 (17:30 -0500)]
Fix wrong refencences in the docs
Replace all references to g_application_set_app_menu and
g_application_set_menubar by their gtk variants, which
actually exist. Pointed out in bug 667546
Matthias Clasen [Mon, 9 Jan 2012 22:15:17 +0000 (17:15 -0500)]
Fall back to the builtin icons for spinbutton +/-
We do have list-add/-remove icons in the builtin icon theme,
so why not use them ?
Matthias Clasen [Mon, 9 Jan 2012 20:11:50 +0000 (15:11 -0500)]
Add missing symbols
Benjamin Otte [Mon, 9 Jan 2012 21:06:17 +0000 (22:06 +0100)]
styleproperty: Call style properties init function in more places
In particular, call it when querying properties by id. This is necessary
for make check to not die.
Matthias Clasen [Mon, 9 Jan 2012 19:09:27 +0000 (14:09 -0500)]
Fix doc markup
Piotr Drąg [Mon, 9 Jan 2012 18:51:50 +0000 (19:51 +0100)]
Updated POTFILES.in and POTFILES.skip
Rui Matos [Thu, 5 Jan 2012 17:21:03 +0000 (17:21 +0000)]
Rename 'window-unfocused' to 'backdrop'
'window-unfocused' is too long and mentions "focus" which is historically
loaded with the meaning "input focus".
'backdrop' isn't generally used in GUI speak and still conveys the state the
widgets in an unfocused or background toplevel window are in.
Benjamin Otte [Sun, 8 Jan 2012 04:38:10 +0000 (05:38 +0100)]
themingengine: Move border-image handling into render_frame_internal()
This fixes 2 bugs:
1) extensions didn't get border images
2) border-images caused outlines to not be drawn
Benjamin Otte [Sun, 8 Jan 2012 03:56:31 +0000 (04:56 +0100)]
roundedbox: close path
Just because we do it everywhere else, too.
Benjamin Otte [Sun, 8 Jan 2012 01:55:34 +0000 (02:55 +0100)]
themingengine: Implement outline support
Benjamin Otte [Sun, 8 Jan 2012 01:41:30 +0000 (02:41 +0100)]
themingengine: Split out the border drawing function
Benjamin Otte [Sun, 8 Jan 2012 01:10:35 +0000 (02:10 +0100)]
css: Add outline CSS properties
Benjamin Otte [Sun, 8 Jan 2012 00:17:48 +0000 (01:17 +0100)]
themingengine: Implement 'dotted' and 'dashed'
Benjamin Otte [Sat, 7 Jan 2012 21:40:17 +0000 (22:40 +0100)]
css: Introduce a corner order enum
Same order as CSS again.
The nice thing about this is that now edge i in a rounded box follows
corner i and is followed by corner (i + 1) % 4.
Benjamin Otte [Sat, 7 Jan 2012 21:20:51 +0000 (22:20 +0100)]
css: Introduce GtkCssSide
... and use it.
This is basically an encoding of the order of sides in CSS. So when
parsing things, this is the way we parse things in.
Benjamin Otte [Sat, 7 Jan 2012 20:24:50 +0000 (21:24 +0100)]
themingengine: Implement ridge and groove
Benjamin Otte [Sat, 7 Jan 2012 19:59:59 +0000 (20:59 +0100)]
themingengine: Redo color handling
Don't work on malloc()ed colors. Instead, use an array on the heap. This
makes it easier to copy the array.
Benjamin Otte [Sat, 7 Jan 2012 19:50:17 +0000 (20:50 +0100)]
themingengine: Refactor drawing code
... and implement 'double' border-style as proof-of-concept.
Benjamin Otte [Sat, 7 Jan 2012 16:45:15 +0000 (17:45 +0100)]
css: border-style: hidden computes a 0 border
Benjamin Otte [Sat, 7 Jan 2012 15:48:42 +0000 (16:48 +0100)]
API: Add all border styles from CSS 3
Benjamin Otte [Sat, 7 Jan 2012 15:35:40 +0000 (16:35 +0100)]
styleproperty: Simplify code
Merge 1-line function into only caller
Benjamin Otte [Sat, 7 Jan 2012 04:35:50 +0000 (05:35 +0100)]
tests: Add a test for all the border shorthands
Too much fun with random test generation, so I did a big one.
Paolo Borelli [Sat, 7 Jan 2012 02:04:10 +0000 (03:04 +0100)]
Also add border-{top|right|bottom|left} shorthands
Paolo Borelli [Wed, 4 Jan 2012 23:04:12 +0000 (00:04 +0100)]
Add the border css shorthand
Benjamin Otte [Sat, 7 Jan 2012 01:25:17 +0000 (02:25 +0100)]
tests: Fix for changes in this branch
The expected results are now more correct, but still not perfect.
Paolo Borelli [Wed, 4 Jan 2012 18:18:21 +0000 (19:18 +0100)]
Rename parse_border
For consistency we will use this name for the boder shorthand.
Paolo Borelli [Fri, 6 Jan 2012 15:34:28 +0000 (16:34 +0100)]
Add reftets for border-style property
Benjamin Otte [Fri, 6 Jan 2012 22:27:46 +0000 (23:27 +0100)]
reftests: Add a CSS file to reset properties to default values
We can use this to be independant of themes. See the comment at the top
of the file
Paolo Borelli [Fri, 6 Jan 2012 19:58:19 +0000 (20:58 +0100)]
Use the border-style subproperties for drawing
Use the newly introduced per-side property to draw frames.
Benjamin Otte [Fri, 6 Jan 2012 21:25:05 +0000 (22:25 +0100)]
Set border-width to 0 in compute function
This reverts commit
c276f53796158d2ed025861f9d9e10eaeee3a279 and
implements the same feature using the compute function.
A nice side effect is that gtk_style_property_get_border() and
gtk_style_property_get("border") to the same thing now.
Paolo Borelli [Thu, 5 Jan 2012 15:53:43 +0000 (16:53 +0100)]
Add border-{top|left|bottom|right}-style properties
Add all the border-style subproperties and turn border-style itself in a
shorthand.
Benjamin Otte [Fri, 6 Jan 2012 19:33:00 +0000 (20:33 +0100)]
themingengine: Remove an optimization
We optimize the case later on, so no need to do it here.
Benjamin Otte [Fri, 6 Jan 2012 15:08:05 +0000 (16:08 +0100)]
spinbutton: Pass the right size
We need a better diffrentiation between icon sizes - ie GtkIconSize vs
pixel size. Or more CSS.
Benjamin Otte [Thu, 5 Jan 2012 15:33:39 +0000 (16:33 +0100)]
background: Implement all options of background-repeat
Benjamin Otte [Thu, 5 Jan 2012 01:49:43 +0000 (02:49 +0100)]
tests: Add test for background-repeat
Benjamin Otte [Thu, 5 Jan 2012 01:48:32 +0000 (02:48 +0100)]
styleproperty: Parse all values for background-repeat
... and its component in the background property.
Benjamin Otte [Wed, 4 Jan 2012 20:53:01 +0000 (21:53 +0100)]
reftests: Add a test for 'background'
It just tests all the permutations to make sure my idea for implementing
random ordering actually works.
It does (at least currently).
Benjamin Otte [Wed, 4 Jan 2012 18:15:00 +0000 (19:15 +0100)]
shorthand: Implement the 'background' shorthand
Weee, shorthands are now really trivial \o/
Benjamin Otte [Wed, 4 Jan 2012 17:42:38 +0000 (18:42 +0100)]
cssimage: Add _gtk_css_image_can_parse()
Looks at the first token of the stream to see if this looks like an
image declaration. If it does: return %TRUE.
Benjamin Otte [Wed, 4 Jan 2012 15:31:04 +0000 (16:31 +0100)]
background: Simplify background-repeat
It used to be a struct, now it's just an enum
Benjamin Otte [Wed, 4 Jan 2012 12:27:28 +0000 (13:27 +0100)]
css: Remove GtkCssBorderRadius
It's not used anymore.
Paolo Borelli [Thu, 5 Jan 2012 14:47:23 +0000 (15:47 +0100)]
Introduce _gtk_css_parser_try_length
This starts to introduce the proper API abstraction for when we will
support different units
Benjamin Otte [Wed, 4 Jan 2012 03:17:38 +0000 (04:17 +0100)]
borderimage: Change memory management
Making it a on-stack object simplifies things a lot.
Benjamin Otte [Wed, 4 Jan 2012 03:06:50 +0000 (04:06 +0100)]
border-image: Remove pack/unpack functions
They are not used anymore. Also, it's no longer necessary to register
GtkBorderImage as a custom GType.
Benjamin Otte [Wed, 4 Jan 2012 03:04:59 +0000 (04:04 +0100)]
shorthand: Make border-image unget/settable
Benjamin Otte [Wed, 4 Jan 2012 03:04:15 +0000 (04:04 +0100)]
shorthand: Don't require pack/unpack functions
When using G_TYPE_NONE as the shorthand's type, the property is not
gettable/settable using regular APIs, so it essentially doesn't exist.
As it should be.
Benjamin Otte [Wed, 4 Jan 2012 03:00:58 +0000 (04:00 +0100)]
borderimage: Add _gtk_border_image_new_for_context()
and use it.
Benjamin Otte [Wed, 4 Jan 2012 02:48:54 +0000 (03:48 +0100)]
borderimage: Remove unused enums
Benjamin Otte [Tue, 3 Jan 2012 21:40:08 +0000 (22:40 +0100)]
reftests: Ensure no explicit colors are set on labels
Benjamin Otte [Tue, 3 Jan 2012 16:59:31 +0000 (17:59 +0100)]
styleproperty: Use a custom resolve function for colors
We want to make sure to fall back to the initial value of the property
if resolving fails.
This is kinda tricky, because the initial value itself might need
resolving, too.
Benjamin Otte [Tue, 3 Jan 2012 04:06:50 +0000 (05:06 +0100)]
reftests: Fix a bunch of invalid CSS cases
use 'transparent' instead of 'none' for colors.
Benjamin Otte [Tue, 3 Jan 2012 03:38:09 +0000 (04:38 +0100)]
css: Handle 'currentColor' special value
Computes to the value of the 'color' property, or when used on that
property, is treated as 'inherit'.
Benjamin Otte [Tue, 3 Jan 2012 03:36:11 +0000 (04:36 +0100)]
stylecontext: NMake safe to call into during lookup
When resolving a lookup, we may want to query the current style context,
as in the next patch. This works now.
Benjamin Otte [Tue, 3 Jan 2012 02:37:13 +0000 (03:37 +0100)]
styleproperty: Change order for property registration
Some properties depend on other properties, handle those first.
Benjamin Otte [Tue, 3 Jan 2012 02:21:21 +0000 (03:21 +0100)]
win32: Remove GtkWin32ThemePart
Its job is done by GtkCssImage now.
Benjamin Otte [Wed, 21 Dec 2011 16:43:31 +0000 (17:43 +0100)]
borderimage: Convert to using GtkCssImage
Benjamin Otte [Tue, 3 Jan 2012 01:40:50 +0000 (02:40 +0100)]
themingbackground: Convert to GtkCssImage
The conversion is incomplete and requires some work to account for
all the CSS crazies, like repeat modes and background-size.
Benjamin Otte [Tue, 3 Jan 2012 04:06:30 +0000 (05:06 +0100)]
csslookup: Use the new gtk_style_context_peek_property()
Benjamin Otte [Tue, 3 Jan 2012 01:35:56 +0000 (02:35 +0100)]
themingengine: Add _gtk_theming_engine_peek_property()
This is useful for getting at computed values and allows accessing
images before the code autoconverts them to a cairo pattern.
Benjamin Otte [Tue, 3 Jan 2012 01:35:05 +0000 (02:35 +0100)]
stylecontext: Add _gtk_style_context_peek_property()
This allows peeking at the computed value for a property. This is useful
for looking at GtkCssImage.
Benjamin Otte [Mon, 2 Jan 2012 22:23:20 +0000 (23:23 +0100)]
theme: Apply background merging code
It was unused and untested and did not do at all what the CSS spec says.
Benjamin Otte [Mon, 2 Jan 2012 21:22:25 +0000 (22:22 +0100)]
styleproperty: Convert background-image from pattern to GtkCssImage
Benjamin Otte [Wed, 21 Dec 2011 16:40:16 +0000 (17:40 +0100)]
cssimage: Add a few convenience functions
Benjamin Otte [Tue, 20 Dec 2011 14:47:03 +0000 (15:47 +0100)]
styleproperty: Use factored-out gradient parser
Benjamin Otte [Tue, 20 Dec 2011 13:44:53 +0000 (14:44 +0100)]
win32: Add a CssImage implementation
Benjamin Otte [Tue, 20 Dec 2011 13:46:19 +0000 (14:46 +0100)]
cssimage: Add GtkCssImageGradient
Benjamin Otte [Tue, 20 Dec 2011 13:40:07 +0000 (14:40 +0100)]
win32: Export _gtk_win32_theme_part_create_surface()
Benjamin Otte [Tue, 20 Dec 2011 13:15:41 +0000 (14:15 +0100)]
win32: Export _gtk_win32_lookup_htheme_by_classname()
Benjamin Otte [Tue, 20 Dec 2011 07:52:54 +0000 (08:52 +0100)]
cssimage: Improve new_parse() to select right image type
Benjamin Otte [Tue, 20 Dec 2011 07:15:18 +0000 (08:15 +0100)]
css: Add _gtk_css_parser_has_prefix()
Benjamin Otte [Tue, 20 Dec 2011 07:00:34 +0000 (08:00 +0100)]
css: Add image implementation for urls
Benjamin Otte [Mon, 19 Dec 2011 21:11:20 +0000 (22:11 +0100)]
css: Add GtkCssImage class
Doesn't do anything yet, just exists.
Benjamin Otte [Mon, 2 Jan 2012 18:22:30 +0000 (19:22 +0100)]
style: Remove GtkStylePropertyContext again
We need to solve this differently. I have no idea yet how, but I'll
invent something later.
This only affects win32 theming and that's broken anyway.
Benjamin Otte [Mon, 2 Jan 2012 18:14:28 +0000 (19:14 +0100)]
styleproperty: Remove context arg from _gtk_style_context_query()
Benjamin Otte [Mon, 2 Jan 2012 17:39:03 +0000 (18:39 +0100)]
stylecontext: Remove GtkStylePropertyContext from pack funcs
Benjamin Otte [Mon, 2 Jan 2012 17:28:24 +0000 (18:28 +0100)]
styleproperty: Add compute_value vfunc
Benjamin Otte [Mon, 2 Jan 2012 17:05:06 +0000 (18:05 +0100)]
styleproperty: Move parse/print vfuncs to GtkCssStyleProperty
Benjamin Otte [Mon, 2 Jan 2012 16:50:32 +0000 (17:50 +0100)]
styleproperty: Add a compute vfunc
Benjamin Otte [Mon, 2 Jan 2012 14:52:21 +0000 (15:52 +0100)]
tests: Add test for 'initial' and 'inherit' on shorthands
Benjamin Otte [Mon, 2 Jan 2012 14:44:45 +0000 (15:44 +0100)]
css: Redo value resolving
Instead of on-demand resolvage, we now resolve during lookup. The step
is done via
_gtk_css_style_property_compute_value()
which currently calls into
_gtk_css_style_compute_value()
That function has all the old resolving machinery.
The only part missing for now is the handling of win32 code. It will be
added back later.
Benjamin Otte [Mon, 2 Jan 2012 14:44:27 +0000 (15:44 +0100)]
gradient: Allow resolving with contexts
Benjamin Otte [Mon, 2 Jan 2012 14:43:53 +0000 (15:43 +0100)]
stylecontext: Export _gtk_style_context_resolve_color()
We'll need it soon.
Benjamin Otte [Mon, 2 Jan 2012 11:36:22 +0000 (12:36 +0100)]
css: Pass the real context to the CSS lookup
This will be necessary soon.
Benjamin Otte [Mon, 2 Jan 2012 11:12:29 +0000 (12:12 +0100)]
styleproperty: Move pspec to GtkCssCustomProperty
It's only used there.
Benjamin Otte [Mon, 2 Jan 2012 09:41:41 +0000 (10:41 +0100)]
styleproperty: Move property_parse_func member
It belongs in GtkCssCustomProperty
Benjamin Otte [Mon, 2 Jan 2012 09:37:04 +0000 (10:37 +0100)]
styleproperty: Add custom parser for custom properties
In particular, move the property_parse_func handling to
GtkCssCustomProperty exclusively.
Benjamin Otte [Mon, 2 Jan 2012 10:54:13 +0000 (11:54 +0100)]
styleproperty: Stop using pspecs
The pspec type is wrong most of the time anyway.
Benjamin Otte [Mon, 2 Jan 2012 10:53:36 +0000 (11:53 +0100)]
styleproperties: Don't validate values anymore
Pspecs are on their way out, so validation is, too.
Benjamin Otte [Mon, 2 Jan 2012 10:27:54 +0000 (11:27 +0100)]
styleproperty: Don't use gtk_style_properties_register_property()
This would make the internal properties custom properties. And they are
not.
Also get rid of default initial values, we now specify the correct one
at all times.
Benjamin Otte [Mon, 2 Jan 2012 10:12:46 +0000 (11:12 +0100)]
styleproperty: Make the register functin take varargs
.. for the initial value.
Benjamin Otte [Mon, 2 Jan 2012 09:29:13 +0000 (10:29 +0100)]
styleproperty: Don't register a property parse func
Nobody does that anymore.
Benjamin Otte [Mon, 2 Jan 2012 09:21:57 +0000 (10:21 +0100)]
styleproperty: Move implementations to separate file
Benjamin Otte [Mon, 2 Jan 2012 09:06:47 +0000 (10:06 +0100)]
styleproperty: Let parse_value() initialize the value
... and document that behavior.
Benjamin Otte [Mon, 2 Jan 2012 08:53:03 +0000 (09:53 +0100)]
styleproperty: Move parse func
It's specific to GtKCssStyleProperty after all.
Benjamin Otte [Mon, 2 Jan 2012 08:22:35 +0000 (09:22 +0100)]
shorthand: Remove old parse func support
It's not used anymore
Benjamin Otte [Mon, 2 Jan 2012 08:19:27 +0000 (09:19 +0100)]
shorthand: Do font parsing the new way
Benjamin Otte [Mon, 2 Jan 2012 03:12:41 +0000 (04:12 +0100)]
shorthand: Update border-image parsing
Also update tests. None is not a valid value...
Benjamin Otte [Mon, 2 Jan 2012 03:11:20 +0000 (04:11 +0100)]
shorthand: Initialize unparsed values
All values that the parse funcs didn't parse are initialized to
'initial'.