Commit Graph

2697 Commits

Author SHA1 Message Date
Tomeu Vizoso 077d3b9cf8 kinetic-scroll-view: Respect MxAdjustment::clamp-values
http://bugzilla.clutter-project.org/show_bug.cgi?id=2680
2011-09-20 17:59:28 +02:00
Thomas Wood 2f15362722 action: deprecate the "active" property in favour of GAction:enabled 2011-09-20 12:24:17 +01:00
Thomas Wood c2642f152f application: check that Clutter was initialised correctly
Check that Clutter was successfully initialised and abort the application
if initialisation failed.
2011-09-20 12:16:54 +01:00
Damien Lespiau fbd2a92989 action: Implement the GAction interface
Let's implement the GAction interface there to be able to use MxActions
in GActionGroups or even start thinking about implementing GApplication.

A few details:

- GAction has the "enabled" property while MxAction has the "active"
  one. We deprecate the MxAction property in favour of the GAction one.
- GAction has the "activate" signal while MxAction has the "activated"
  signal and those signals have different signatures. We try to make
  sure to emit both signals, whatever way the action is being activated.
2011-09-20 12:16:54 +01:00
Damien Lespiau 459d89a33b action: Remove empty dispose function 2011-09-20 12:16:53 +01:00
Damien Lespiau 27b9749e57 build: Remove commented out Glib utils detection
No need to keep them there.
2011-09-20 12:16:53 +01:00
Thomas Wood dca7f490ad box-layout,grid: implement the get_paint_volume virtual function
Use the allocation of the widget offset by the scrolling transformation to
calculate the paint volume.
2011-09-19 14:22:03 +01:00
Thomas Wood 635a50fc9d widget: don't use the allocation as the paint volume for scrollable widgets
The allocation for scrollable widgets cannot be used as the paint volume
because it does not account for any transformations applied during
scrolling.
2011-09-19 14:20:32 +01:00
Thomas Wood 302a43d5b6 entry: implement Unicode input mode
Allow entry of Unicode characters using ctrl-shift-u and the hexadecimal
number of the character.
2011-09-16 18:16:12 +01:00
Thomas Wood 434e3ea81f entry: add a selected-text-color style property 2011-09-14 17:59:48 +01:00
Thomas Wood e27a27e2a8 Implement get_paint_volume virtual function on MxWidget and MxTextureFrame 2011-09-14 14:10:09 +01:00
Thomas Wood 07ae605391 image: remove the gdk-pixbuf include from the public header 2011-09-13 16:53:51 +01:00
Thomas Wood d16cdeb909 tooltip: ensure the tooltip is positioned correctly 2011-09-13 15:09:39 +01:00
Damien Lespiau a8347d67b2 build: Allow building from git without gtk-doc
Something was already done to fake gtk-doc.make, it just needed to be extended
to work with current master.

