]> Pileus Git - ~andy/gtk/log
~andy/gtk
12 years agoAdd generation of private g-types for private headers
Alexander Larsson [Fri, 25 Nov 2011 12:07:43 +0000 (13:07 +0100)]
Add generation of private g-types for private headers

This starts with just the gtkcsstypesprivate.h header

12 years agoreftests: Make sure border-image-gradient keeps working
Benjamin Otte [Fri, 25 Nov 2011 14:11:42 +0000 (15:11 +0100)]
reftests: Make sure border-image-gradient keeps working

.. even with more advanced themes.

12 years agotests: Add testtreechanging
Benjamin Otte [Fri, 25 Nov 2011 13:41:11 +0000 (14:41 +0100)]
tests: Add testtreechanging

It's just a treestore going crazy while the treeview has to keep up.

12 years agowin32: Make all GDK_WINDOW_TEMP always on top
Alexander Larsson [Fri, 25 Nov 2011 10:21:26 +0000 (11:21 +0100)]
win32: Make all GDK_WINDOW_TEMP always on top

This makes menus, popups and tooltips show above the windows
task bar.

12 years agotests: Add prop editors to testtreeview
Benjamin Otte [Thu, 24 Nov 2011 17:07:23 +0000 (18:07 +0100)]
tests: Add prop editors to testtreeview

It tests treeviews, so we'd better be able to edit them :)

12 years agoreftests: Mark windows as popups
Benjamin Otte [Thu, 24 Nov 2011 17:06:08 +0000 (18:06 +0100)]
reftests: Mark windows as popups

Improves performance, gets rid of resize grip.

12 years agoa11y: Implement ref_state_set using the new APIs
Benjamin Otte [Thu, 24 Nov 2011 00:59:18 +0000 (01:59 +0100)]
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.

12 years agoa11y: Add get_renderer_state() to cell accessibles
Benjamin Otte [Thu, 24 Nov 2011 00:55:38 +0000 (01:55 +0100)]
a11y: Add get_renderer_state() to cell accessibles

Accessibles can use this function to query the state that their row
would be rendered with.

12 years agoa11y: Add _gtk_cell_accessible_set_cell_data()
Benjamin Otte [Wed, 23 Nov 2011 16:35:00 +0000 (17:35 +0100)]
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.

12 years agotreeview: Notify a11y about reordered rows
Benjamin Otte [Wed, 23 Nov 2011 02:21:57 +0000 (03:21 +0100)]
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.

12 years agoa11y: Don't create fake cell renderers
Benjamin Otte [Wed, 23 Nov 2011 16:54:49 +0000 (17:54 +0100)]
a11y: Don't create fake cell renderers

12 years agobuild: Add gmodule-2.0 dependency for gtk-query-immodules-3.0
Florian Müllner [Thu, 24 Nov 2011 15:31:47 +0000 (16:31 +0100)]
build: Add gmodule-2.0 dependency for gtk-query-immodules-3.0

12 years agowin32-theme: Fix up radio and menus in various states
Alexander Larsson [Thu, 24 Nov 2011 10:40:36 +0000 (11:40 +0100)]
win32-theme: Fix up radio and menus in various states

This makes all states in widget-factory look ok

12 years agowin32-theme: Theme column headers
Alexander Larsson [Thu, 24 Nov 2011 08:53:39 +0000 (09:53 +0100)]
win32-theme: Theme column headers

12 years agoprop-editor: Implement property editing for GdkRGBA properties
Christian Persch [Mon, 21 Nov 2011 13:07:06 +0000 (14:07 +0100)]
prop-editor: Implement property editing for GdkRGBA properties

Bug #664467.

12 years agoRevert "tests: use GdkRGBA instead GdkColor"
Christian Persch [Mon, 21 Nov 2011 13:03:01 +0000 (14:03 +0100)]
Revert "tests: use GdkRGBA instead GdkColor"

This reverts commit 85747da97238dc101f92cd8241aa7aea44f35789.

Conflicts:

tests/prop-editor.c

Bug #664467.

12 years agocolor-button: Notify "color" and "alpha" properties when changing the rgba
Christian Persch [Mon, 21 Nov 2011 13:19:51 +0000 (14:19 +0100)]
color-button: Notify "color" and "alpha" properties when changing the rgba

Bug #664469.

12 years agoGtkIconView: Fix a segfault
Matthias Clasen [Wed, 23 Nov 2011 22:49:46 +0000 (17:49 -0500)]
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

