]>
Pileus Git - ~andy/gtk/log
Benjamin Otte [Thu, 7 Apr 2011 23:32:13 +0000 (01:32 +0200)]
tests: Check errors in css test
Benjamin Otte [Thu, 7 Apr 2011 22:50:32 +0000 (00:50 +0200)]
tests: Change the way the code does diffs
Use a temp file for intermediate storage and properly unlink that
tempfile after the diff is done.
Benjamin Otte [Thu, 7 Apr 2011 22:18:38 +0000 (00:18 +0200)]
cssprovider: use INVALID_SYNTAX for unexpected token error
Benjamin Otte [Thu, 7 Apr 2011 22:08:10 +0000 (00:08 +0200)]
cssprovider: Change declaration parsing for error reporting
Previously, we only checked for errors after parsing the full
declaration. Now we detect errors with the property before even
attempting to parse its value.
The benefit here is that the error reporting reports the correct line
and position numbers.
Benjamin Otte [Thu, 7 Apr 2011 22:07:55 +0000 (00:07 +0200)]
API: cssprovider: Add more error codes
Benjamin Otte [Thu, 7 Apr 2011 15:26:47 +0000 (17:26 +0200)]
API: cssprovider: Make error a signal
Benjamin Otte [Thu, 7 Apr 2011 12:03:08 +0000 (14:03 +0200)]
cssprovider: Handle errors completely via new error functions
Benjamin Otte [Thu, 7 Apr 2011 11:37:03 +0000 (13:37 +0200)]
cssprovider: Provide better API to set errors
Benjamin Otte [Thu, 7 Apr 2011 10:38:53 +0000 (12:38 +0200)]
cssprovider: Have a private error variable
Benjamin Otte [Thu, 7 Apr 2011 10:20:22 +0000 (12:20 +0200)]
tests: Add test for auto-closing at end of file
Benjamin Otte [Thu, 7 Apr 2011 10:19:07 +0000 (12:19 +0200)]
cssprovider: Automatically add final closing bracket to last rule
Benjamin Otte [Thu, 7 Apr 2011 10:14:58 +0000 (12:14 +0200)]
tests: Add CSS test checking that we don't need a semicolon
Benjamin Otte [Thu, 7 Apr 2011 00:24:51 +0000 (02:24 +0200)]
tests: Add two simple css tests
Benjamin Otte [Thu, 7 Apr 2011 00:15:42 +0000 (02:15 +0200)]
tests: Add a test for the CSS parser
Tests in the parser need 1 or 2 files:
1) test.css
2) test.ref.css (optional, defaults to test.css)
The test instantiates a CSS provider, loads test.css, then dumps the
loaded file to test.out.css and then checks that that file matches
test.ref.css. If not, it dumps a diff between those two to the log and
fails.
You want to run the test with --verbose to get the output dumped to
stdout.
Benjamin Otte [Thu, 7 Apr 2011 00:15:02 +0000 (02:15 +0200)]
cssprovider: Ignore empty rules
Benjamin Otte [Wed, 6 Apr 2011 20:03:35 +0000 (22:03 +0200)]
API: gtk: Add gtk_css_provider_to_string()
This is intented to convert the contents of a CSS provider back to a
string.
It is not complete yet but good enough for starting a testsuite. :)
Benjamin Otte [Mon, 11 Apr 2011 16:38:22 +0000 (18:38 +0200)]
API: Add gtk_gradient_to_string()
Benjamin Otte [Wed, 6 Apr 2011 19:42:21 +0000 (21:42 +0200)]
gtk: Add _gtk_animation_description_to_string()
Reverses _gtk_animation_description_from_string()
Benjamin Otte [Wed, 6 Apr 2011 19:41:42 +0000 (21:41 +0200)]
API: gtk: Add gtk_symbolic_color_to_string()
See future commits for why this is useful. Or try to debug some color
problem.
Benjamin Otte [Wed, 6 Apr 2011 13:38:06 +0000 (15:38 +0200)]
cssprovider: Add a function for signalling errors
Benjamin Otte [Tue, 5 Apr 2011 17:56:00 +0000 (19:56 +0200)]
cssprovider: Store cssprovider in scanner's user data
Cosimo Cecchi [Tue, 17 May 2011 03:09:07 +0000 (23:09 -0400)]
treeview: don't arbitrairly add 2 to the expander size
Bump the default expander size by 2 pixels instead.
https://bugzilla.gnome.org/show_bug.cgi?id=650424
Cosimo Cecchi [Tue, 17 May 2011 03:03:09 +0000 (23:03 -0400)]
treeview: render a frame around the rows, after drawing their background
https://bugzilla.gnome.org/show_bug.cgi?id=650424
Cosimo Cecchi [Wed, 18 May 2011 14:42:10 +0000 (10:42 -0400)]
raleigh: clear up menu handling in the fallback CSS
Now that menus properly respect padding/border, this is not needed
anymore.
Cosimo Cecchi [Tue, 17 May 2011 18:10:19 +0000 (14:10 -0400)]
menu: don't use the border as a padding value
Borders should be rendered inside the allocation, not act as a second
padding.
https://bugzilla.gnome.org/show_bug.cgi?id=650418
Cosimo Cecchi [Tue, 17 May 2011 18:20:31 +0000 (14:20 -0400)]
all: avoid boxed structs copying where possible
Use the GtkStyleContext accessors for boxed properties where possible,
to reduce allocations.
https://bugzilla.gnome.org/show_bug.cgi?id=650420
Chun-wei Fan [Wed, 18 May 2011 04:02:10 +0000 (12:02 +0800)]
Update Visual C++ README.txt
-Make the build preparation instructions a bit more clear.
-Tell people about the (now optional) use of fontconfig in the
Visual C++ builds.
Carlos Garnacho [Tue, 17 May 2011 11:12:26 +0000 (13:12 +0200)]
button: Fix typo in keyboard grab's evmask
https://bugzilla.gnome.org/show_bug.cgi?id=650382, spotted
by Alexander Larsson.
Colin Walters [Tue, 16 Nov 2010 15:58:58 +0000 (10:58 -0500)]
Explicitly declare internal reserved bits in GdkModifierType
XKB and GDK both add "internal" bits to GdkModifierType. In C,
this typically doesn't cause problems as bitfields are just integers,
and there's no validation. However for bindings, it's normal to
convert enumerations to "native" enumeration types, which don't
support unknown bits. See bug 597292.
https://bugzilla.gnome.org/show_bug.cgi?id=634994
Colin Walters [Mon, 16 May 2011 16:21:34 +0000 (12:21 -0400)]
gdk_display_get_pointer: Screen out parameter is (transfer none)
Yaron Shahrabani [Fri, 13 May 2011 05:28:50 +0000 (08:28 +0300)]
Update Hebrew translation.
Yaron Shahrabani [Fri, 13 May 2011 05:26:01 +0000 (08:26 +0300)]
Update Hebrew translation.
Benjamin Otte [Fri, 13 May 2011 00:41:21 +0000 (02:41 +0200)]
reftests: Add a shell script to create tests
See the documentation in the script.
Tests are not yet added as the output from the 2 included scripts
doesn't match and the intended reference output first needs to be agreed
on.
Matthias Clasen [Fri, 13 May 2011 00:12:51 +0000 (20:12 -0400)]
Add shortcuts for the !children case
Not that we are doing too much work in that case, but we are
segfaulting, which is bad.
https://bugzilla.gnome.org/show_bug.cgi?id=649972
Matthias Clasen [Thu, 12 May 2011 13:14:23 +0000 (09:14 -0400)]
Flesh out the GtkGrid migration chapter some more
Benjamin Otte [Thu, 12 May 2011 21:38:41 +0000 (23:38 +0200)]
reftests: Add a test for the label fix
Benjamin Otte [Thu, 12 May 2011 21:27:51 +0000 (23:27 +0200)]
themingengine: Set current point to 0,0 when rendering rotated layout
Otherwise the layout may move to who-knows-where
Matthias Clasen [Thu, 12 May 2011 03:55:54 +0000 (23:55 -0400)]
Add an initial migration chapter for GtkGrid
Matthias Clasen [Wed, 11 May 2011 23:51:26 +0000 (19:51 -0400)]
Another grid spacing reftest
This one checks that empty rows/columns don't affect layout.
Micah Carrick [Wed, 11 May 2011 20:14:14 +0000 (16:14 -0400)]
Fix annotation for Gtk.TreeView.enable_model_drag_source
https://bugzilla.gnome.org/show_bug.cgi?id=649979
Matthias Clasen [Wed, 11 May 2011 17:48:00 +0000 (13:48 -0400)]
Add some reftests comparing aspects of grid and box spacing
Benjamin Otte [Tue, 10 May 2011 22:46:08 +0000 (00:46 +0200)]
paned: Be careful about showing windows
The previous code failed to account for all child visibility and paned
mapedness invariants which could cause stray GDK windows to appear.
Not good.
Credit goes to Xan for triggering it.
Matthias Clasen [Tue, 10 May 2011 21:57:21 +0000 (17:57 -0400)]
GtkAssistant: make the content expand
Its all about the content, so make sure the content fills
the available space.
Friedel Wolff [Tue, 10 May 2011 10:44:33 +0000 (12:44 +0200)]
Fix two small translation bugs
Benjamin Otte [Mon, 9 May 2011 23:25:26 +0000 (01:25 +0200)]
reftests: Add test for undersized children of GtkPaned
Tests the recent fixes done in
206b9f940d632dd0ed10ab8046777956872555eb
and
6bda6f0c580cbdc5d154bb8e249260d1cdc1b88b
Matej Urbančič [Mon, 9 May 2011 18:22:00 +0000 (20:22 +0200)]
Updated Slovenian translation
Jorge González [Mon, 9 May 2011 17:39:39 +0000 (19:39 +0200)]
Updated Spanish translation
Benjamin Otte [Mon, 9 May 2011 16:55:13 +0000 (18:55 +0200)]
paned: Ensure children aren't underallocated
Instead, allocate them a proper size and just clip them using the window
we added for them in the last commit.
Benjamin Otte [Mon, 9 May 2011 14:19:06 +0000 (16:19 +0200)]
paned: Create a GDK window for every child
We need the window to clip drawing. Otherwise we cannot allow
undersizing without doing underallocations.
Benjamin Otte [Mon, 9 May 2011 11:23:52 +0000 (13:23 +0200)]
reftests: Add CSS file for alignment test
We need to force arrow scaling to 1.0 to get the alignment right.
John Stowers [Mon, 9 May 2011 10:43:30 +0000 (22:43 +1200)]
Add missing gtk_widget_override_* annotations
https://bugzilla.gnome.org/show_bug.cgi?id=649779
Fran Diéguez [Mon, 9 May 2011 11:08:53 +0000 (13:08 +0200)]
Updated Galician translations
Matthias Clasen [Mon, 9 May 2011 01:33:12 +0000 (21:33 -0400)]
Dueling arrow positioning fixes...
Revert my fix, which conflicted with Benjamins fix for the same
issue.
Matthias Clasen [Mon, 9 May 2011 01:24:21 +0000 (21:24 -0400)]
Fix up the misc-alignment test
The new-style ui file had some left-over GtkMisc properties
in it.
Matthias Clasen [Mon, 9 May 2011 01:16:05 +0000 (21:16 -0400)]
Fix a arrow positioning
This gets the misc-alignment test for arrows closer to
not failing.
Benjamin Otte [Sun, 8 May 2011 23:15:17 +0000 (01:15 +0200)]
reftests: Modify test to ensure identical output
GtkArrow and the align properties use different methods (float vs int)
to center the arrow. If the size of the arrow is odd, this will cause a
rendering that differs by half a pixel. So we request an even size for
both the arrow and the container and everything works out.
Benjamin Otte [Sun, 8 May 2011 23:12:29 +0000 (01:12 +0200)]
reftests: Add misc-alignment test to Makefile
Benjamin Otte [Sun, 8 May 2011 23:09:01 +0000 (01:09 +0200)]
reftests: Actually add toplevel vs popup testcase
Adds missing files from
79d1b11d0b3975c4927cd0f56c77aedd0933cb74 and
reverts
eba4ca3e660b90470418a0340c46cbb1b0db546c .
Benjamin Otte [Sun, 8 May 2011 23:06:54 +0000 (01:06 +0200)]
arrow: Don't include padding in computation of alignment
Kristian Høgsberg [Sun, 8 May 2011 17:19:54 +0000 (13:19 -0400)]
wayland: Track wayland API changes
Jorge González [Sun, 8 May 2011 15:54:29 +0000 (17:54 +0200)]
Updated Spanish translation
Daniel Mustieles [Sun, 8 May 2011 15:33:59 +0000 (17:33 +0200)]
Updated Spanish translation
Daniel Mustieles [Sun, 8 May 2011 15:30:08 +0000 (17:30 +0200)]
Updated Spanish translation
Matthias Clasen [Sat, 7 May 2011 17:04:38 +0000 (13:04 -0400)]
Post-release bump
Matthias Clasen [Sat, 7 May 2011 17:01:16 +0000 (13:01 -0400)]
3.1.4
Matthias Clasen [Sat, 7 May 2011 17:00:58 +0000 (13:00 -0400)]
Another distcheck fix
Matthias Clasen [Sat, 7 May 2011 16:59:09 +0000 (12:59 -0400)]
Work around testsuite failures for distcheck
Matthias Clasen [Sat, 7 May 2011 16:01:04 +0000 (12:01 -0400)]
Fix a typo in !HAVE_XCURSOR code paths
Patch by Victor Oliveira,
http://bugzilla.gnome.org/show_bug.cgi?id=649665
Daniel Mustieles [Sat, 7 May 2011 10:39:45 +0000 (12:39 +0200)]
Updated Spanish translation
Matthias Clasen [Sat, 7 May 2011 04:07:07 +0000 (00:07 -0400)]
Distcheck fixes
Matthias Clasen [Sat, 7 May 2011 04:03:13 +0000 (00:03 -0400)]
Drop missing tests
Matthias Clasen [Sat, 7 May 2011 03:51:52 +0000 (23:51 -0400)]
Add a new forgotten symbol
Matthias Clasen [Sat, 7 May 2011 03:46:18 +0000 (23:46 -0400)]
More updates
Matthias Clasen [Sat, 7 May 2011 03:34:49 +0000 (23:34 -0400)]
Update the NEWS for 3.1.4
Matthias Clasen [Sat, 30 Apr 2011 03:40:47 +0000 (23:40 -0400)]
Add a lock button widget
This is a special-purpose button that can be used together with
GPermission objects to control the sensitivity of system settings.
Suitable permission objects can e.g. be obtained from PolicyKit.
http://bugzilla.gnome.org/show_bug.cgi?id=626457
Matthias Clasen [Fri, 6 May 2011 20:31:36 +0000 (16:31 -0400)]
Remove outdated comments
Neither GdkColors nor GdkRGBAs are ever 'allocated' nowadays.
Tristan Van Berkom [Mon, 14 Feb 2011 07:47:57 +0000 (16:47 +0900)]
Adding more traditional checkered background to testtextview.
Tristan Van Berkom [Mon, 14 Feb 2011 07:18:35 +0000 (16:18 +0900)]
Added Since 3.2 annotations for new GdkRGBA properties.
Tristan Van Berkom [Mon, 14 Feb 2011 06:27:42 +0000 (15:27 +0900)]
Added internal GdkRGBA support for GtkTextTag::paragraph-background-rgba
Added the remaining implementation bits for rendering paragraph backgrounds
with rgba values and updated the test case.
Tristan Van Berkom [Mon, 14 Feb 2011 05:27:28 +0000 (14:27 +0900)]
Fixed GtkTextTag to sync the GdkColors with the new GdkRGBA values for backwards compatability.
Tristan Van Berkom [Mon, 14 Feb 2011 05:22:27 +0000 (14:22 +0900)]
Handled error_color with GdkRGBA in gtktextdisplay.c.
Tristan Van Berkom [Mon, 14 Feb 2011 05:00:15 +0000 (14:00 +0900)]
Fixed textview rendering regression.
Background color was not painted on the whole tagged segment after
line breaking, this was due to the default ->prepare_run() function
wiping the internal PangoColors clean... fixed this by unconditionally
setting local rgba colors from prepare_run instead of comparing them
and bailing out.
Tristan Van Berkom [Wed, 9 Feb 2011 14:41:39 +0000 (23:41 +0900)]
Added GdkRGBA properties to GtkTextTag.
This now allows text view to render text with alpha values in
the text foreground and backgrounds, the work is almost complete,
currently the error-underline-color is still a GdkColor style property
and since we use only GdkRGBA for rendering it needs to be converted
and applied, probably a new rgba version of the style property should
also be introduced.
This commit adds tests/testtextview that must be run from the tests/
directory to show translucent text in action.
Cosimo Cecchi [Fri, 6 May 2011 20:08:09 +0000 (16:08 -0400)]
testassistant: don't use deprecated functions
Cosimo Cecchi [Fri, 6 May 2011 18:53:09 +0000 (14:53 -0400)]
progressbar: fetch the padding without the trough style class
This is consistent with the rest of the widget, which uses only one
padding value.
https://bugzilla.gnome.org/show_bug.cgi?id=649593
Cosimo Cecchi [Fri, 6 May 2011 18:33:00 +0000 (14:33 -0400)]
cellrendererprogress: don't force drawing inside the border
The progressbar is composed by two different rendered areas: the trough
(i.e. the non-filled part of the bar) and the bar itself.
The bar should be able to fill the whole height/width of the trough
without resorting to nasty hacks in the theme, and we can control the
amount of space between the bar and the trough with the padding already.
https://bugzilla.gnome.org/show_bug.cgi?id=649593
Matthias Clasen [Fri, 6 May 2011 18:55:58 +0000 (14:55 -0400)]
gtk3-demo: assistant demo simplications
Since header and sidebar images are no longer used, don't set them.
Matthias Clasen [Sun, 17 Apr 2011 00:45:26 +0000 (20:45 -0400)]
GtkAssistant: an new style for assistants
GtkAssistant is widely recognized as a butt-ugly widget.
This commit changes its style to look more modern. We
deprecate the sidebar and header image properties and
don't show them anymore. Instead, page titles are arranged
in a sidebar, with the title of the current page shown
in highlighted style.
Matthias Clasen [Sun, 17 Apr 2011 03:01:30 +0000 (23:01 -0400)]
testassistant: some more tests
Matthias Clasen [Tue, 26 Apr 2011 16:26:51 +0000 (12:26 -0400)]
Silently allow child properties on grandchildren
This commit simply removes some child->parent == container checks,
to add some flexibility for containers with 'inner structure'.
If these checks are considered useful, we can bring them back
with a is_child vfunc that allows container implementations to
decided who they consider legitimate child.
Matthias Clasen [Sat, 16 Apr 2011 17:57:05 +0000 (13:57 -0400)]
Add gtk_container_child_notify
This is a variant of gtk_widget_child_notify() that takes an
explicit container, instead of relying on widget->parent to
be the correct container to use.
Matthias Clasen [Sat, 16 Apr 2011 17:42:24 +0000 (13:42 -0400)]
gtk-demo: Don't leave a dangling pointer to a destroyed widget
When destroying the assistant, clean up the static variable
that points to it.
Matthias Clasen [Fri, 6 May 2011 18:04:50 +0000 (14:04 -0400)]
Some additional auto-mnemonic fixes
Previously, we would also show mnemonics if the user hits
Ctrl+Alt, even though Ctrl+Alt+<x> does not actually trigger.
Rui Matos [Wed, 13 Apr 2011 10:26:55 +0000 (11:26 +0100)]
GtkWindow: set mnemonics visible on focus in if modifier is pressed
With gtk-auto-mnemonics on, we hide mnemonics on focus out. We should also
check if the modifier is pressed on focus in and if so, show mnemonics again.
https://bugzilla.gnome.org/show_bug.cgi?id=618815
Javier Jardón [Fri, 6 May 2011 17:54:22 +0000 (18:54 +0100)]
configure.ac: Indeed the minimum required version is 2.29.4, not 2.29.2
Javier Jardón [Fri, 6 May 2011 17:51:04 +0000 (18:51 +0100)]
configure.ac: Bump glib minimum required version to 2.29.2
As we are using the new g_test_fail() in the gtk-reftest
Benjamin Otte [Fri, 6 May 2011 17:35:40 +0000 (19:35 +0200)]
Revert "arrow: Make minimum size 5px"
This reverts commit
1c46e04f30e8b496ac0cc3ad830b4824e54c1e94 .
The change broke too many widgets that relied on the size being
constant. A proper fix would require letting themes override the size.
That would probably also require letting themes specify the size
relative to font size.
Matthias Clasen [Fri, 6 May 2011 02:21:59 +0000 (22:21 -0400)]
Add an alignment property test
This test compares GtkAlignment properties and GtkWidget margin and
alignment properties.
Matthias Clasen [Fri, 6 May 2011 01:47:14 +0000 (21:47 -0400)]
Expand GtkMisc tests to cover arrows and images
This unveils something fishy with arrows.
Matthias Clasen [Thu, 5 May 2011 21:53:12 +0000 (17:53 -0400)]
Add a misc-alignment reftest
This test compares GtkMisc properties and GtkWidget margin and
alignment properties.