]>
Pileus Git - ~andy/gtk/log
Kjartan Maraas [Sun, 19 Jun 2011 15:32:13 +0000 (17:32 +0200)]
Updated Norwegian bokmål translation.
Jorge González [Sun, 19 Jun 2011 15:18:01 +0000 (17:18 +0200)]
Updated Spanish translation
Matthias Clasen [Sat, 18 Jun 2011 16:36:38 +0000 (12:36 -0400)]
Add sibling information to widget path string representations
Matthias Clasen [Sat, 18 Jun 2011 15:11:47 +0000 (11:11 -0400)]
Fix css syntax in example
Matthias Clasen [Sat, 18 Jun 2011 02:57:35 +0000 (22:57 -0400)]
Remove an unused variable
Matthias Clasen [Sat, 18 Jun 2011 00:35:41 +0000 (20:35 -0400)]
Remove nonexisting properties
glade insists on adding GtkGrid:n-rows and :n-columns, for
no good reason...
Cosimo Cecchi [Fri, 17 Jun 2011 15:33:18 +0000 (11:33 -0400)]
tests: import the widget-factory test for theming
Courtesy of Andrea Cimitan <andrea.cimitan@canonical.com>.
Matthias Clasen [Fri, 17 Jun 2011 03:51:06 +0000 (23:51 -0400)]
Update keybinding docs
These were still explaining gtkrc syntax.
Matthias Clasen [Fri, 17 Jun 2011 03:35:24 +0000 (23:35 -0400)]
Remove unnecessary includes
gtkstyle.h is similarly unused.
Matthias Clasen [Fri, 17 Jun 2011 03:33:43 +0000 (23:33 -0400)]
Remove unused includes
Nothing is using gtkrc.h functionality any more.
Matthias Clasen [Fri, 17 Jun 2011 03:18:03 +0000 (23:18 -0400)]
Silence a warning
Matthias Clasen [Fri, 17 Jun 2011 02:15:50 +0000 (22:15 -0400)]
GtkBox: don't reset styles too often
José Aliste [Thu, 16 Jun 2011 18:32:13 +0000 (14:32 -0400)]
info_bar: call style_updated at the end of info_bar_init
This fix a render bug where the infobar would not add borders
arount its content. Fix proposed by Benjamin Otte.
Chun-wei Fan [Thu, 16 Jun 2011 07:34:43 +0000 (15:34 +0800)]
Update Visual C++ projects
Use G_ENABLE_DEBUG for all debug builds
Benjamin Otte [Wed, 15 Jun 2011 20:50:59 +0000 (22:50 +0200)]
toolbar: Better fix for animations
It turns out there's more places where the toolbar item size is used as
the margin box instead of the content box. Because of that, store the
margin box when allocating and use it whenever calls
toolbar_content_get_allocation() instead of calling
gtk_widget_get_allocation().
Benjamin Otte [Wed, 15 Jun 2011 17:59:45 +0000 (19:59 +0200)]
toolbar: Handle the fact that size_allocate() != get_allocation()
size_allocate() allocates the available space for the margin box,
get_allocation() returns the actual space of the content box and those
can be different. And then animations never stop.
If that makes you go "huh?", you might want to read
http://www.w3.org/TR/CSS21/box.html
and the docs for gtk_widget_compute_align().
Benjamin Otte [Wed, 15 Jun 2011 15:24:36 +0000 (11:24 -0400)]
reftests: fix background-area reftest after the last commit
Cosimo Cecchi [Wed, 15 Jun 2011 05:07:11 +0000 (01:07 -0400)]
themingengine: shrink the background size to the padding-box
This fixes a regression introduced by this commit [1] that causes
background to draw beyond the padding-box, which breaks rounded corners,
(in addition to not being compliant with what CSS does by default).
[1] http://git.gnome.org/browse/gtk+/commit/?id=
c56700ca3029a9ab1362009bff35f2a70e432c02
https://bugzilla.gnome.org/show_bug.cgi?id=652618
Xan Lopez [Wed, 15 Jun 2011 12:13:20 +0000 (14:13 +0200)]
themingengine: plug a couple of leaks
Xan Lopez [Wed, 15 Jun 2011 11:45:34 +0000 (13:45 +0200)]
border-image: Fix leakage
Benjamin Otte [Sun, 29 May 2011 03:24:28 +0000 (05:24 +0200)]
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.
Benjamin Otte [Sun, 29 May 2011 05:03:59 +0000 (07:03 +0200)]
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.
Matthias Clasen [Wed, 15 Jun 2011 01:59:55 +0000 (21:59 -0400)]
Add a missing break statement
Matthias Clasen [Wed, 15 Jun 2011 01:58:51 +0000 (21:58 -0400)]
Add a missing break statement
Matthias Clasen [Wed, 15 Jun 2011 01:56:50 +0000 (21:56 -0400)]
Avoid an oob read
Matthias Clasen [Wed, 15 Jun 2011 01:53:53 +0000 (21:53 -0400)]
Remove a redundant NULL check
Matthias Clasen [Wed, 15 Jun 2011 01:50:16 +0000 (21:50 -0400)]
Avoid a dereference-before-null-check
Matthias Clasen [Wed, 15 Jun 2011 01:44:12 +0000 (21:44 -0400)]
Give this code a chance to work
At least it does not get uninitialized variable warnings now.
Matthias Clasen [Wed, 15 Jun 2011 01:18:08 +0000 (21:18 -0400)]
Make this code more meaningful
Matthias Clasen [Wed, 15 Jun 2011 01:14:48 +0000 (21:14 -0400)]
Don't forget to cleanup varargs
William Jon McCann [Tue, 14 Jun 2011 20:01:29 +0000 (16:01 -0400)]
tests: Add simple test for image clipboard
Matej Urbančič [Tue, 14 Jun 2011 16:24:30 +0000 (18:24 +0200)]
Updated Slovenian translation
Juan A. Suarez Romero [Tue, 14 Jun 2011 09:49:23 +0000 (09:49 +0000)]
image: Initialize variable
Matthias Clasen [Tue, 14 Jun 2011 02:35:15 +0000 (22:35 -0400)]
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
Benjamin Otte [Mon, 13 Jun 2011 16:29:07 +0000 (18:29 +0200)]
docs: Add Since tag to GtkWidget::draw
Benjamin Otte [Mon, 13 Jun 2011 16:27:24 +0000 (18:27 +0200)]
demos: Remove unused variable
Benjamin Otte [Mon, 13 Jun 2011 04:25:19 +0000 (06:25 +0200)]
tests: Add a CSS test for color parsing errors
In [particular check for the fix in the last commit.
Benjamin Otte [Mon, 13 Jun 2011 04:24:10 +0000 (06:24 +0200)]
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)
Benjamin Otte [Mon, 13 Jun 2011 04:13:16 +0000 (06:13 +0200)]
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.
Benjamin Otte [Mon, 13 Jun 2011 03:04:44 +0000 (05:04 +0200)]
themingengine: Implement support for multiple border colors
Also use this support to implement inset and outset border styles
without cheats.
Benjamin Otte [Mon, 13 Jun 2011 01:45:18 +0000 (03:45 +0200)]
styleproperty: Add border-*-color style properties
And make border-color a shorthand
Benjamin Otte [Sun, 12 Jun 2011 23:52:42 +0000 (01:52 +0200)]
reftests: Check that the default border color is the foreground color
Benjamin Otte [Sun, 12 Jun 2011 23:50:06 +0000 (01:50 +0200)]
styleproperty: The default border color is the normal color
Benjamin Otte [Sun, 12 Jun 2011 23:26:11 +0000 (01:26 +0200)]
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).
Benjamin Otte [Mon, 13 Jun 2011 03:49:12 +0000 (05:49 +0200)]
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.
Matthias Clasen [Mon, 13 Jun 2011 12:03:40 +0000 (08:03 -0400)]
Bump version
Matthias Clasen [Mon, 13 Jun 2011 11:33:47 +0000 (07:33 -0400)]
Forgotten file
Carlos Garnacho [Sat, 2 Apr 2011 09:46:42 +0000 (11:46 +0200)]
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.
Matthias Clasen [Mon, 13 Jun 2011 10:56:12 +0000 (06:56 -0400)]
Remove broken font-family css test
Matthias Clasen [Mon, 13 Jun 2011 04:16:55 +0000 (00:16 -0400)]
Update for 3.1.6
Ignacio Casal Quinteiro [Thu, 19 May 2011 16:53:05 +0000 (18:53 +0200)]
overlay: add initial version of gtkoverlay
Javier Jardón [Mon, 13 Jun 2011 02:06:04 +0000 (03:06 +0100)]
configure.ac: Use aux directory to store autogenerated files
Daniel Drake [Sun, 12 Jun 2011 16:48:17 +0000 (17:48 +0100)]
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
Matthias Clasen [Mon, 13 Jun 2011 01:36:37 +0000 (21:36 -0400)]
Revert "gtk/gtkmenuitem: gtk_misc_set_alignment replacing"
This reverts commit
49e62d2a5f6cb0cefbb03a4b6a1df413f3903fea .
It turns out that GtkAccelLabel is not quite ready for
widget align properties.
Javier Jardón [Mon, 6 Jun 2011 15:47:40 +0000 (16:47 +0100)]
tests: use GdkRGBA instead GdkColor
Javier Jardón [Sun, 12 Jun 2011 22:09:08 +0000 (23:09 +0100)]
gtk-demo/colorsel.c: Do not use GtkAlignment
Javier Jardón [Sun, 12 Jun 2011 21:40:22 +0000 (22:40 +0100)]
gtk.symbols: Add missing api
Benjamin Otte [Sun, 12 Jun 2011 21:35:39 +0000 (23:35 +0200)]
default theme: Fix menuitem check/radio colors
Benjamin Otte [Sun, 12 Jun 2011 21:28:43 +0000 (23:28 +0200)]
default theme: fix menuitem selections
Benjamin Otte [Sun, 12 Jun 2011 21:26:53 +0000 (23:26 +0200)]
default theme: fix tooltip colors
Benjamin Otte [Sun, 12 Jun 2011 20:58:52 +0000 (22:58 +0200)]
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.
Benjamin Otte [Sun, 12 Jun 2011 20:58:10 +0000 (22:58 +0200)]
themingengine: Reduce border to 0 on hidden sides
Fixes drawing of expanders.
Benjamin Otte [Sun, 12 Jun 2011 20:07:12 +0000 (22:07 +0200)]
themingengine: Fix inset/outset drawing
Javier Jardón [Sun, 12 Jun 2011 20:45:47 +0000 (21:45 +0100)]
gailtextcell: Fix typo
Ignacio Casal Quinteiro [Sun, 12 Jun 2011 15:52:23 +0000 (17:52 +0200)]
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.
Benjamin Otte [Sun, 12 Jun 2011 01:42:29 +0000 (03:42 +0200)]
roundedbox: Handle shrinking to zero
We need it for wide separators.
Cosimo Cecchi [Sat, 11 Jun 2011 17:32:15 +0000 (13:32 -0400)]
themingengine: set the right coordinates for the rounded box rect
Matej Urbančič [Sat, 11 Jun 2011 15:44:59 +0000 (17:44 +0200)]
Updated Slovenian translation
Matej Urbančič [Sat, 11 Jun 2011 15:40:17 +0000 (17:40 +0200)]
Updated Slovenian translation
Jorge González [Sat, 11 Jun 2011 09:34:19 +0000 (11:34 +0200)]
Updated Spanish translation
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
Benjamin Otte [Sat, 11 Jun 2011 08:41:17 +0000 (10:41 +0200)]
reftests: Add reftest for unresolvable properties
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.
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.
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.
Benjamin Otte [Sat, 11 Jun 2011 04:19:51 +0000 (06:19 +0200)]
themingengine: Render inset box shadow on top of backgrounds
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.
Cosimo Cecchi [Tue, 7 Jun 2011 16:57:08 +0000 (12:57 -0400)]
cssprovider: add a doc paragraph about box-shadow
Cosimo Cecchi [Thu, 2 Jun 2011 00:59:14 +0000 (20:59 -0400)]
styleproperty: register the box-shadow property
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.
Benjamin Otte [Sat, 11 Jun 2011 04:13:00 +0000 (06:13 +0200)]
themingengine: Draw border with GtkRoundedBox
Benjamin Otte [Sat, 11 Jun 2011 02:14:19 +0000 (04:14 +0200)]
themingengine: Use GtkRoundedBox for drawing backgrounds
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.
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.
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.
Benjamin Otte [Sat, 11 Jun 2011 00:14:40 +0000 (02:14 +0200)]
themingengine: remove unused variable
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.
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.
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.
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.
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.
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
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
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
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
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
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
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
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
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