12 years agobgo#662814 - Don't print a g_warning() when GtkRecentManager can't find a file
Federico Mena Quintero [Wed, 23 Nov 2011 15:44:26 +0000 (09:44 -0600)]
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>
12 years agowidgetpath: correctly print the siblings index
Cosimo Cecchi [Wed, 23 Nov 2011 16:22:30 +0000 (11:22 -0500)]
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.

12 years agoframe: don't access padding before it's initialized
Cosimo Cecchi [Wed, 23 Nov 2011 16:21:29 +0000 (11:21 -0500)]
frame: don't access padding before it's initialized

Move padding initialization before its first access.

12 years agogtk-demo: Fix segfault in editable cells demo
Benjamin Otte [Tue, 22 Nov 2011 22:27:40 +0000 (23:27 +0100)]
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.

12 years agorbtree: Rewrite to not lose node order
Benjamin Otte [Tue, 22 Nov 2011 22:15:53 +0000 (23:15 +0100)]
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!

12 years agotests: Add test for _gtk_rbtree_reorder()
Benjamin Otte [Tue, 22 Nov 2011 22:14:09 +0000 (23:14 +0100)]
tests: Add test for _gtk_rbtree_reorder()

12 years agotests: Speed up rbtree test
Benjamin Otte [Tue, 22 Nov 2011 14:35:53 +0000 (15:35 +0100)]
tests: Speed up rbtree test

We don't need so many tree consistency checks while creating when the
test is about something else.

12 years agoFix a typo
Matthias Clasen [Tue, 22 Nov 2011 19:55:46 +0000 (14:55 -0500)]
Fix a typo

12 years agoRevert "Clean up includes"
Matthias Clasen [Tue, 22 Nov 2011 18:41:59 +0000 (13:41 -0500)]
Revert "Clean up includes"

This reverts commit c5e4af761c9db702b9bbf0740404c204e5b086d2.

12 years agoMove pangoft2 to Requires.private
Matthias Clasen [Tue, 22 Nov 2011 14:42:31 +0000 (09:42 -0500)]
Move pangoft2 to Requires.private

We have pango in Requires anyway, and this is just so we
can call pangofc api ourselves.

12 years agoClean up includes
Matthias Clasen [Tue, 22 Nov 2011 13:25:24 +0000 (08:25 -0500)]
Clean up includes

There's no sign of Pango in this header, so no need to include
pangocairo.h

12 years agorbtree: Remove needless tests
Benjamin Otte [Tue, 22 Nov 2011 02:42:31 +0000 (03:42 +0100)]
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.

12 years agorbtree: Simplify rotation functions
Benjamin Otte [Tue, 22 Nov 2011 02:30:45 +0000 (03:30 +0100)]
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

12 years agorbtree: Remove the nil member
Benjamin Otte [Tue, 22 Nov 2011 02:18:31 +0000 (03:18 +0100)]
rbtree: Remove the nil member

12 years agorbtree: Introduce _gtk_rbtree_is_nil()
Benjamin Otte [Tue, 22 Nov 2011 01:17:05 +0000 (02:17 +0100)]
rbtree: Introduce _gtk_rbtree_is_nil()

Makes for more readable code than "== tree->nil" and allows removing the
nil member later.

12 years agorbtree: Introduce _gtk_rbtree_first()
Benjamin Otte [Tue, 22 Nov 2011 01:58:05 +0000 (02:58 +0100)]
rbtree: Introduce _gtk_rbtree_first()

... and use it.

12 years agorbtree: Replace nil node allocation with a preallocated nil
Benjamin Otte [Tue, 22 Nov 2011 00:32:28 +0000 (01:32 +0100)]
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...

12 years agoBump version
Matthias Clasen [Mon, 21 Nov 2011 23:34:11 +0000 (18:34 -0500)]
Bump version

12 years ago3.3.4
Matthias Clasen [Mon, 21 Nov 2011 23:14:13 +0000 (18:14 -0500)]
3.3.4

12 years agoMore updates
Matthias Clasen [Mon, 21 Nov 2011 22:12:27 +0000 (17:12 -0500)]
More updates

12 years agotests: Add a test for the rbtree code.
Benjamin Otte [Mon, 21 Nov 2011 21:26:42 +0000 (22:26 +0100)]
tests: Add a test for the rbtree code.

12 years agorbtree: Don't write to nil node
Benjamin Otte [Mon, 21 Nov 2011 20:13:53 +0000 (21:13 +0100)]
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.

