]> Pileus Git - ~andy/gtk/log
~andy/gtk
13 years agothemingengine: set the right coordinates for the rounded box rect
Cosimo Cecchi [Sat, 11 Jun 2011 17:32:15 +0000 (13:32 -0400)]
themingengine: set the right coordinates for the rounded box rect

13 years agoUpdated Slovenian translation
Matej Urbančič [Sat, 11 Jun 2011 15:44:59 +0000 (17:44 +0200)]
Updated Slovenian translation

13 years agoUpdated Slovenian translation
Matej Urbančič [Sat, 11 Jun 2011 15:40:17 +0000 (17:40 +0200)]
Updated Slovenian translation

13 years agoUpdated Spanish translation
Jorge González [Sat, 11 Jun 2011 09:34:19 +0000 (11:34 +0200)]
Updated Spanish translation

13 years agostyleproperty: Resolve NULL RGBAs to pink
Benjamin Otte [Sat, 11 Jun 2011 08:44:16 +0000 (10:44 +0200)]
styleproperty: Resolve NULL RGBAs to pink

.. instead of returning NULL and crashing.

Fixes no-colors reftest

13 years agoreftests: Add reftest for unresolvable properties
Benjamin Otte [Sat, 11 Jun 2011 08:41:17 +0000 (10:41 +0200)]
reftests: Add reftest for unresolvable properties

13 years agostyleproperty: Fall back to default values, instead of recursing
Benjamin Otte [Sat, 11 Jun 2011 08:02:58 +0000 (10:02 +0200)]
styleproperty: Fall back to default values, instead of recursing

Copy/paste error. The original commit message even explains this.

13 years agostyleproperty: Add a default value func for border-image-width
Benjamin Otte [Sat, 11 Jun 2011 07:23:34 +0000 (09:23 +0200)]
styleproperty: Add a default value func for border-image-width

This is necessary because we want to use NULL as the default value. But
the default value for borders is { 0, 0, 0, 0 } and not NULL.

Fixes border-image-gradient and border-image-repeat reftests.

13 years agoreftests: Add a test for inset box-shadow
Benjamin Otte [Sat, 11 Jun 2011 06:42:05 +0000 (08:42 +0200)]
reftests: Add a test for inset box-shadow

This test is copied from the CSS spec. The reference is very sensitive
to the rendering algorithm in use, because the rounded corners have
semi-transparent pixels. It might be necessary to update them in the
future.

13 years agothemingengine: Render inset box shadow on top of backgrounds
Benjamin Otte [Sat, 11 Jun 2011 04:19:51 +0000 (06:19 +0200)]
themingengine: Render inset box shadow on top of backgrounds

13 years agostyleproperty: Parse shadow options in any order
Benjamin Otte [Sat, 11 Jun 2011 03:24:54 +0000 (05:24 +0200)]
styleproperty: Parse shadow options in any order

The CSS spec allows random ordering of various properties, so we should,
too.

13 years agocssprovider: add a doc paragraph about box-shadow
Cosimo Cecchi [Tue, 7 Jun 2011 16:57:08 +0000 (12:57 -0400)]
cssprovider: add a doc paragraph about box-shadow

13 years agostyleproperty: register the box-shadow property
Cosimo Cecchi [Thu, 2 Jun 2011 00:59:14 +0000 (20:59 -0400)]
styleproperty: register the box-shadow property

13 years agoshadow: add _gtk_box_shadow_render()
Cosimo Cecchi [Thu, 2 Jun 2011 00:58:53 +0000 (20:58 -0400)]
shadow: add _gtk_box_shadow_render()

This supports only inset box-shadow elements for now.

13 years agothemingengine: Draw border with GtkRoundedBox
Benjamin Otte [Sat, 11 Jun 2011 04:13:00 +0000 (06:13 +0200)]
themingengine: Draw border with GtkRoundedBox

13 years agothemingengine: Use GtkRoundedBox for drawing backgrounds
Benjamin Otte [Sat, 11 Jun 2011 02:14:19 +0000 (04:14 +0200)]
themingengine: Use GtkRoundedBox for drawing backgrounds

