d85aabe1e3
Rename GTK_CSS_REPEAT_STYLE_NONE to GTK_CSS_REPEAT_STYLE_STRETCH
...
This is a private type, and the CSS default value is "stretch", which
is how we were parsing and printing NONE anyway.
With this fix we can use the enum stuff for printing/parsing
2011-11-25 15:36:08 +01:00
2a42fad145
css: Use enum parsing for background repeat style
2011-11-25 15:36:08 +01:00
8fb4b13730
css: Break out enum parse/print helper
...
We need this to parse non-GValue enums
2011-11-25 15:36:08 +01:00
3e24029415
css: Parse enums with new case-insensitive helper
2011-11-25 15:36:08 +01:00
1a68afffaf
css: Add _gtk_css_parser_try_enum
...
This helps parsing GType enums in CSS, properly handling
CSS being case insensitive.
2011-11-25 15:36:08 +01:00
c9a3332ede
Add generation of private g-types for private headers
...
This starts with just the gtkcsstypesprivate.h header
2011-11-25 15:36:08 +01:00
f412293a2d
reftests: Make sure border-image-gradient keeps working
...
.. even with more advanced themes.
2011-11-25 15:12:45 +01:00
9da7cc776c
tests: Add testtreechanging
...
It's just a treestore going crazy while the treeview has to keep up.
2011-11-25 15:12:45 +01:00
62b505174f
win32: Make all GDK_WINDOW_TEMP always on top
...
This makes menus, popups and tooltips show above the windows
task bar.
2011-11-25 11:22:59 +01:00
a63b6cc7f1
tests: Add prop editors to testtreeview
...
It tests treeviews, so we'd better be able to edit them :)
2011-11-24 18:29:45 +01:00
9011bf9e3b
reftests: Mark windows as popups
...
Improves performance, gets rid of resize grip.
2011-11-24 18:29:45 +01:00
08d86fabc4
a11y: Implement ref_state_set using the new APIs
...
Various tiny semantic changes in here.
The big fix is that we consider every cell as visible and as showing if
the treeview is mapped.
This was also fixed in the tree dump test.
2011-11-24 18:29:45 +01:00
178686ba11
a11y: Add get_renderer_state() to cell accessibles
...
Accessibles can use this function to query the state that their row
would be rendered with.
2011-11-24 18:29:45 +01:00
bcafd9ba3c
a11y: Add _gtk_cell_accessible_set_cell_data()
...
See the function documentation for details.
Also included is the implementation for the treeview, but no users yet.
2011-11-24 18:29:45 +01:00
416b3ed204
treeview: Notify a11y about reordered rows
...
That way, no more signal handler is needed in the a11y code. Plus, we
avoid needless signal emissions for rows we don't care about.
2011-11-24 18:29:44 +01:00
fbfbaa3d50
a11y: Don't create fake cell renderers
2011-11-24 18:29:44 +01:00
b72b4e79cf
build: Add gmodule-2.0 dependency for gtk-query-immodules-3.0
2011-11-24 16:33:02 +01:00
35ffd4cfea
win32-theme: Fix up radio and menus in various states
...
This makes all states in widget-factory look ok
2011-11-24 11:50:02 +01:00
c066136c3a
win32-theme: Theme column headers
2011-11-24 11:50:01 +01:00
af0537bce1
prop-editor: Implement property editing for GdkRGBA properties
...
Bug #664467 .
2011-11-23 18:25:29 -05:00
2831151405
Revert "tests: use GdkRGBA instead GdkColor"
...
This reverts commit 85747da972
.
Conflicts:
tests/prop-editor.c
Bug #664467 .
2011-11-23 18:25:27 -05:00
3abc31a2d1
color-button: Notify "color" and "alpha" properties when changing the rgba
...
Bug #664469 .
2011-11-23 18:19:48 -05:00
b84d37af4d
GtkIconView: Fix a segfault
...
Keynav on an empty iconview was causing segfaults. This
was reported in https://bugzilla.gnome.org/show_bug.cgi?id=664456
2011-11-23 17:51:58 -05:00
e8be9ec01f
bgo#662814 - Don't print a g_warning() when GtkRecentManager can't find a file
...
Also, *do* add the file to the recently-used list, even if the file does not
exist yet. This is used from the Save dialog, so even shitty apps which don't
add the file to GtkRecentManager, will get the file added from the Save dialog.
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2011-11-23 09:44:26 -06:00
92e6444163
widgetpath: correctly print the siblings index
...
In gtk_widget_path_to_string() we were counting siblings from zero
instead of one, resulting in confusing output.
2011-11-23 11:22:30 -05:00
0d71f62388
frame: don't access padding before it's initialized
...
Move padding initialization before its first access.
2011-11-23 11:21:29 -05:00
6a6af8464b
gtk-demo: Fix segfault in editable cells demo
...
The strings can be freed when edting the description column. This does
not work with constant strings.
2011-11-22 23:29:04 +01:00
6d0499a500
rbtree: Rewrite to not lose node order
...
_gtk_rbtree_reorder() was moving the node's data while reordering. As we
use the node pointer in the a11y code as a hash key, this didn't work.
So this rewrite changes that. As a bonus, it is less code and faster.
Woohoo!
2011-11-22 23:29:04 +01:00
3166457802
tests: Add test for _gtk_rbtree_reorder()
2011-11-22 23:29:04 +01:00
c1124df1f2
tests: Speed up rbtree test
...
We don't need so many tree consistency checks while creating when the
test is about something else.
2011-11-22 23:29:04 +01:00
2b6f639bfa
Fix a typo
2011-11-22 14:55:46 -05:00
251ee41d8d
Revert "Clean up includes"
...
This reverts commit c5e4af761c
.
2011-11-22 13:41:59 -05:00
abc787a5ac
Move pangoft2 to Requires.private
...
We have pango in Requires anyway, and this is just so we
can call pangofc api ourselves.
2011-11-22 09:42:31 -05:00
c5e4af761c
Clean up includes
...
There's no sign of Pango in this header, so no need to include
pangocairo.h
2011-11-22 08:25:24 -05:00
d8b6414567
rbtree: Remove needless tests
...
if the checks are run on the nil node, they will get the second test the
way we expect it anyway, so it's unnecessary.
2011-11-22 03:42:31 +01:00
ae99a9e04a
rbtree: Simplify rotation functions
...
- Make sure the rotated nodes aren't nil
- Use existing functions for complex computations
- Don't use NULL checks for variables guaranteed to not be NULL/nil
2011-11-22 03:32:56 +01:00
37786804e1
rbtree: Remove the nil member
2011-11-22 03:32:56 +01:00
a4630d0e7b
rbtree: Introduce _gtk_rbtree_is_nil()
...
Makes for more readable code than "== tree->nil" and allows removing the
nil member later.
2011-11-22 03:32:56 +01:00
c3056951db
rbtree: Introduce _gtk_rbtree_first()
...
... and use it.
2011-11-22 03:32:56 +01:00
73a834336f
rbtree: Replace nil node allocation with a preallocated nil
...
This has one major caveat: The new value is const, so read-only memory.
Any attempt to write to it will cause a crash. Note that we are not ever
supposed to write to it, but bugs happen...
2011-11-22 03:32:56 +01:00
fa89423346
Bump version
2011-11-21 18:34:11 -05:00
84c0ccad47
3.3.4
2011-11-21 18:14:13 -05:00
7c6bbf59d7
More updates
2011-11-21 17:12:27 -05:00
e2f2289d72
tests: Add a test for the rbtree code.
2011-11-21 22:33:46 +01:00
647c441e26
rbtree: Don't write to nil node
...
The code used to set nil->parent, which could cause segfaults. Don't do
that. We also need to pass the parent explicitly to the fixup code,
because the node during fixup may be the nil node.
2011-11-21 22:33:46 +01:00
f4fe921a17
rbtree: Add a local variable
...
This will be needed in the next patch, and I wanted to split that patch
up.
2011-11-21 22:33:46 +01:00
02671f9ec9
rbtree: Move to an approach where we don't move contents
...
So instead of copying the children and height to the new node, we keep
the old node and copy all the old stuff to it.
This is necessary so the accessibility code can use the node as a key in
the hash table or store the node as a reference to the row instead of
GtkTreeRowReference. And because it already does that (oops), this fixes
a bunch of segfaults with a11y enabled.
2011-11-21 22:33:45 +01:00
1dd9dd45c1
rbtree: Use gtk_rbnode_adjust() even more
...
Use it for the modified node in gtk_rbnode_remove(). Cleans up the code
quite a lot.
2011-11-21 22:33:45 +01:00
769186dbff
rbtree: Use gtk_rbnode_adjust()
...
Make gtk_rbnode_remove() use it when unlinking the node.
2011-11-21 22:33:45 +01:00
ba7a0a0188
rbtree: Use gtk_rbnode_adjust() more.
...
Make _gtk_rbtree_node_set_height() use it.
2011-11-21 22:33:45 +01:00