12 years agorbtree: Add a local variable
Benjamin Otte [Mon, 21 Nov 2011 21:28:36 +0000 (22:28 +0100)]
rbtree: Add a local variable

This will be needed in the next patch, and I wanted to split that patch
up.

12 years agorbtree: Move to an approach where we don't move contents
Benjamin Otte [Mon, 21 Nov 2011 15:07:52 +0000 (16:07 +0100)]
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.

12 years agorbtree: Use gtk_rbnode_adjust() even more
Benjamin Otte [Sun, 20 Nov 2011 20:27:46 +0000 (21:27 +0100)]
rbtree: Use gtk_rbnode_adjust() even more

Use it for the modified node in gtk_rbnode_remove(). Cleans up the code
quite a lot.

12 years agorbtree: Use gtk_rbnode_adjust()
Benjamin Otte [Sat, 19 Nov 2011 12:18:05 +0000 (13:18 +0100)]
rbtree: Use gtk_rbnode_adjust()

Make gtk_rbnode_remove() use it when unlinking the node.

12 years agorbtree: Use gtk_rbnode_adjust() more.
Benjamin Otte [Sat, 19 Nov 2011 12:10:05 +0000 (13:10 +0100)]
rbtree: Use gtk_rbnode_adjust() more.

Make _gtk_rbtree_node_set_height() use it.

12 years agorbtree: Use gtk_rbnode_adjust() more
Benjamin Otte [Sat, 19 Nov 2011 12:08:10 +0000 (13:08 +0100)]
rbtree: Use gtk_rbnode_adjust() more

Make _gtk_rbtree_insert_before() use it.

12 years agorbtree: Use gtk_rbnode_adjust()
Benjamin Otte [Sat, 19 Nov 2011 12:06:22 +0000 (13:06 +0100)]
rbtree: Use gtk_rbnode_adjust()

Make _gtk_rbtree_insert_after() use it.

12 years agorbtree: Split out a common function
Benjamin Otte [Sat, 19 Nov 2011 11:59:39 +0000 (12:59 +0100)]
rbtree: Split out a common function

gtk_rbtree_adjust() will adjust the summed values of a node and all its
parents in the tree. Currently only implemented by splitting out the
function from gtk_rbtree_free().

12 years agorbtree: Don't set variable twice
Benjamin Otte [Sat, 19 Nov 2011 11:48:25 +0000 (12:48 +0100)]
rbtree: Don't set variable twice

12 years agorbtree: Add assertions to clarify usage
Benjamin Otte [Mon, 21 Nov 2011 18:51:39 +0000 (19:51 +0100)]
rbtree: Add assertions to clarify usage

12 years agorbtree: Mark all debug sections as debug
Benjamin Otte [Mon, 21 Nov 2011 15:59:22 +0000 (16:59 +0100)]
rbtree: Mark all debug sections as debug

12 years agorbtree: Make debug functions private
Benjamin Otte [Mon, 21 Nov 2011 15:59:37 +0000 (16:59 +0100)]
rbtree: Make debug functions private

They're not used elsewhere

12 years agonotebook: use the current page allocation when computing the redraw area
Cosimo Cecchi [Mon, 21 Nov 2011 18:57:27 +0000 (13:57 -0500)]
notebook: use the current page allocation when computing the redraw area

Instead of taking the first page and trying to adjust the rect with
random padding values, take the current page, as it's always guaranteed
to be at least as tall as inactive tabs.
This fixes some annoying 1px drawing artifacts while switching tabs when
the theme disables notebook padding.

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

12 years agonotebook: properly subtract the initial_gap width from the tab space
Cosimo Cecchi [Mon, 21 Nov 2011 17:08:11 +0000 (12:08 -0500)]
notebook: properly subtract the initial_gap width from the tab space

Instead of modifying the allocation.

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

12 years agoDrop uses of @returns syntax
Matthias Clasen [Mon, 21 Nov 2011 18:12:58 +0000 (13:12 -0500)]
Drop uses of @returns syntax

12 years agoPrevent local filesystem influence in the a11y tests
Matthias Clasen [Mon, 21 Nov 2011 18:05:47 +0000 (13:05 -0500)]
Prevent local filesystem influence in the a11y tests

By using the 'unix' gio volume monitor, we avoid variation
in the file chooser that otherwise breaks the 'pickers' test.

12 years agowin32: Don't double free stuff when finalizing drag context
Alexander Larsson [Mon, 21 Nov 2011 14:03:53 +0000 (15:03 +0100)]
win32: Don't double free stuff when finalizing drag context