13 years agothemingengine: Do pattern merging smarter
Benjamin Otte [Sat, 11 Jun 2011 02:06:22 +0000 (04:06 +0200)]
themingengine: Do pattern merging smarter

Create an intermdiate surface and fill() with it later. Instead of doing
clip + paint twice.

13 years agogtk: Add GtkRoundedBox
Benjamin Otte [Sat, 11 Jun 2011 01:57:57 +0000 (03:57 +0200)]
gtk: Add GtkRoundedBox

CSS drawing operates on rounded boxes a lot, so it makes sense to split
them out instead of duplicating them everywhere.

13 years agothemingengine: Get rid of extra variables
Benjamin Otte [Sat, 11 Jun 2011 01:56:56 +0000 (03:56 +0200)]
themingengine: Get rid of extra variables

Now that we don't change the width/height anymore, we can keep using it
for scaling he background.

13 years agothemingengine: remove unused variable
Benjamin Otte [Sat, 11 Jun 2011 00:14:40 +0000 (02:14 +0200)]
themingengine: remove unused variable

13 years agoreftests: Add background-area reftest
Benjamin Otte [Sat, 11 Jun 2011 00:12:35 +0000 (02:12 +0200)]
reftests: Add background-area reftest

Checks the fix from last commit: background area is supposed to be the
border box.

13 years agothemingengine: background applies to full border
Benjamin Otte [Sat, 11 Jun 2011 00:02:45 +0000 (02:02 +0200)]
themingengine: background applies to full border

The code was attempting to only apply it to half of the border. But
according to CSS, the background area by default is the full border box.

13 years agothemingengine: Remove unnecessary optimization
Benjamin Otte [Fri, 10 Jun 2011 23:32:43 +0000 (01:32 +0200)]
themingengine: Remove unnecessary optimization

Code is likely as fast or faster without it, and this saves code.

13 years agoUpdate gtkimcontextsimpleseqs.h
Matthias Clasen [Fri, 10 Jun 2011 22:36:06 +0000 (18:36 -0400)]
Update gtkimcontextsimpleseqs.h

This is using the updated compose-parse.py from the previous commit.

13 years agoUpdate compose-parse.py
Matthias Clasen [Fri, 10 Jun 2011 22:33:05 +0000 (18:33 -0400)]
Update compose-parse.py

This update makes compose-parse.py work with Unicode 6.0 and make
it generate the new GDK_KEY_ defines. Patch by Ryo Hashimoto,
bug 651979.

13 years agogtktoolitemgroup: gtk_misc_set_alignment replacing
Diego Celix [Fri, 10 Jun 2011 00:38:52 +0000 (02:38 +0200)]
gtktoolitemgroup: gtk_misc_set_alignment replacing

Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtktoolitemgroup.c

https://bugzilla.gnome.org/show_bug.cgi?id=650762

13 years agogtkprinteroptionwidget: gtk_misc_set_alignment
Diego Celix [Fri, 10 Jun 2011 00:32:05 +0000 (02:32 +0200)]
gtkprinteroptionwidget: gtk_misc_set_alignment

Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkprinteroptionwidget.c

https://bugzilla.gnome.org/show_bug.cgi?id=650762

13 years agogtk/gtkfontsel: gtk_misc_set_alignment replacing
Diego Celix [Fri, 10 Jun 2011 00:47:09 +0000 (02:47 +0200)]
gtk/gtkfontsel: gtk_misc_set_alignment replacing

Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkfontsel.c

https://bugzilla.gnome.org/show_bug.cgi?id=650762

13 years agogtk/gtkassistant: gtk_misc_set_alignment replacing
Diego Celix [Fri, 10 Jun 2011 00:26:43 +0000 (02:26 +0200)]
gtk/gtkassistant: gtk_misc_set_alignment replacing

Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkassistant.c

https://bugzilla.gnome.org/show_bug.cgi?id=650762

13 years agogtkprintunixdialog: gtk_misc_set_alignment replace
Diego Celix [Thu, 9 Jun 2011 02:12:17 +0000 (04:12 +0200)]
gtkprintunixdialog: gtk_misc_set_alignment replace

Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkprintunixdialog.c

