summaryrefslogtreecommitdiff
path: root/clutter-gtk/gtk-clutter-util.h
Commit message (Collapse)AuthorAgeFilesLines
* build: Use compiler annotations for visible symbolsEmmanuele Bassi2017-05-261-0/+4
| | | | | Instead of using libtool, we should explicitly annotate the exported symbols in the library API.
* Add G_GNUC_WARN_UNUSED_RESULT annotation to init functionsEmmanuele Bassi2011-10-061-2/+2
| | | | | | | | | | | | | | | 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.
* Fixes after the style API changedEmmanuele Bassi2010-12-231-25/+0
| | | | | | | | | 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.
* Add GtkClutterTexture and rework texture integrationEmmanuele Bassi2010-12-221-52/+0
| | | | | | | | | 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.
* Clean up API and documentationEmmanuele Bassi2010-07-211-31/+7
| | | | | The homegrown size tracking API should be replaced by the Constraint API that were added in Clutter 1.4.
* Add gtk_clutter_get_option_group()Christian Persch2010-03-181-0/+1
| | | | | | | Rework the initialization sequence by providing a function returning a GOptionGroup for Clutter-GTK. Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
* actually calculate the position properlyDanielle Madeley2009-11-181-0/+2
| | | | | The returned position needs to be relative to the containing actor, not to the stage.
* correctly calculate the position of a ClutterActorDanielle Madeley2009-11-181-0/+2
| | | | | | | 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.
* Make the code for binding width/height between actors a util functionDanielle Madeley2009-11-181-1/+19
|
* [docs] Update the Since tagsEmmanuele Bassi2009-07-281-1/+1
| | | | The next stable release of clutter-gtk is going to be 0.10.
* [util] Add error arguments to texture functionsChris Lord2009-07-161-6/+26
| | | | | | | | | 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>
* Move init functions out of Embed sourceEmmanuele Bassi2009-04-141-0/+25
| | | | | | The gtk_clutter_init* family of functions should live in the utilities code, and not inside the GtkClutterEmbed header and source files.
* 2008-10-20 Emmanuele Bassi <ebassi@linux.intel.com>Emmanuele Bassi2008-10-201-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* 2008-09-25 Emmanuele Bassi <ebassi@linux.intel.com>Emmanuele Bassi2008-09-251-0/+12
| | | | | | | | | * 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.
* 2008-07-15 Emmanuele Bassi <ebassi@openedhand.com>Emmanuele Bassi2008-07-151-2/+2
| | | | * configure.ac: Post-release bump to 0.8.1.
* 2008-07-04 Emmanuele Bassi <ebassi@openedhand.com>Emmanuele Bassi2008-07-041-19/+50
| | | | | | | | | | | | | | * 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.
* 2008-04-21 Emmanuele Bassi <ebassi@openedhand.com>Emmanuele Bassi2008-04-211-0/+8
| | | | | | | | | | | | | | | | * 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.
* 2008-04-17 Emmanuele Bassi <ebassi@openedhand.com>Emmanuele Bassi2008-04-171-0/+24
* 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.