We were freeing stuff that was already freed in the parent class
finalizer.

12 years agowin32: Don't dereference keyboard_grab if it is NULL
Alexander Larsson [Mon, 21 Nov 2011 13:37:57 +0000 (14:37 +0100)]
win32: Don't dereference keyboard_grab if it is NULL

This fixes a crash in e.g. testdnd

12 years agowin32: Make gdk_drag_context_new static
Alexander Larsson [Mon, 21 Nov 2011 13:33:16 +0000 (14:33 +0100)]
win32: Make gdk_drag_context_new static

12 years agowin32: get rid of GdkDragContextPrivateWin32 and related machinery.
Dieter Verfaillie [Thu, 22 Sep 2011 20:47:23 +0000 (22:47 +0200)]
win32: get rid of GdkDragContextPrivateWin32 and related machinery.

This turns GdkWin32DragContext into a proper GdkDragContext subclass.
Because we now correctly initialize GdkWin32DragContext in
gdk_drag_context_new, we no longer crash immediatly when a DnD
operation is initialized (the find_window, drag_status, ... vfuncs
where all pointing to 0x0 instead of their proper win32 implementations).

We now try to consistently refer to GdkDragContext as "context",
GdkWin32DragContext as "win32_context" and the ole2 related
target_drag_context and source_drag_context as "ctx".

Members of GdkWin32DragContext only used by the ole2 DnD codepaths
are now explicitly marked with a ole2_dnd_ prefix.

12 years agoConvert gtk-win32.css to unix line endings
Alexander Larsson [Mon, 21 Nov 2011 13:31:17 +0000 (14:31 +0100)]
Convert gtk-win32.css to unix line endings

12 years agoAdd gtk_symbolic_color_new_win32 to gtk.symbols
Alexander Larsson [Mon, 21 Nov 2011 12:53:31 +0000 (13:53 +0100)]
Add gtk_symbolic_color_new_win32 to gtk.symbols

12 years agowin32-theme: Fix up docs for gtk_symbolic_color_new_win32
Alexander Larsson [Mon, 21 Nov 2011 12:52:39 +0000 (13:52 +0100)]
win32-theme: Fix up docs for gtk_symbolic_color_new_win32

12 years agoMerge branch 'win32-theme2'
Alexander Larsson [Mon, 21 Nov 2011 12:49:44 +0000 (13:49 +0100)]
Merge branch 'win32-theme2'

12 years ago[icons] text-x-generic isn't a generated icon
John Ralls [Mon, 21 Nov 2011 00:19:59 +0000 (16:19 -0800)]
[icons] text-x-generic isn't a generated icon

Calling it one causes maintainer-clean to delete it.

12 years agogtk/gtkapplication.c: Fix typo
Javier Jardón [Sat, 19 Nov 2011 16:30:43 +0000 (16:30 +0000)]
gtk/gtkapplication.c: Fix typo

12 years agoframe: make sure to allocate the CSS border width
Cosimo Cecchi [Fri, 18 Nov 2011 16:58:56 +0000 (11:58 -0500)]
frame: make sure to allocate the CSS border width

Similar to GtkNotebook, GtkFrame was only allocating space for the
padding width, and not the border.

This could be seen by just running tests/testframe. With a theme that
renders frame borders, setting xthickness = 0 in the test draws the
button border over the frame border, which is wrong.

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

12 years agoframe: add GTK_STYLE_CLASS_FRAME in _init()
Cosimo Cecchi [Fri, 18 Nov 2011 16:42:01 +0000 (11:42 -0500)]
frame: add GTK_STYLE_CLASS_FRAME in _init()

Instead of adding it every time we use the GtkStyleContext, just add it
in _init().

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

12 years agonotebook: make sure to allocate the CSS border width
Cosimo Cecchi [Fri, 18 Nov 2011 16:35:30 +0000 (11:35 -0500)]
notebook: make sure to allocate the CSS border width

Instead of taking only the CSS padding into account when allocating the
notebook children, also allocate the border width.

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

12 years agoBug 653676 - Expand/Collapse doesn't respond after one click
Rui Matos [Sun, 20 Nov 2011 20:00:08 +0000 (21:00 +0100)]
Bug 653676 - Expand/Collapse doesn't respond after one click

Ignore leave-notify-event when mode is GDK_CROSSING_GTK_[UN]GRAB.
Just [un]grabbing shouldn't cause us to [un]prelight the current arrow
and node.