https://bugzilla.gnome.org/show_bug.cgi?id=650762

13 years agogtkprintbackend: gtk_misc_set_alignment replacing
Diego Celix [Thu, 9 Jun 2011 01:44:03 +0000 (03:44 +0200)]
gtkprintbackend: gtk_misc_set_alignment replacing

Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkprintbackend.c

https://bugzilla.gnome.org/show_bug.cgi?id=650762

13 years agogtkpagesetupunixdialog: gtk_misc_set_alignment
Diego Celix [Thu, 9 Jun 2011 02:14:21 +0000 (04:14 +0200)]
gtkpagesetupunixdialog: gtk_misc_set_alignment

Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkpagesetupunixdialog.c

https://bugzilla.gnome.org/show_bug.cgi?id=650762

13 years agogtkfilechooserdefault: gtk_misc_set_alignment
Diego Celix [Thu, 9 Jun 2011 01:54:37 +0000 (03:54 +0200)]
gtkfilechooserdefault: gtk_misc_set_alignment

Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkfilechooserdefault.c

https://bugzilla.gnome.org/show_bug.cgi?id=650762

13 years agogtkcellrendereraccel: gtk_misc_set_alignment
Diego Celix [Thu, 9 Jun 2011 01:58:38 +0000 (03:58 +0200)]
gtkcellrendereraccel: gtk_misc_set_alignment

Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkcellrendereraccel.c

https://bugzilla.gnome.org/show_bug.cgi?id=650762

13 years agogtk/gtkmessagedialog: gtk_misc_set_alignment
Diego Celix [Sat, 21 May 2011 18:32:00 +0000 (20:32 +0200)]
gtk/gtkmessagedialog: gtk_misc_set_alignment

Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkmessagedialog.c

https://bugzilla.gnome.org/show_bug.cgi?id=650762

13 years agogtk/gtkmountoperation: gtk_misc_set_alignment
Diego Celix [Sat, 21 May 2011 18:08:51 +0000 (20:08 +0200)]
gtk/gtkmountoperation: gtk_misc_set_alignment

Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkmountoperation.c

https://bugzilla.gnome.org/show_bug.cgi?id=650762

13 years agogtk/gtkradiomenuitem: gtk_misc_set_alignment
Diego Celix [Sat, 21 May 2011 17:58:33 +0000 (19:58 +0200)]
gtk/gtkradiomenuitem: gtk_misc_set_alignment

Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkradiomenuitem.c

https://bugzilla.gnome.org/show_bug.cgi?id=650762

13 years agogtk/gtkmenuitem: gtk_misc_set_alignment replacing
Diego Celix [Sat, 21 May 2011 17:54:50 +0000 (19:54 +0200)]
gtk/gtkmenuitem: gtk_misc_set_alignment replacing

Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkmenuitem.c

https://bugzilla.gnome.org/show_bug.cgi?id=650762

13 years agoOne more change
Matthias Clasen [Fri, 10 Jun 2011 21:42:14 +0000 (17:42 -0400)]
One more change

13 years agoExpand migration hints for h/v boxes
Matthias Clasen [Fri, 10 Jun 2011 21:40:16 +0000 (17:40 -0400)]
Expand migration hints for h/v boxes

13 years agobuild: fix win32 configure checks
Marc-André Lureau [Fri, 10 Jun 2011 12:03:47 +0000 (14:03 +0200)]
build: fix win32 configure checks

Notice the broken check for "os_win32" vs. "$os_win32".
Improve a bit the rest of autofoo stuff around it.

https://bugzilla.gnome.org/show_bug.cgi?id=652282

13 years agoreftests: Remove unused file from EXTRA_DIST
Benjamin Otte [Fri, 10 Jun 2011 14:26:39 +0000 (16:26 +0200)]
reftests: Remove unused file from EXTRA_DIST

13 years agocups: Fix unused variable warning when not using colord
Benjamin Otte [Fri, 10 Jun 2011 13:00:39 +0000 (15:00 +0200)]
cups: Fix unused variable warning when not using colord

13 years agogtk: Use const instead G_CONST_RETURN
Javier Jardón [Mon, 6 Jun 2011 18:13:44 +0000 (19:13 +0100)]
gtk: Use const instead G_CONST_RETURN

