]>
Pileus Git - ~andy/gtk/log
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
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
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
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
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
Matthias Clasen [Fri, 10 Jun 2011 21:42:14 +0000 (17:42 -0400)]
One more change
Matthias Clasen [Fri, 10 Jun 2011 21:40:16 +0000 (17:40 -0400)]
Expand migration hints for h/v boxes
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
Benjamin Otte [Fri, 10 Jun 2011 14:26:39 +0000 (16:26 +0200)]
reftests: Remove unused file from EXTRA_DIST
Benjamin Otte [Fri, 10 Jun 2011 13:00:39 +0000 (15:00 +0200)]
cups: Fix unused variable warning when not using colord
Javier Jardón [Mon, 6 Jun 2011 18:13:44 +0000 (19:13 +0100)]
gtk: Use const instead G_CONST_RETURN
Javier Jardón [Mon, 6 Jun 2011 18:07:23 +0000 (19:07 +0100)]
docs: Do not use G_CONST_RETURN
Javier Jardón [Mon, 6 Jun 2011 18:05:18 +0000 (19:05 +0100)]
gdk: Use const instead G_CONST_RETURN
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
Yaron Shahrabani [Fri, 10 Jun 2011 09:56:42 +0000 (12:56 +0300)]
Updated Hebrew translation.
Javier Jardón [Fri, 10 Jun 2011 09:55:28 +0000 (10:55 +0100)]
docs: Improve crossreferences
Use #GtkOrientable:orientation instead "orientation"
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.
Yaron Shahrabani [Fri, 10 Jun 2011 05:17:10 +0000 (08:17 +0300)]
Updated GLib Translations.
Matthias Clasen [Fri, 10 Jun 2011 04:15:10 +0000 (00:15 -0400)]
Avoid underallocations in the custom paper dialog
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.
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.
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.
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.
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.
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.
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.
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.
Cosimo Cecchi [Mon, 6 Jun 2011 15:38:45 +0000 (11:38 -0400)]
shadow: render icon-shadow for spinners
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.
Cosimo Cecchi [Wed, 25 May 2011 01:33:14 +0000 (21:33 -0400)]
entry: use GTK_STYLE_CLASS_IMAGE when rendering the entry icon
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.
Cosimo Cecchi [Tue, 31 May 2011 20:13:15 +0000 (16:13 -0400)]
entry: use gtk_render_icon()
Cosimo Cecchi [Tue, 31 May 2011 20:05:31 +0000 (16:05 -0400)]
cellrendererpix: use gtk_render_icon()
Cosimo Cecchi [Sat, 21 May 2011 03:51:37 +0000 (23:51 -0400)]
image: use gtk_render_icon()
Cosimo Cecchi [Wed, 25 May 2011 00:59:50 +0000 (20:59 -0400)]
stylecontext: add gtk_render_icon()
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.
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'.
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.
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.
Cosimo Cecchi [Thu, 9 Jun 2011 21:05:27 +0000 (17:05 -0400)]
border-image: fix a horizontal/vertical index typo
Jorge González [Thu, 9 Jun 2011 21:05:15 +0000 (23:05 +0200)]
Updated Spanish translation
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.
Cosimo Cecchi [Thu, 9 Jun 2011 18:55:50 +0000 (14:55 -0400)]
spinbutton: don't remove the entry style class while rendering arrows
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.
Murray Cumming [Thu, 9 Jun 2011 18:36:14 +0000 (20:36 +0200)]
gtkcssprovider.h: Remove a trailing comma.
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.
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()
Kjartan Maraas [Thu, 9 Jun 2011 11:02:39 +0000 (13:02 +0200)]
Updated Norwegian bokmål translation