12 years agoDon't call scroll to cell if the tree view is empty
Kristian Rietveld [Sun, 20 Nov 2011 17:54:20 +0000 (18:54 +0100)]
Don't call scroll to cell if the tree view is empty

Account for the case when gtk_drag_finish() didn't actually add a row
(can happen when dragging from an empty tree view to itself ...).

12 years agoBug 660554 - gtk_tree_view_drag_begin: assertion `path != NULL' failed
Kristian Rietveld [Sun, 20 Nov 2011 17:51:14 +0000 (18:51 +0100)]
Bug 660554 - gtk_tree_view_drag_begin: assertion `path != NULL' failed

Turned assertion into silent return.

This assertion is only hit when dragging from an empty tree view.  In
this case, gtk_tree_view_begin_drag() is triggered from gtkdnd.c and not
from gtk_tree_view_maybe_begin_dragging_row().  We actually want to
cancel the drag at this point, but that is not possible with the GTK+
API as far as I can see.

The alternative is to not allowing the drag to start.  This could be
done by simply unsetting the tree view as drag source when it is empty
and setting it as drag source again when rows are added.  I didn't
choose to go with this for now, since this will likely break third party
code.

12 years agoquartz: fix coding style in quartz-version of gtk_drag_begin_internal
Kristian Rietveld [Sun, 20 Nov 2011 17:27:28 +0000 (18:27 +0100)]
quartz: fix coding style in quartz-version of gtk_drag_begin_internal

12 years agoquartz: do not call gdk_drag_begin() twice
Kristian Rietveld [Sun, 20 Nov 2011 17:24:56 +0000 (18:24 +0100)]
quartz: do not call gdk_drag_begin() twice

This makes drag and drop work again on Quartz.

12 years ago[Bug 664238] GTK apps crash when dragging something
John Ralls [Sat, 19 Nov 2011 19:33:28 +0000 (11:33 -0800)]
[Bug 664238] GTK apps crash when dragging something

Corrects a bad condition in a test in 085b98f4

12 years agoUpdated Spanish translation
Jorge González [Sun, 20 Nov 2011 09:40:15 +0000 (10:40 +0100)]
Updated Spanish translation

12 years agoAdapt iconview a11y test output
Matthias Clasen [Sun, 20 Nov 2011 00:53:43 +0000 (19:53 -0500)]
Adapt iconview a11y test output

12 years agoImprove AtkText implementations
Matthias Clasen [Sun, 20 Nov 2011 00:28:48 +0000 (19:28 -0500)]
Improve AtkText implementations

There was some regressions from the recent display line fix;
while fixing it improve the test coverage and make GtkEntry
and GtkTextView return identical results.

12 years agoRemove leftover debug spew
Matthias Clasen [Sat, 19 Nov 2011 23:13:42 +0000 (18:13 -0500)]
Remove leftover debug spew

12 years agoAdd a missing static
Matthias Clasen [Sat, 19 Nov 2011 23:08:18 +0000 (18:08 -0500)]
Add a missing static

12 years agoFix the build
Matthias Clasen [Sat, 19 Nov 2011 22:57:08 +0000 (17:57 -0500)]
Fix the build

12 years agoUpdates
Matthias Clasen [Sat, 19 Nov 2011 21:15:46 +0000 (16:15 -0500)]
Updates

12 years agoDrop the Beagle search engine
Matthias Clasen [Sat, 19 Nov 2011 20:32:12 +0000 (15:32 -0500)]
Drop the Beagle search engine

It is not actively maintained.

12 years agoFix gdk_cairo_region_create_from_surface on big endian
Michel Dänzer [Sat, 19 Nov 2011 17:23:27 +0000 (12:23 -0500)]
Fix gdk_cairo_region_create_from_surface on big endian

gdk_cairo_region_create_from_surface doesn't work correctly on PPC.
This is most prominently seen with the GTK window resize grip, the
shape of which is mirrored every eight pixels horizontally.

At the same time, use an A1 surface for the resize grip shape to
eliminates an A8->A1 surface conversion.

12 years agowin32: Default to gtk-win32 theme
Alexander Larsson [Fri, 18 Nov 2011 15:53:18 +0000 (16:53 +0100)]
win32: Default to gtk-win32 theme

12 years agoBuild in default win32 css as gtk-win32
Alexander Larsson [Fri, 18 Nov 2011 15:52:38 +0000 (16:52 +0100)]
Build in default win32 css as gtk-win32