13 years agodocs: Do not use G_CONST_RETURN
Javier Jardón [Mon, 6 Jun 2011 18:07:23 +0000 (19:07 +0100)]
docs: Do not use G_CONST_RETURN

13 years agogdk: Use const instead G_CONST_RETURN
Javier Jardón [Mon, 6 Jun 2011 18:05:18 +0000 (19:05 +0100)]
gdk: Use const instead G_CONST_RETURN

13 years agoIf --enable-colord or --disable-colord is not used when configuring, autodetect the...
Richard Hughes [Fri, 10 Jun 2011 11:34:40 +0000 (12:34 +0100)]
If --enable-colord or --disable-colord is not used when configuring, autodetect the presence of colord

13 years agoUpdated Hebrew translation.
Yaron Shahrabani [Fri, 10 Jun 2011 09:56:42 +0000 (12:56 +0300)]
Updated Hebrew translation.

13 years agodocs: Improve crossreferences
Javier Jardón [Fri, 10 Jun 2011 09:55:28 +0000 (10:55 +0100)]
docs: Improve crossreferences

Use #GtkOrientable:orientation instead "orientation"

13 years agoBox, etc: Improve docs after H* and V* deprecations.
Murray Cumming [Thu, 9 Jun 2011 20:59:38 +0000 (22:59 +0200)]
Box, etc: Improve docs after H* and V* deprecations.

Stop documenting the base class as just a base class for the
H and V specializations, copying the useful descriptions from
those H/V classes to the base class. Do not advise the use of
the H/V classes or refer to them unnecessarily.

13 years agoUpdated GLib Translations.
Yaron Shahrabani [Fri, 10 Jun 2011 05:17:10 +0000 (08:17 +0300)]
Updated GLib Translations.

13 years agoAvoid underallocations in the custom paper dialog
Matthias Clasen [Fri, 10 Jun 2011 04:15:10 +0000 (00:15 -0400)]
Avoid underallocations in the custom paper dialog

13 years agoDon't rely on button allocations for invisible headers
Matthias Clasen [Fri, 10 Jun 2011 04:10:08 +0000 (00:10 -0400)]
Don't rely on button allocations for invisible headers

Now that we are not allocating treeview column buttons anymore
with invisible headers, we can't rely on their allocations for
other things like cell area computations anymore. Use x-offset
and width of the column directly, instead.

13 years agoAdd API to get x position of treeview columns
Matthias Clasen [Fri, 10 Jun 2011 04:09:25 +0000 (00:09 -0400)]
Add API to get x position of treeview columns

Their width was already available.

13 years agoborder-image: unpack the GtkGradient if there's one
Cosimo Cecchi [Fri, 10 Jun 2011 02:41:36 +0000 (22:41 -0400)]
border-image: unpack the GtkGradient if there's one

So that it will eventually be resolved by the style property lookup
machinery.

13 years agocellrendererpix: make the icon render properly again
Cosimo Cecchi [Fri, 10 Jun 2011 02:56:56 +0000 (22:56 -0400)]
cellrendererpix: make the icon render properly again

pix_rect was not initialized anymore, so the gdk_rectangle_intersect()
call would always fail.

13 years agoGtkTreeView: Don't short-circuit header-height calculation
Matthias Clasen [Fri, 10 Jun 2011 01:40:08 +0000 (21:40 -0400)]
GtkTreeView: Don't short-circuit header-height calculation

The code was putting header_height at zero when there is
no model. That leads to temporary underallocation of header
buttons.

13 years agoGtkDialog: avoid underallocations
Matthias Clasen [Fri, 10 Jun 2011 00:40:45 +0000 (20:40 -0400)]
GtkDialog: avoid underallocations

GtkDialog changes its size depending on style properties. If
we only do this in response to ::style-updated, it happens during
the initial realization of the dialog and leads to the dialog
'growing' between when we determine the initial window size and
when we allocate it that size. So, do this beforehand.