Then, you need to be able to only expand the GTK_DOC m4 macro when it exists.
2011-09-08 13:48:53 +01:00
Thomas Wood 829250b98c tests: add window rotation buttons to test-widgets 2011-09-08 13:48:53 +01:00
Thomas Wood d7f23790b5 tests: add a new program to test various widgets 2011-09-08 13:48:22 +01:00
Thomas Wood d01e50217d Post-release version bump to 1.3.2 2011-08-31 12:13:46 +01:00
Thomas Wood f4c70fd8a4 Update NEWS for 1.3.1 2011-08-31 12:00:34 +01:00
Thomas Wood e7be35e429 style: special case a value of 'none' as a NULL string 2011-08-30 16:04:52 +01:00
Thomas Wood 84b9f573c6 slider: prevent the handle position being set while the user is dragging it
Ensure that the handle position is only updated by motion events while it
is being dragged by the user.
2011-08-30 14:53:12 +01:00
Thomas Wood 864b10083f configure: create 'xz' compressed distribution tarballs by default 2011-08-30 13:28:36 +01:00
Thomas Wood 63e5fd6ef4 menu: close the menu if the focus is moved elsewhere
Close the menu when the focus moves out of the actor, unless the
notification was caused by moving the focus to one of the menu items.
2011-08-30 13:26:47 +01:00
Thomas Wood 0e960beaaa menu: close the menu is the escape key is pressed 2011-08-26 17:04:02 +01:00
Lionel Landwerlin 20eaf3cf2a configure.ac: bump clutter required version to 1.4
The MxFadeEffect requires clutter 1.4.
2011-08-26 15:48:46 +01:00
Evan Nemerson 315bda349b introspection: many small introspection and documentation fixes
Fixes http://bugzilla.clutter-project.org/show_bug.cgi?id=2675
2011-08-26 15:32:09 +01:00
Thomas Wood ba78da8515 combo-box: open the menu when the return key is pressed
Open the menu when return key is pressed and allow the focus manager to
use the up/down keys to move focus.
2011-08-22 17:32:06 +01:00
Thomas Wood d2aa4fdfcb menu: implement the focusable interface
Implement the MxFocusable interface on MxMenu to allow key navigation
within menus.
2011-08-22 17:22:58 +01:00
Thomas Wood c17c9c1a06 build: ensure $MX_CFLAGS are used when building the introspection files 2011-08-15 12:25:14 +01:00
Lionel Landwerlin a3c3cac44e stack: add 'crop' child property
The 'crop' child property attempts to allocate the actor in such way
that it will completely fill the available space while keeping the
aspect ratio of the child, even if some area of the actor are over the
allocation of its parent. In such case the paint uses a clip rectangle
to not draw over the parent's allocation.
2011-08-12 12:06:52 +01:00
Thomas Wood 53bad08568 image: only calculate the old texture co-ordinates when needed 2011-08-12 10:42:31 +01:00
Thomas Wood 44c58faf1e image: only calculate the previous scale when needed 2011-08-12 10:41:52 +01:00
Thomas Wood 440e453b9b image: optimise the cogl material when there is no transition in progress
Use a cogl material that has only one layer when there is no transition in
progress.
2011-08-11 17:12:29 +01:00
Neil Roberts 5b61f72892 configure.ac: Add -no-undefined to the libtool flags
This flag lets libtool know that the library doesn't have any
undefined symbols that will be resolved before they are used. This
should be the case for Mx. The flag is required to build a DLL on
Windows because the feature isn't supported.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2674
2011-08-10 10:55:23 +01:00
Neil Roberts 17589e1c9a mx-image: Conditionally call sysconf
This adds a #ifdef around the call to sysconf with a fallback to
assume there is only one processor on systems without it. This makes
it easier to compile on non-Unix systems.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2674
2011-08-10 10:55:23 +01:00
Neil Roberts 1ef8882618 mx-create-image-cache: Use GDir instead of opendir
Instead of using opendir in libc directly, it now uses GDir. The
contents of struct dirent aren't guarenteed so this makes it easier to
compile on systems such as Windows which don't have the d_type member.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2674
2011-08-10 10:55:23 +01:00
Thomas Wood afb2bca448 Post-release version bump to 1.3.1 2011-08-04 15:50:06 +01:00
Thomas Wood a9da256fa6 icon: allow the icon name to be unset from the style 2011-08-04 15:44:33 +01:00
Tomeu Vizoso a1f5dc69cb kinetic-scroll-view: Add ::clamp-duration and ::clamp-mode
So the interpolation animation when clamping can be customized.
2011-08-04 15:44:33 +01:00
Tomeu Vizoso 628960e24a kinetic-scroll-view: Lower minimum value of ::deceleration to 1.01 2011-08-03 16:48:18 +02:00
Tomeu Vizoso e66964510a kinetic-scroll-view: Add property ::acceleration-factor
Allows specifying a faster initial speed.
2011-08-03 16:47:30 +02:00
Evan Nemerson a6971c58bb Mark private fields as such and document mx_icon_theme_get_search_paths 2011-08-01 09:47:06 +01:00
Thomas Wood fe8f3fa0d5 Update bugzilla location in README 2011-08-01 09:40:54 +01:00
Thomas Wood 86caf35f8e Update NEWS and configure.ac for 1.3.0 2011-07-29 17:33:47 +01:00
Damien Lespiau 1089956bff image: Allow a transition duration of 0ms
and thus allow people to desactivate transitions.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2666
2011-07-29 10:17:57 +01:00
Lionel Landwerlin 67b8af26d8 Fix compiler warnings
http://bugzilla.clutter-project.org/show_bug.cgi?id=2663
2011-07-29 10:15:16 +01:00
Lionel Landwerlin ec9599d274 mx-actor-manager: unparent container before removing children
When removing a container from the stage, if we remove all its
children before removing the container itself we end up triggering a
relayout of the tree for each removal.

This patch propose an improvment by unparenting the container first,
before removing all its children.

Also fix a bug with the callback not being recalled when there are
still operations to process.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2662
2011-07-29 10:14:57 +01:00
Tristan Van Berkom 97ec19968c box-layout: Make it safe to destroy children from clutter_container_foreach().
Since a call to clutter_actor_destroy() modifies the list of children
it's important to take care while walking the list in a ClutterContainer's
foreach() implementation, otherwise it's impossible to destroy all the
children of a container using clutter_container_foreach() with
clutter_actor_destroy().

This fixes http://bugzilla.clutter-project.org/show_bug.cgi?id=2646
2011-07-29 10:02:44 +01:00
Tristan Van Berkom 80e737fed2 entry: Fix orphaned child ClutterActors at mx_entry_dispose time.
This fixes http://bugzilla.clutter-project.org/show_bug.cgi?id=2645
2011-07-29 09:57:22 +01:00
Thomas Wood ac79f620e1 Fix various memory leaks 2011-07-22 16:38:10 +01:00
Thomas Wood f378815df1 stylable: avoid making more type checks than necessary
Only check that the MxStylable instance is a ClutterActor once during the
_mx_stylable_get_style_string function and avoid the extra type check when
enumerating the parents of the stylable.
2011-07-22 15:28:58 +01:00