| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Instead of using libtool, we should explicitly annotate the exported
symbols in the library API.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This has started to be a problem; applications using clutter-gtk just
assume that clutter-gtk will abort() if the initialization does not
succeed, just like gtk+ does. Clutter, on the other hand, has a non
fatal init - it'll return an error code for you to trap. This is more
of an historical accident, but we cannot change the semantics now. If
Clutter fails to initialize, any subsequent call to Clutter or Cogl
functions will have undefined results - most likely they'll end up in
a segfault somewhere down the line, but all bets are off.
Clutter started annotating its init functions to generate a compile
time warning if the return value is not being assigned; clutter-gtk
ought to do the same, to avoid mystery segfault bugs being filed.
|
|
|
|
|
|
|
|
|
| |
The old GtkStyle API has been deprecated, so we need to switch to the
newly added GtkStyleContext API.
The old clutter-gtk API to convert GtkStyle colors into Clutter colors
needs to be removed, since GdkRGBA is much easier to deal with than
GdkColor.
|
|
|
|
|
|
|
|
|
| |
Instead of adding C functions for loading GdkPixbufs, named icons and
stock icons inside ClutterTextures, we should use a simple sub-class of
ClutterTexture and add new methods there.
The constructors should also go away, since they don't allow recoverable
error handling.
|
|
|
|
|
| |
The homegrown size tracking API should be replaced by the Constraint API
that were added in Clutter 1.4.
|
|
|
|
|
|
|
| |
Rework the initialization sequence by providing a function returning a
GOptionGroup for Clutter-GTK.
Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
|
|
|
|
|
| |
The returned position needs to be relative to the containing actor, not to
the stage.
|
|
|
|
|
|
|
| |
A widget's GtkAllocation is relative to a parent container that is backed by a
GdkWindow. Add a function gtk_clutter_calculate_root_allocation() that walks
the widget's container tree to work out its location in top-level (stage)
coordinates.
|
| |
|
|
|
|
| |
The next stable release of clutter-gtk is going to be 0.10.
|
|
|
|
|
|
|
|
|
| |
Add boolean returns and GError arguments to gtk_clutter_texture_set_*
This lets you discover if the call was successful more easily. Also
remove the fallback situation of setting missing-icon, this can now be
handled by the application.
Reviewed by Emmanuele Bassi <ebassi@linux.intel.com>
|
|
|
|
|
|
| |
The gtk_clutter_init* family of functions should live in the
utilities code, and not inside the GtkClutterEmbed header and
source files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* clutter-gtk/Makefile.am:
* examples/Makefile.am: Update the build.
* clutter-gtk/clutter-gtk.h: Added a single include header, and
disabled the inclusion of specific headers; this keeps the
library clean and future-proof, now that we have more than one
header file.
* clutter-gtk/gtk-clutter-embed.h:
* clutter-gtk/gtk-clutter-util.h: Disabled the direct inclusion
of a single header file.
* clutter-gtk/gtk-clutter-scrollable.c:
* clutter-gtk/gtk-clutter-scrollable.h: Added a GtkClutterScrollable
interface for scrollable actors using GtkAdjustments.
* clutter-gtk/gtk-clutter-viewport.c:
* clutter-gtk/gtk-clutter-viewport.h: Added a scrollable actor
implementing GtkClutterScrollable.
* doc/reference/Makefile.am:
* doc/reference/clutter-gtk-docs.sgml:
* doc/reference/clutter-gtk-sections.txt:
* doc/reference/clutter-gtk.types: Update the documentation.
* examples/gtk-clutter-events.c:
* examples/gtk-clutter-multistage.c:
* examples/gtk-clutter-test.c: Update to include clutter-gtk.h.
* examples/gtk-clutter-viewport.c: Added an example of
the GtkClutterViewport usage.
|
|
|
|
|
|
|
|
|
| |
* clutter-gtk/gtk-clutter-util.[ch]: Add API for retrieving
the various color components out of a GtkWidget style in form
of a ClutterColor.
* doc/reference/clutter-gtk-sections.txt: Include the newly
added API in the generated reference.
|
|
|
|
| |
* configure.ac: Post-release bump to 0.8.1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* clutter-gtk.pc.in: Fix the inclusion directory
* clutter-gtk/gtk-clutter-embed.c: Synch up with the stable branch
to handle focus. Also remove the ClutterContainer implementation.
* clutter-gtk/gtk-clutter-util.[ch]: Fully document and add the
gtk_clutter_texture_set_from_icon_name() helper function.
* configure.ac: Whitespace
* examples/gtk-clutter-test.c: Update.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* clutter-gtk/gtk-clutter-util.h:
* clutter-gtk/gtk-clutter-util.c:
(gtk_clutter_texture_new_from_pixbuf),
(gtk_clutter_texture_new_from_stock),
(gtk_clutter_texture_new_from_icon_name): Add utility functions
to create a ClutterTexture from a Pixbuf (to replace the
clutter_texture_from_pixbuf() call when it will be removed
from Clutter core); from a stock id; and from an icon name.
* examples/Makefile.am: Clean up.
* examples/gtk-clutter-events.c:
* examples/gtk-clutter-multistage.c: Use the new utility API.
|
|
* clutter-gtk/gtk-clutter-util.[ch]: Add utility functions to
ClutterGtk to be able to retrieve the ClutterColor equivalent
of the various style color components of a GtkWidget.
* clutter-gtk/Makefile.am: Add gtk-clutter-util.[ch] to the build.
* doc/reference/clutter-gtk-docs.sgml: Add the new section in
the documentation.
* examples/gtk-clutter-events.c (create_colors): Test the newly
added color retrieval API.
|