13 years agoborder-image: add support for border-image-width too
Cosimo Cecchi [Thu, 9 Jun 2011 23:59:14 +0000 (19:59 -0400)]
border-image: add support for border-image-width too

It's useful to set a slice size != border-width, as backgrounds are
clipped to border-width too.

As slices can be half-transparent and overlap the background,
this would not fill the border box properly if we only use a single
property for specifying the width.

Also, this brings us even closer to CSS3.

13 years agoDon't size-allocate invisible headers
Matthias Clasen [Thu, 9 Jun 2011 22:55:19 +0000 (18:55 -0400)]
Don't size-allocate invisible headers

We don't ignore their size requests when determining the
column width, so allocating them is bound to spew tons
of annoying underallocation warnings.

13 years agoshadow: render icon-shadow for spinners
Cosimo Cecchi [Mon, 6 Jun 2011 15:38:45 +0000 (11:38 -0400)]
shadow: render icon-shadow for spinners

13 years agoentry: use the current state when rendering symbolic icons
Cosimo Cecchi [Tue, 31 May 2011 22:43:43 +0000 (18:43 -0400)]
entry: use the current state when rendering symbolic icons

Make sure the current state is picked up when rendering symbolic icons
too.

13 years agoentry: use GTK_STYLE_CLASS_IMAGE when rendering the entry icon
Cosimo Cecchi [Wed, 25 May 2011 01:33:14 +0000 (21:33 -0400)]
entry: use GTK_STYLE_CLASS_IMAGE when rendering the entry icon

13 years agostylecontext: add an "image" style class
Cosimo Cecchi [Wed, 25 May 2011 01:29:20 +0000 (21:29 -0400)]
stylecontext: add an "image" style class

For images such as icons in GtkEntry widgets.

13 years agoentry: use gtk_render_icon()
Cosimo Cecchi [Tue, 31 May 2011 20:13:15 +0000 (16:13 -0400)]
entry: use gtk_render_icon()

13 years agocellrendererpix: use gtk_render_icon()
Cosimo Cecchi [Tue, 31 May 2011 20:05:31 +0000 (16:05 -0400)]
cellrendererpix: use gtk_render_icon()

13 years agoimage: use gtk_render_icon()
Cosimo Cecchi [Sat, 21 May 2011 03:51:37 +0000 (23:51 -0400)]
image: use gtk_render_icon()

13 years agostylecontext: add gtk_render_icon()
Cosimo Cecchi [Wed, 25 May 2011 00:59:50 +0000 (20:59 -0400)]
stylecontext: add gtk_render_icon()

13 years agothemingengine: use cairo image surfaces to render state effects
Cosimo Cecchi [Mon, 6 Jun 2011 14:23:44 +0000 (10:23 -0400)]
themingengine: use cairo image surfaces to render state effects

This makes the code cleaner and allows this to be re-used in a
pixbuf-less future.

13 years agothemingengine: add gtk_theming_engine_render_icon()
Cosimo Cecchi [Mon, 6 Jun 2011 14:23:06 +0000 (10:23 -0400)]
themingengine: add gtk_theming_engine_render_icon()

Renders a pixbuf in the provided rectangle, applying effects such as
'icon-shadow'.

13 years agoshadow: add _gtk_icon_shadow_paint()
Cosimo Cecchi [Sat, 21 May 2011 03:51:16 +0000 (23:51 -0400)]
shadow: add _gtk_icon_shadow_paint()

Paints a shadow of the current source, using the defined colors.

13 years agostyleproperties: add an 'icon-shadow' style property
Cosimo Cecchi [Sat, 21 May 2011 03:48:36 +0000 (23:48 -0400)]
styleproperties: add an 'icon-shadow' style property

It's a custom property with the same semantics of text-shadow, which
works on icons and icon-like UI elements, such as spinners, arrows and
separators.

13 years agoborder-image: fix a horizontal/vertical index typo
Cosimo Cecchi [Thu, 9 Jun 2011 21:05:27 +0000 (17:05 -0400)]
border-image: fix a horizontal/vertical index typo

13 years agoUpdated Spanish translation
Jorge González [Thu, 9 Jun 2011 21:05:15 +0000 (23:05 +0200)]
Updated Spanish translation