12 years agoBuild gtkwin32css.h from gtk-win32.css
Alexander Larsson [Fri, 18 Nov 2011 15:43:45 +0000 (16:43 +0100)]
Build gtkwin32css.h from gtk-win32.css

12 years agowin32-theme: Add gtk-win32.css
Alexander Larsson [Fri, 18 Nov 2011 15:20:32 +0000 (16:20 +0100)]
win32-theme: Add gtk-win32.css

12 years agogdk: remove the GET_EFFECTIVE_KEYMAP() stuff from gdkkeys-x11.c
Michael Natterer [Fri, 18 Nov 2011 15:42:25 +0000 (16:42 +0100)]
gdk: remove the GET_EFFECTIVE_KEYMAP() stuff from gdkkeys-x11.c

We don't support passing a NULL keymap any longer. Also pull some
precondition checks into the parent class.

12 years agogdk_x11_keymap_get_modifier_mask(): always return a value
Michael Natterer [Fri, 18 Nov 2011 14:26:09 +0000 (15:26 +0100)]
gdk_x11_keymap_get_modifier_mask(): always return a value

12 years agoTurn the private #define for the group-shifting modifier into API
Michael Natterer [Fri, 18 Nov 2011 14:14:31 +0000 (15:14 +0100)]
Turn the private #define for the group-shifting modifier into API

Add GDK_MODIFIER_INTENT_SHIFT_GROUP to enum GdkModifierIntent
and handle it in gdk_keymap_get_modifier_mask(). Add an X11
impl of the method and return keymap_x11->group_switch_mask.
Return 0 from the default impl because we don't know.

12 years agoBug 663856 - Make option-foo accelerators use the right symbol
Michael Natterer [Fri, 18 Nov 2011 11:25:03 +0000 (12:25 +0100)]
Bug 663856 - Make option-foo accelerators use the right symbol

If the keyboard group shifting modifier is *also* a normal
accelerator modifier, we need to special case it when calling
gdk_keymap_translate_keyboard_state(), so we get the right
key symbol for accelerators (for example we want Option-O,
not Option-Ø displayed in menu items). This patch should only
affect quartz where the Alt key both shifts the group and can
be used as accel modifier, and not X11 or Win32 where AltGr
is not used for accelerators.

- fix quartz' gdk_keymap_translate_keyboard_state() to return
  the right consumed_modifiers
- add _gtk_translate_keyboard_accel_state() which does the
  special casing
- use it everywhere instead of gdk_keymap_translate_keyboard_state()

12 years agoFix tiny docs typo.
Murray Cumming [Fri, 18 Nov 2011 10:30:07 +0000 (11:30 +0100)]
Fix tiny docs typo.

12 years agowin32-theme: Support mixing parts
Alexander Larsson [Fri, 18 Nov 2011 10:06:32 +0000 (11:06 +0100)]
win32-theme: Support mixing parts

We need this to do something about the non-existing inconsistent
radio button state in win32.

12 years agoAdd support for win32 theme colors as symbolic colors
Alexander Larsson [Fri, 18 Nov 2011 09:16:38 +0000 (10:16 +0100)]
Add support for win32 theme colors as symbolic colors

12 years agoAdd pulse style class and use in progress bar and entry
Alexander Larsson [Fri, 18 Nov 2011 09:15:04 +0000 (10:15 +0100)]
Add pulse style class and use in progress bar and entry

This is used for indeterminate progress reporting.

12 years agoSet top/bottom style classes on spinbutton buttons
Alexander Larsson [Thu, 17 Nov 2011 18:43:13 +0000 (19:43 +0100)]
Set top/bottom style classes on spinbutton buttons

12 years agoAdd top/left/bottom/right style classes to steppers
Alexander Larsson [Thu, 17 Nov 2011 16:34:05 +0000 (17:34 +0100)]
Add top/left/bottom/right style classes to steppers

This is needed for e.g. win32 theming, but is also generally
useful.

12 years agowin32-theme: Support multiple parts being combined
Alexander Larsson [Thu, 17 Nov 2011 13:34:39 +0000 (14:34 +0100)]
win32-theme: Support multiple parts being combined

This is needed for e.g. scrollbar sliders

12 years agoRender background image if set for checks and options
Alexander Larsson [Wed, 16 Nov 2011 16:03:09 +0000 (17:03 +0100)]
Render background image if set for checks and options

The default theme engine draws a fallback check/radio image, but
doesn't let you replace this. We now check if a background image
is set and if so render that instead of the default fallbacks.