Cosimo Cecchi
bef12c003c
color-scale: remove Adwaita GtkColorScale trough hack
...
Instead of special-casing Adwaita, apply the half-width logic for themes
that have a scale slider with vertical proportions.
Also, simplify the rendering code a bit by factoring out the trough
sizing logic.
2012-02-14 16:37:05 -05:00
Cosimo Cecchi
19da38b811
colorchooser: factor out a private method to get the checkboard pattern
...
And use it in the color widgets.
2012-02-14 16:37:04 -05:00
Matthias Clasen
453aecd346
Improve a11y names for colors
...
Only read alpha if it is != 1, and read percentages also for
'unnamed' palette colors.
2012-02-14 16:37:04 -05:00
Matthias Clasen
2d57c5c374
Update TODO
2012-02-14 16:37:04 -05:00
Matthias Clasen
18ea4825cf
Mark color names as translatable
2012-02-14 16:37:04 -05:00
Matthias Clasen
1f698e4f62
GtkColorScale: fix an RTL issue
...
When using a horizontal scale in RTL, we need to flip the
background image to go along with the flipped scale.
2012-02-14 16:37:04 -05:00
Cosimo Cecchi
5e77e1c117
colorsel: include gtkcolorutils.h
...
Fix the build
2012-02-14 16:37:02 -05:00
Cosimo Cecchi
6dbb4d6384
color-widget: don't use a GtkAlignment to center the color editor
...
We can just use a GtkBox, and set hexpand=TRUE/halign=CENTER to allocate
the editor in the middle of the box.
2012-02-14 16:37:01 -05:00
Cosimo Cecchi
988cbb6300
color-editor: don't use a GtkAlignment to layout popups
...
Set a margin on the contents and use a box instead.
2012-02-14 16:37:01 -05:00
Cosimo Cecchi
1cbaca6c60
color-editor: don't use an alignment to give the popup extra space
2012-02-14 16:37:01 -05:00
Cosimo Cecchi
2abe72283e
color-editor: also set a row spacing in the popup tooltip
2012-02-14 16:37:01 -05:00
Cosimo Cecchi
126e941466
color-button: simplify internal children
...
Instead of going GtkAlignment->GtkFrame->GtkAlignment, just pack a
GtkDrawingArea inside the button, and use halign/margin properties to
get the desired layout.
2012-02-14 16:37:01 -05:00
Cosimo Cecchi
51c6e8329d
color-swatch: cleanup unused property enum value
2012-02-14 16:37:01 -05:00
Matthias Clasen
91b4781ae9
Revert an accidental commit
2012-02-14 16:37:00 -05:00
Matthias Clasen
92618eb8e2
GtkColorSwatch: Use widget state instead of a custom 'selected'
2012-02-14 16:37:00 -05:00
Matthias Clasen
9cc827fcd1
A11y improvements
2012-02-14 16:37:00 -05:00
Matthias Clasen
40974b1463
GtkColorSwatch: Drop an unnecessary field
2012-02-14 16:37:00 -05:00
Matthias Clasen
dc1929a9de
Avoid a 10th custom color
2012-02-14 16:37:00 -05:00
Matthias Clasen
1f05f94885
GtkColorChooserDialog: propagate notification for ::show-editor
2012-02-14 16:36:59 -05:00
Matthias Clasen
05e2124f24
GtkColorChooserWidget: emit notification for ::show-editor
2012-02-14 16:36:59 -05:00
Matthias Clasen
1fd311803a
Document gtk_color_chooser_add_palette
2012-02-14 16:36:59 -05:00
Matthias Clasen
7f44feab19
Fix use_alpha initialization and propagation
...
We must set use_alpha to TRUE initially, and when passing it
down to the swatches, we must iterate over the custom box, too.
2012-02-14 16:36:59 -05:00
Matthias Clasen
3a7ed2e7bd
Remove unused variables
2012-02-14 16:36:59 -05:00
Matthias Clasen
bad24bc119
Consistently private headers
...
Add a 'private' suffix to all newly introduced private
headers.
2012-02-14 16:36:58 -05:00
Matthias Clasen
5aaeaa7b81
Fix the build
...
A G_BEGIN_DECLS went missing here.
2012-02-14 16:36:58 -05:00
Cosimo Cecchi
bcc4186388
color-swatch: remove gtk_color_swatch_set_corner_radii()
...
It's unused now.
2012-02-14 16:36:58 -05:00
Cosimo Cecchi
74a53b542b
color-widget: use a GtkBox for the custom section
...
Since we only allow a single row there, it's better to just use a
GtkBox, and use :first-child, :last-child and :only-child to style
swatches in there.
2012-02-14 16:36:58 -05:00
Cosimo Cecchi
9da3d8b7b9
color-widget: add LEFT/RIGHT/TOP/BOTTOM style classes to the swatches
...
As we add them to the grid, for setting theming properties.
2012-02-14 16:36:58 -05:00
Cosimo Cecchi
73944c6e81
color-editor: don't call gtk_color_swatch_set_corner_radii()
...
It's going away.
2012-02-14 16:36:58 -05:00
Cosimo Cecchi
a9c2a586b1
color-swatch: don't hardcode list-add-symbolic as swatch icon
...
We have that as a property, we should use it.
2012-02-14 16:36:57 -05:00
Cosimo Cecchi
83de34882b
color-swatch: allow styling the "active badge"
...
Instead of calling gtk_render_check() there, just render a symbolic
icon, falling back to a built-in one if the icon is not available.
Also, add a style class for the active badge on the swatch:
"color-active-badge".
2012-02-14 16:36:57 -05:00
Cosimo Cecchi
1ccedc5fa4
color-swatch: use GtkThemingBackground to draw the background
...
This allows e.g. for the corner radii to be styled directly from the
theme.
2012-02-14 16:36:57 -05:00
Cosimo Cecchi
33e54e45be
color-swatch: add a color-light/color-dark style class for intensity
...
Themes might want to set different colors on the badge if the displayed
color is light or dark. Use a style class for this when we set a color
on the swatch.
2012-02-14 16:36:57 -05:00
Cosimo Cecchi
46187037a3
themingbackground: make it based on GtkStyleContext
...
Instead of GtkThemingEngine. This will allow for the object to be also
used from inside e.g. a _draw() method.
2012-02-14 16:36:57 -05:00
Cosimo Cecchi
ae132c0a1a
roundedbox: add _apply_border_radius() variations for engine/context
...
And make the base function just use the raw corner radii struct.
2012-02-14 16:36:56 -05:00
Cosimo Cecchi
4c61f1f663
themingengine: add a private _gtk_theming_engine_get_context()
...
We'll need this later.
2012-02-14 16:36:56 -05:00
Cosimo Cecchi
4e37d56d51
themingengine: move _gtk_theming_engine_set_context to private header
...
Where it belongs.
2012-02-14 16:36:56 -05:00
Matthias Clasen
8f201d62d9
Add API to set palettes
...
I'm not really convinced by this; the API is a little complicated.
May need more thought.
2012-02-14 16:36:56 -05:00
Matthias Clasen
d7cff0797e
Misc cleanups
2012-02-14 16:36:56 -05:00
Matthias Clasen
cb128cc6e9
Deprecate old color selection widgets
...
GtkColorSelectionDialog, GtkColorSelection and GtkHSV have
been superseded by the GtkColorChooser* family of widgets.
2012-02-14 16:36:55 -05:00
Matthias Clasen
23a5f7a22c
Add docs
2012-02-14 16:36:55 -05:00
Matthias Clasen
03a2b338ee
Small documentation tweaks in font choosers
2012-02-14 16:36:55 -05:00
Matthias Clasen
c5cfb6e02b
Rework the API a bit
...
Rename get/set_color to get/set_rgba and show_alpha to use_alpha,
to match existing GtkColorButton API and let GtkColorButton implement
GtkColorChooser.
2012-02-14 16:36:55 -05:00
Matthias Clasen
1f68d7d827
Simplify GtkColorScale private api a bit
2012-02-14 16:36:55 -05:00
Matthias Clasen
6ed16b5b41
Fix up exported symbols
...
Only GtkColorChooser* is public for now.
2012-02-14 16:36:54 -05:00
Matthias Clasen
43ffb8521d
Add a small comments
2012-02-14 16:36:54 -05:00
Matthias Clasen
1f7cc92219
Dismiss popups on show
...
This ensures that the editor always comes up without popups,
even when it is reused.
2012-02-14 16:36:54 -05:00
Matthias Clasen
3f92e24cb7
Add more todos
2012-02-14 16:36:54 -05:00
Matthias Clasen
cc127c64a9
Add some accessible labels
2012-02-14 16:36:54 -05:00
Matthias Clasen
327e36e360
Mark strings for translation
2012-02-14 16:36:53 -05:00
Matthias Clasen
f2aaffaf07
Finishing touches
...
Implement popups in the editor, fix window sizing, fix RTL flipping.
GtkColorPlane is now using adjustments, and GtkColorEditor is using
adjustments as its model as well.
2012-02-14 16:36:53 -05:00
Matthias Clasen
cd300835d7
Allow context menus on scale sliders
...
This will be used for a popup in the color chooser.
2012-02-14 16:36:53 -05:00
Matthias Clasen
e56adaebea
Only activate on double-click
2012-02-14 16:36:53 -05:00
Matthias Clasen
dbbe4c12fa
Remove an erraneous g_free call
2012-02-14 16:36:53 -05:00
Matthias Clasen
296cd814e5
Add an Adwaita hack
...
When the theme is Adwaita, let the thumb extend out over the
colored trough.
2012-02-14 16:36:53 -05:00
Matthias Clasen
5bd4c234fb
Draw no trough for color scales
2012-02-14 16:36:52 -05:00
Matthias Clasen
4226551fff
Move color scales into separate widget
2012-02-14 16:36:52 -05:00
Matthias Clasen
bdb8931bda
Fix a few problems with custom color replacement
...
We were allowing one too many custom colors in, and when one
of them was dropped, we did not update the shape of the penultimate
one.
2012-02-14 16:36:52 -05:00
Matthias Clasen
3a35895a00
Make color chooser always come up with palette
2012-02-14 16:36:52 -05:00
Matthias Clasen
d3b30bff0c
Show new color chooser from color button
2012-02-14 16:36:52 -05:00
Matthias Clasen
2a8d3f78e9
Use a swatch in the editor
...
For now, we simply make it insensitive to turn off unwanted
interactivity.
2012-02-14 16:36:51 -05:00
Matthias Clasen
ff1f5de62f
Don't waste memory
2012-02-14 16:36:51 -05:00
Matthias Clasen
1720e8ebf3
Preliminary color sliders
2012-02-14 16:36:51 -05:00
Matthias Clasen
8178578359
Make alpha optional
2012-02-14 16:36:51 -05:00
Matthias Clasen
8d1565df94
Show alpha in the palette as well
2012-02-14 16:36:51 -05:00
Matthias Clasen
9161119329
No popup menu on the button
2012-02-14 16:36:50 -05:00
Matthias Clasen
9b81322409
Make saving custom colors work as intended
...
The custom colors are now pushed over to the right as new ones
are added, and everything beyond the 9th row gets dropped.
Customized colors are added to the custom colors array.
2012-02-14 16:36:50 -05:00
Matthias Clasen
e1bf3b6650
Choose a different initial color when adding custom colors
...
Going for pure red 'hides' the hairline at the edge of the
plane. This color makes it nicely visible.
2012-02-14 16:36:50 -05:00
Jon McCann
efccf87961
Show editor when clicking custom button
2012-02-14 16:36:50 -05:00
Jon McCann
2c24e3cb6a
Align label with swatches
2012-02-14 16:36:50 -05:00
Jon McCann
ce8212c5a8
Add Tangoish grayscales
2012-02-14 16:36:50 -05:00
Jon McCann
ea6ac7131e
Use the Tango palette by default
2012-02-14 16:36:49 -05:00
Matthias Clasen
e06ccb0fbb
Move the plane into a separate widget
2012-02-14 16:36:49 -05:00
Matthias Clasen
021f5e0365
Initial work on a color editor
...
This replaces GtkHSV with a compound widget featuring
a hue slider and an sv-plane, amongst others.
2012-02-14 16:36:49 -05:00
Matthias Clasen
3b6e316e74
Initial cut at implementing a new color chooser
...
This is a partial implementation of
https://live.gnome.org/GnomeOS/Design/Whiteboards/ColorSelection
The new color editor has not been implemented yet.
2012-02-14 16:36:49 -05:00
Matthias Clasen
e2bde55277
Remove leftover debug spew
2012-02-14 13:08:27 -05:00
Cosimo Cecchi
abdbe207fe
about-dialog: set proper spacing between columnns in credits section
...
Spacing ended up being really tight; add another 6px.
https://bugzilla.gnome.org/show_bug.cgi?id=668114
2012-02-14 11:26:16 -05:00
Cosimo Cecchi
a04fa5300a
about-dialog: don't set a margin around the license area
...
Make it consistent with the credits page.
https://bugzilla.gnome.org/show_bug.cgi?id=670077
2012-02-14 11:21:52 -05:00
Cosimo Cecchi
8dc9866e2a
about-dialog: add a stroke around the credits area
...
Makes it consistent with e.g. the license page.
https://bugzilla.gnome.org/show_bug.cgi?id=670078
2012-02-14 11:19:04 -05:00
Alexander Larsson
4b200a0429
Set a bg on GtkViewport to ensure we get fast scrolling
...
Otherwise it will use the default alpha transparency and
not scroll efficiently.
2012-02-14 15:18:30 +01:00
Cosimo Cecchi
713c532940
treeview: don't use gtk_render_focus() for dnd indicator
...
There's no reason this should be a focus ring rather than an actual
frame. In the past this was probably used to get a dashed effect, but
now we even support that natively for borders.
2012-02-13 22:43:07 -05:00
Cosimo Cecchi
a3b097639f
treeview: set "dnd" style class when drawing drag and drop indicators
...
This is useful to theme the rings that appear around rows on drag and
drop.
2012-02-13 22:19:53 -05:00
Alexander Larsson
2d972058ab
Fix up win32 CSS
...
Now that we removed the default css a lot of stuff needed fixing
2012-02-13 12:24:06 +01:00
Murray Cumming
842d3ac53d
GtkButton: Small documentation improvements
2012-02-13 09:18:07 +01:00
Benjamin Otte
90e65f30ab
a11y: Mark cells as defunct when deleting them
...
Just unreffing isn't enough, atk-bridge might have a reference to the
object still.
2012-02-12 16:45:14 +01:00
Matthias Clasen
a96c122fa4
Plug a small memory leak
2012-02-11 13:06:12 -05:00
Benjamin Otte
194a48bd4a
a11y: Redo ref_accessible_at_point()
...
use direct access to the RBTree instead of fiddling with the path.
Removes the lat caller of get_index() and with it count_rows(), so those
are gone now.
2012-02-11 05:11:00 +01:00
Benjamin Otte
3827d75f64
a11y: create focus cell accessibles when they get focused
2012-02-11 04:44:27 +01:00
Benjamin Otte
bf8d9ceb2f
a11y: Split out cell creation function
2012-02-11 04:41:45 +01:00
Benjamin Otte
315ac9413b
a11y: Set relations without tree path
...
We can directly use at the rbtree's parent.
2012-02-11 04:13:04 +01:00
Benjamin Otte
6130c65470
a11y: Remove unused variable
2012-02-11 03:42:14 +01:00
Benjamin Otte
da30c8253b
a11y: Keep treeview accessibles around
...
Refcounting behavior kinda requires that we track of accessibles until
the row goes away. This is necessary for reference handling and for some
assumptions that atk-bridge does.
2012-02-11 03:37:25 +01:00
Benjamin Otte
5e587229c8
a11y: Remove old treeview focus tracking code
2012-02-11 03:14:22 +01:00
Benjamin Otte
24db6d7a6f
a11y: Emit focus change events when focus cell changes
2012-02-11 03:02:20 +01:00
Benjamin Otte
5fe947640c
treeview: Add internal get_cursor_node() API
2012-02-11 03:02:20 +01:00
Benjamin Otte
07f8336dbd
a11y: Update treeview focused status
...
... when the cursor row changes. Also emit active-descendant-changed.
2012-02-11 02:50:26 +01:00
Benjamin Otte
00a810ae04
treeview: Add private get_focus_column() API
2012-02-11 02:49:12 +01:00
Benjamin Otte
f90ff5d50b
treeview: Notify accessible about focus changes
2012-02-11 02:38:48 +01:00
Benjamin Otte
a4559f1e19
treeview: Tell accessible about focus column changes
2012-02-11 01:59:19 +01:00
Sebastian Keller
f33fe5b677
docs: Add documentation for alpha() in CSS
2012-02-11 01:48:03 +01:00
Claudio Saavedra
e2339f5ebd
GtkNotebook: emit child-notify::position a few more times
...
When moving a page around, all children changing their position
need to be notified.
There are still other places where proper notification is missing
(drag 'n drop, etc.)
https://bugzilla.gnome.org/show_bug.cgi?id=669116
2012-02-10 16:39:44 +02:00
Benjamin Otte
3b1d8beab0
accessible: Unset widget on dispose, not finalize
...
Unsetting the widget causes events to get emitted and we want to
(a) really emit that event to our signal handlers
(b) still be recognized as a real GObject while doing that
https://bugzilla.gnome.org/show_bug.cgi?id=669794
2012-02-10 13:21:06 +01:00
Alexander Larsson
cdc6e82720
Remove all default css and make Raleigh a pure fallback theme
...
It was problematic to maintain Raleigh going forward, as any
changes in it affected all themes. Also, its more robust if
each theme is a full standalone css rather than relying on
an inherited css base.
So, this changes Raleigh to a standalone theme that we can tweak
without accidentally breaking other themes, and makes the
default theme empty. In fact, we don't even add the default
provider anymore as its always empty.
2012-02-09 23:19:17 +01:00
Kalev Lember
b21dd67d60
win32: Don't crash when installed in a top-level directory
...
Avoid NULL-pointer dereference when package installation directory
doesn't contain any slashes.
Reported by Paweł Forysiuk.
2012-02-09 17:58:21 +02:00
Alexander Larsson
fed1cfb122
Make the default background for GdkWindows transparent
...
With the changes in default CSS to make the default background transparent
we ran into issues where intermediate GdkWindow (for instance the
view_window in GtkViewport) where we didn't set an explicit background
(because before they were always covered). So instead of showing throught
the transparent windows were showing the default backgroind of the intermediate
window (i.e. black).
With this change we also needed to fix GtkViewport, as it was previously
relying on the bin and view windows to cover widget->window so that the
border was not visible if shadow_type was NONE.
2012-02-09 16:39:23 +01:00
Alexander Larsson
6723feae8a
viewport: Set frame styleclass when getting border size during size allocation
...
Without this you don't get the right border/padding for widget->window
and the border shows up under the scrolled contents.
2012-02-09 16:39:23 +01:00
Matthias Clasen
c2512d1c03
Avoid a C99ism
...
Move variable declarations to the beginning of the block.
https://bugzilla.gnome.org/show_bug.cgi?id=669511
2012-02-08 07:26:25 -05:00
Diego Escalante Urrelo
63865720b7
gtkbuilder-menus: translation-domain can be NULL
...
GtkBuilder defaults its translation-domain to NULL, which is a perfectly
fine value for d_gettext() and friends.
https://bugzilla.gnome.org/show_bug.cgi?id=669638
2012-02-08 04:36:26 -05:00
Diego Escalante Urrelo
a0f6fc137b
gtkactiongroup: clarify set_translation_domain docs
...
NULL is an actual useful value for
gtk_action_group_set_translation_domain, but this information is buried
in g_dgettext() documentation.
Be extra redundant, to make it obvious that NULL is ok.
https://bugzilla.gnome.org/show_bug.cgi?id=669636
2012-02-08 04:36:26 -05:00
Benjamin Otte
33864064f4
tests: Remove untrue assertion
...
Even if something is not at the top, things might still not be scrolled.
For example in the case where things are exactly at the center.
2012-02-06 21:53:36 +01:00
Benjamin Otte
75eddfffbb
tests: Don't test something we can't test
...
When using GtkTreeStore, don't compute row positions assuming
everything's a list store, which is how get_row_start_for_index() works.
So instead, do a laxer check and don't insist on proper alignment.
2012-02-06 21:53:35 +01:00
Benjamin Otte
6a381b0c1d
tests: Remove unused argument from treeview-scrolling test
2012-02-06 21:53:35 +01:00
Benjamin Otte
33961154b6
tests: Fix height checks in treeview scrolling test
...
If things get centered in the scrolling area depens on the height of the
row, too.
2012-02-06 20:43:05 +01:00
Benjamin Otte
c2a6dcc73c
tests: Fix assertion emission
...
We want to assert() when doing the actual check, not do some
g_assert (testing_failed());
2012-02-06 20:43:05 +01:00
Alexander Larsson
cb625d21b4
Fix leak when parsing image urls
2012-02-06 15:06:29 +01:00
Ignacio Casal Quinteiro
022e17afbc
aboutdialog: add a \n in the copyright text
2012-02-03 17:13:38 +01:00
Alexander Larsson
fb0c53a0ed
Fix crash with theme resource file
...
The freeing the GResource in gtk_css_provider_reset caused problems
because it was called from gtk_css_provider_load_from_path() inside
gtk_css_provider_get_named(). We fix this by delaying the
setting of priv->resource until we successfully loaded the file.
2012-02-03 16:37:54 +01:00
Alexander Larsson
6b2f10321f
Remove accidental leftover spew
2012-02-03 16:27:32 +01:00
Alexander Larsson
b5b9965283
css: Remove any loaded resource in gtk_css_provider_reset
2012-02-03 16:01:51 +01:00
Alexander Larsson
610ea728b2
Special case resource pixbuf files loading
...
This means we can share the pixbuf data when using GdkPixdata
images in the resource.
2012-02-03 15:51:55 +01:00
Alexander Larsson
57386285fa
Support a gtk.gresource file in themes
...
This lets themes install a .gresource for efficient loading
of resources. This resource file will (if it exists) be automatically
loaded (mmaped) when the theme is used and unloaded when not used.
2012-02-03 15:50:49 +01:00
Benjamin Otte
e84af235ee
css: Implement padding as numbers
...
Also remove the now unused border parsing function for shorthands.
2012-02-02 03:14:02 +01:00
Benjamin Otte
3c4b8a676f
css: Port margin properties to GtkCssNumber
2012-02-02 03:14:01 +01:00
Benjamin Otte
2434dbc10a
themingbackground: Implement background-size support
2012-02-02 03:14:01 +01:00
Benjamin Otte
1979d048d3
css: Implement parsing for 'background-size'
2012-02-02 03:14:01 +01:00
Benjamin Otte
811e848832
css: Implement repeating linear gradients
2012-02-02 03:14:00 +01:00
Benjamin Otte
5df9b0188a
css: Implement CSS 3 linear-gradient() syntax
2012-02-02 03:14:00 +01:00
Benjamin Otte
0c140daff2
css: Implement support for angles
2012-02-02 03:14:00 +01:00
Benjamin Otte
a63ff72406
css: Convert border-radius to GtkCssNumber
...
We can do % now, wohoo!
2012-02-02 03:14:00 +01:00
Benjamin Otte
82c2dad178
themingengine: Add a private function to query lengths
2012-02-02 03:14:00 +01:00
Benjamin Otte
762ea4793f
css: Make border-width a length property
2012-02-02 03:14:00 +01:00
Benjamin Otte
a81ac3d5cd
css: Add a check function for specified types
...
... and use it.
It seems kinda necessary for the refactoring I'm about to do...
2012-02-02 03:14:00 +01:00
Benjamin Otte
9551f542bd
css: Ensure proper type for parsing custom properties
2012-02-02 03:14:00 +01:00
Benjamin Otte
893807bee0
css: Add GtkCssNumber
2012-02-02 03:14:00 +01:00
Benjamin Otte
bd8fefb20e
styleproperties: Add a warning
...
GtkStyleProperties stores computed values. Make sure it does.
2012-02-02 03:14:00 +01:00
Benjamin Otte
032e8f9f9b
styleproperty: Simplifiy registering function
...
... and rename it to conform to the actual type.
We don't need 2 registering functions anymore now that we can use the
specified type.
2012-02-02 03:13:58 +01:00
Benjamin Otte
6ba33e7af5
css: Allow bypassing the compute_value() stage
...
This is useful when overriding values.
2012-02-02 03:13:38 +01:00
Benjamin Otte
e4c2d9b259
csslookup: Query the bitmask
...
Checking if the value is NULL is the wrong thing to do - the bitmask is
usd to keep track of that.
The reason for that will become apparent in the next patch.
2012-02-02 03:13:38 +01:00
Benjamin Otte
4c8e9ee6b6
css: Remove two unused declarations
2012-02-02 03:13:38 +01:00
Benjamin Otte
c8786c3b97
css: color_compute no longer needs to check type
...
The input is always a symbolic color.
2012-02-02 03:13:38 +01:00
Benjamin Otte
5e5e8367ce
css: Initialize value before calling compute function
2012-02-02 03:13:38 +01:00
Benjamin Otte
f7e0ce3b28
css: Initialize values to their specified type
...
.. when parsing.
2012-02-02 03:13:38 +01:00
Benjamin Otte
25affd4766
css: Create SymbolicColor fallback properties for colors
2012-02-02 03:13:38 +01:00
Benjamin Otte
c2fb315878
css: parse 'currentColor' for symbolic colors
2012-02-02 03:13:38 +01:00
Benjamin Otte
9fa764abec
styleproperty: Introduce "specified type" and "computed type"
...
Make the types explicit. This way, we can actually do useful stuff with
them (like sanity checks, d'oh).
2012-02-02 03:13:34 +01:00
Benjamin Otte
05f14af24c
css: Make the 'currentColor' keyword a symbolic color
...
This is the first step on a quest to ensure that there is only ever one
GType in use for GValues in every stage of the CSS resolving process.
2012-02-02 00:40:33 +01:00
Benjamin Otte
6b04c0f828
raleigh: remove general 'padding' declaration
...
Fixes reftests that were broken after images and labels applied padding.
Things look much more cramped now. On the plus side, treeview headers
and comboboxes have better spacing. Menubars look like crap now though.
Needs someone with artistical talent to figure out.
2012-02-02 00:14:01 +01:00
Benjamin Otte
21e20b0d5b
raleigh: Remove unnecessary border-width declaration
2012-02-02 00:09:05 +01:00
Benjamin Otte
4dd9a73c8a
raleigh: Don't set bg-color for all widgets
...
Just set oit for things that need it.
(FIXME: Buttons should probably not need it, but spinbuttons and
treeview headers don't have a proper background without it.)
2012-02-02 00:05:51 +01:00
Cosimo Cecchi
2ae2c443d0
app-chooser-dialog: cancel the PK operation when the dialog is dismissed
...
This doesn't really seem to have any effect; probably PK doesn't listen
for changes on the passed-in cancellable, but it's correct.
Related to: https://bugzilla.gnome.org/show_bug.cgi?id=649121
2012-02-01 13:21:43 -05:00