13 years agospinbutton: don't render an additional background below arrows
Cosimo Cecchi [Thu, 9 Jun 2011 18:56:09 +0000 (14:56 -0400)]
spinbutton: don't render an additional background below arrows

It's an entry, so it already has a background below, even when the entry
doesn't have a frame. Also, gtk_spin_button_draw_arrow() will render a
background and a frame in the arrow space anyway.

13 years agospinbutton: don't remove the entry style class while rendering arrows
Cosimo Cecchi [Thu, 9 Jun 2011 18:55:50 +0000 (14:55 -0400)]
spinbutton: don't remove the entry style class while rendering arrows

13 years agoborder-image: don't try to unpack values from a NULL border-image
Cosimo Cecchi [Thu, 9 Jun 2011 18:54:00 +0000 (14:54 -0400)]
border-image: don't try to unpack values from a NULL border-image

NULL is a valid value for border-image, so if it's NULL when unpacking,
don't try to access the struct fields, but just init the GValues for the
unpacked parameters.

13 years agogtkcssprovider.h: Remove a trailing comma.
Murray Cumming [Thu, 9 Jun 2011 18:36:14 +0000 (20:36 +0200)]
gtkcssprovider.h: Remove a trailing comma.

13 years agoAdd optional colord support to the CUPS print module
Richard Hughes [Fri, 3 Jun 2011 13:25:54 +0000 (14:25 +0100)]
Add optional colord support to the CUPS print module

This functionality adds a new 'Printer Profile' entry to the 'Color' page in the
UNIX print dialog if colord support is enabled.

This shows the user what color profile will be used for the settings they have
selected, and if no profile or the default profile is going to be used.

We are deliberately not allowing the user to _change_ the selected profile, as
the ICC profile is an implementation detail, and we should not change the other
print settings based on the characterization state.

The OpenICC group broadly recommend showing the profile that is used, so that
power users can be sure the correct profile is being used at the right time.

Normal users won't care, as they don't know how horrible the color match is
without profiling the printer and media.

13 years agoAdd a 'value' GObject property to GtkPrinterOption so that it can be used with g_obje...
Richard Hughes [Thu, 9 Jun 2011 14:30:31 +0000 (15:30 +0100)]
Add a 'value' GObject property to GtkPrinterOption so that it can be used with g_object_bind_property()

13 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Thu, 9 Jun 2011 11:02:39 +0000 (13:02 +0200)]
Updated Norwegian bokmål translation

13 years agotesttreeview: Don't use deprecated classes to make things interesting
Benjamin Otte [Thu, 9 Jun 2011 04:21:11 +0000 (06:21 +0200)]
testtreeview: Don't use deprecated classes to make things interesting

13 years agotestgtk: Fix deprecation
Benjamin Otte [Thu, 9 Jun 2011 04:20:42 +0000 (06:20 +0200)]
testgtk: Fix deprecation

13 years agogail: Fix for new box handling
Benjamin Otte [Thu, 9 Jun 2011 04:18:10 +0000 (06:18 +0200)]
gail: Fix for new box handling

13 years agogail: Fix scrollbar index_in_parent() implementation
Benjamin Otte [Thu, 9 Jun 2011 04:16:23 +0000 (06:16 +0200)]
gail: Fix scrollbar index_in_parent() implementation

13 years agogail: Remove unreachable code
Benjamin Otte [Thu, 9 Jun 2011 04:00:34 +0000 (06:00 +0200)]
gail: Remove unreachable code

13 years agoreftests: ADd test for overlapping border-image slices
Benjamin Otte [Thu, 9 Jun 2011 03:41:53 +0000 (05:41 +0200)]
reftests: ADd test for overlapping border-image slices

13 years agothemingengine: Don't modify pattern
Benjamin Otte [Thu, 9 Jun 2011 02:50:12 +0000 (04:50 +0200)]
themingengine: Don't modify pattern

Instead, scale/unscale the cairo_t.

13 years agoreftests: Add border-image-repeat
Benjamin Otte [Thu, 9 Jun 2011 02:48:40 +0000 (04:48 +0200)]
reftests: Add border-image-repeat

