Commit Graph

27925 Commits

Author SHA1 Message Date
b47c7405f2 themingengine: plug a couple of leaks 2011-06-15 14:13:20 +02:00
8eb48a876b border-image: Fix leakage 2011-06-15 13:46:16 +02:00
d3535ff6ce tests: Add tests for font-family
This readds the tests now that font-family works again. They were
previously removed when font-family support was backed out due to bugs.
2011-06-15 12:57:21 +02:00
0d253b67f4 css: Make font property a shorthand
... and implement the CSS font properties:
- font-size
- font-style
- font-family
- font-weight
- font-variant

This is the second try at this. The first was backed out previously due
to bugginess. Let's hope this one survives a bit longer.

Also makes the font-family CSS test work again.
2011-06-15 12:52:53 +02:00
0c162851ed Add a missing break statement 2011-06-14 21:59:55 -04:00
519b3ca861 Add a missing break statement 2011-06-14 21:58:51 -04:00
5254fbacfb Avoid an oob read 2011-06-14 21:56:50 -04:00
f68c073e33 Remove a redundant NULL check 2011-06-14 21:53:53 -04:00
32f0761daa Avoid a dereference-before-null-check 2011-06-14 21:50:16 -04:00
d5dad6412b Give this code a chance to work
At least it does not get uninitialized variable warnings now.
2011-06-14 21:44:12 -04:00
37167ec458 Make this code more meaningful 2011-06-14 21:18:08 -04:00
d3c427a767 Don't forget to cleanup varargs 2011-06-14 21:14:48 -04:00
be7f734aff tests: Add simple test for image clipboard 2011-06-14 16:06:33 -04:00
da9e1954eb Updated Slovenian translation 2011-06-14 18:24:30 +02:00
c903ece96b image: Initialize variable 2011-06-14 09:49:23 +00:00
e3e9527354 GtkAssistant: improve button labels
Forward/Back/Last has been declared strange; so go with something
a little more friendly: Continue/Go Back/Finish.
https://bugzilla.gnome.org/show_bug.cgi?id=652506
2011-06-13 22:35:15 -04:00
76f2aa737b docs: Add Since tag to GtkWidget::draw 2011-06-13 18:29:07 +02:00
44245caae5 demos: Remove unused variable 2011-06-13 18:27:24 +02:00
f4a6ef0d50 tests: Add a CSS test for color parsing errors
In [particular check for the fix in the last commit.
2011-06-13 15:01:52 +02:00
9e2ebdee07 cssparser: Actually send an error in an error case
The error case was excess commas in rgb/rgba colors, such as
rgba(0,255,0,0,0.5)
2011-06-13 15:01:52 +02:00
a471b4b198 themingengine: Improve handling of different colors
We don't want to have different colors cause seams, so we try very hard
to render them at the same time.
2011-06-13 15:01:52 +02:00
407b3f2cde themingengine: Implement support for multiple border colors
Also use this support to implement inset and outset border styles
without cheats.
2011-06-13 15:01:52 +02:00
3aa73bebea styleproperty: Add border-*-color style properties
And make border-color a shorthand
2011-06-13 15:01:52 +02:00
016e0c1a3e reftests: Check that the default border color is the foreground color 2011-06-13 15:01:52 +02:00
abc239f444 styleproperty: The default border color is the normal color 2011-06-13 15:01:52 +02:00
ba7d1c2104 styleproperty: Make default_value() take a state
Because of this, resolve() needs to take a state, too. This is so that
we can have default values depend on other values (like border color).
2011-06-13 15:01:52 +02:00
e0b1943c97 roundedbox: Fix border radius grow algorithm
When one radius gets to 0, the other should be set to 0, too. Otherwise
the paths constructed from it will not be correct.
2011-06-13 15:01:52 +02:00
7cd471fb56 Bump version 2011-06-13 08:03:40 -04:00
d9fa5b342b Forgotten file 2011-06-13 07:33:47 -04:00
d3274e8e06 xi2: Handle XIM modules that replace events
Fixes Bug 645993 - XIM has wierd behaviors. Some XIM modules
filter every key event, possibly replacing it with their own
one. These events usually have serial=0, so make
GdkDeviceManagerXI2 also listen on these.
2011-06-13 07:16:16 -04:00
2ce9ff2d6a Remove broken font-family css test 2011-06-13 06:56:12 -04:00
bb26d305e6 Update for 3.1.6 2011-06-13 00:16:55 -04:00
cfb2a45f9a overlay: add initial version of gtkoverlay 2011-06-12 23:27:18 -04:00
f50da3babe configure.ac: Use aux directory to store autogenerated files 2011-06-13 03:52:09 +01:00
794a3706cd gtkdnd: Don't bind/unbind keycodes that couldn't be determined
At http://dev.laptop.org/ticket/10643 we are seeing that drag-and-drop
within the Sugar shell causes all of Sugar's custom keybindings to be
removed.

This is because gtkdnd tries to unbind XK_KP_Space, which (on my systems)
is resolved to NoSymbol by XKeycodeToKeysym(). NoSymbol has value 0,
the same as AnyKey, and XUngrabKey(AnyKey) is equivalent to unbinding
all possible keycodes.

Fix this by catching NoSymbol before binding/unbinding.

https://bugzilla.gnome.org/show_bug.cgi?id=652402
2011-06-12 21:44:00 -04:00
36f6c6167b Revert "gtk/gtkmenuitem: gtk_misc_set_alignment replacing"
This reverts commit 49e62d2a5f.
It turns out that GtkAccelLabel is not quite ready for
widget align properties.
2011-06-12 21:36:37 -04:00
85747da972 tests: use GdkRGBA instead GdkColor 2011-06-13 00:24:53 +01:00
4a9bd917a0 gtk-demo/colorsel.c: Do not use GtkAlignment 2011-06-13 00:04:39 +01:00
04fa731e6b gtk.symbols: Add missing api 2011-06-12 23:00:14 +01:00
287069ca3c default theme: Fix menuitem check/radio colors 2011-06-12 23:35:39 +02:00
3712ec71d4 default theme: fix menuitem selections 2011-06-12 23:28:43 +02:00
d7598aabe3 default theme: fix tooltip colors 2011-06-12 23:26:53 +02:00
4f649e10fa themingengine: Add magic to draw inset/outset properly
Use a bunch of tricks to get inset/outset right with a small amount of
code. In particular, fix the hidden sides causing artifacts.

Included is a bunch of code comments explaining what we actually do.
2011-06-12 23:00:25 +02:00
cd4c527451 themingengine: Reduce border to 0 on hidden sides
Fixes drawing of expanders.
2011-06-12 23:00:25 +02:00
8b0bffc3a2 themingengine: Fix inset/outset drawing 2011-06-12 23:00:24 +02:00
7c0e18f8a6 gailtextcell: Fix typo 2011-06-12 21:46:18 +01:00
391917063e textview: do not destroy the layout in unrealize
Now instead of invalidating when we create the layout we invalidate
when we realize the widget and we remove the invalidation when
unrealizing. It was pointless too destroying the layout in unrealize
as at the end what we just wanted was to remove the invalidation idles.
2011-06-12 17:54:07 +02:00
deed7175ca roundedbox: Handle shrinking to zero
We need it for wide separators.
2011-06-12 03:42:29 +02:00
61c253a132 themingengine: set the right coordinates for the rounded box rect 2011-06-11 13:32:15 -04:00
8e945d04a8 Updated Slovenian translation 2011-06-11 17:44:59 +02:00