Tests that border-image-repeat is rendered correctly.
The reftest is done via toolbars stuffed into a GtkFixed using
background-image and images tuned for it.

13 years agoborder-image: Redo border-image rendering
Benjamin Otte [Wed, 8 Jun 2011 23:41:18 +0000 (01:41 +0200)]
border-image: Redo border-image rendering

The new code is smaller, less crashy and correct(er), but arguably more
complex. I'd have liked to make it simpler, but this border image
algorithm is complex...

13 years agoborder-image-repeat: Fix order of hrepeat and vrepeat
Benjamin Otte [Wed, 8 Jun 2011 05:04:38 +0000 (07:04 +0200)]
border-image-repeat: Fix order of hrepeat and vrepeat

13 years agoborder-image: Don't use NEAREST filtering
Benjamin Otte [Tue, 7 Jun 2011 23:58:46 +0000 (01:58 +0200)]
border-image: Don't use NEAREST filtering

use EXTEND_PAD instead to avoid borders.

13 years agoborderimage: No need to resolve
Benjamin Otte [Tue, 7 Jun 2011 14:48:47 +0000 (16:48 +0200)]
borderimage: No need to resolve

border-image is a shorthand, so it's unpacked unresolved and repacked
resolved.

13 years agoborder-image: move private types to gtkcsstypes.c
Cosimo Cecchi [Sun, 5 Jun 2011 20:49:54 +0000 (16:49 -0400)]
border-image: move private types to gtkcsstypes.c

13 years agoborder-image: don't cache the cairo_surface_t in GtkBorderImage
Cosimo Cecchi [Wed, 1 Jun 2011 14:23:36 +0000 (10:23 -0400)]
border-image: don't cache the cairo_surface_t in GtkBorderImage

It's not useful to cache these surfaces here, as the GtkBorderImage will
be always generated on the fly, being a shorthand property.

This also allows to get rid of the intermediate image surfaces for
rendering the slices; we now use cairo_surface_create_for_rectangle()
to proxy the slices from the source surface to the rendered area, which
should also yield better performance.

13 years agodocs: expand the docs for border-image
Cosimo Cecchi [Tue, 31 May 2011 13:32:00 +0000 (09:32 -0400)]
docs: expand the docs for border-image

https://bugzilla.gnome.org/show_bug.cgi?id=651194

13 years agoborder-image: ensure image->resolved is set when resolving the gradient
Cosimo Cecchi [Fri, 27 May 2011 22:13:35 +0000 (18:13 -0400)]
border-image: ensure image->resolved is set when resolving the gradient

https://bugzilla.gnome.org/show_bug.cgi?id=651194

13 years agoreftests: add reftests for border-image with gradient and url sources
Cosimo Cecchi [Thu, 26 May 2011 22:12:00 +0000 (18:12 -0400)]
reftests: add reftests for border-image with gradient and url sources

https://bugzilla.gnome.org/show_bug.cgi?id=651194

13 years agostyleproperty: turn border-image into a shorthand property
Cosimo Cecchi [Thu, 26 May 2011 19:54:38 +0000 (15:54 -0400)]
styleproperty: turn border-image into a shorthand property

It's composed by
- border-image-source: a cairo_pattern_t holding an image from file or a
  gradient
- border-image-slice: a GtkBorder containing the slice offsets to apply
  on the image
- border-image-repeat: a GtkRepeatType for the image

We deviate from pure CSS3 in the following ways:

* border-image-width is assumed to be always 1, i.e. always equal to
  what's specified by border-width. I don't think it's a particularly
  useful property to have, but we could add it later if needed.
* border-image-outset is absent, as we can't render outside of the
  allocation yet.

https://bugzilla.gnome.org/show_bug.cgi?id=651194

13 years agoborder-image: change Gtk9Slice to GtkBorderImage
Cosimo Cecchi [Thu, 26 May 2011 19:53:28 +0000 (15:53 -0400)]
border-image: change Gtk9Slice to GtkBorderImage

It's a similar private type, which is much more powerful, and respects
the CSS rendering specification for border-image.

https://bugzilla.gnome.org/show_bug.cgi?id=651194