summaryrefslogtreecommitdiff
path: root/clutter-gtk/gtk-clutter-util.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@openedhand.com>2008-04-21 15:06:30 +0000
committerEmmanuele Bassi <ebassi@openedhand.com>2008-04-21 15:06:30 +0000
commit8d35a251859de3b9052665d7149430d8c4cb75c4 (patch)
tree2201923bc3ed250e1928defeffbe0129a007e9e5 /clutter-gtk/gtk-clutter-util.h
parent8c75c4535a2ab9578b1d42684d102f2882072610 (diff)
downloadclutter-gtk-8d35a251859de3b9052665d7149430d8c4cb75c4.tar.gz
2008-04-21 Emmanuele Bassi <ebassi@openedhand.com>
* 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.
Diffstat (limited to 'clutter-gtk/gtk-clutter-util.h')
-rw-r--r--clutter-gtk/gtk-clutter-util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/clutter-gtk/gtk-clutter-util.h b/clutter-gtk/gtk-clutter-util.h
index e1e928a..0c79b07 100644
--- a/clutter-gtk/gtk-clutter-util.h
+++ b/clutter-gtk/gtk-clutter-util.h
@@ -19,6 +19,14 @@ void gtk_clutter_get_base_color (GtkWidget *widget,
GtkStateType state,
ClutterColor *color);
+ClutterActor *gtk_clutter_texture_new_from_pixbuf (GdkPixbuf *pixbuf);
+ClutterActor *gtk_clutter_texture_new_from_stock (GtkWidget *widget,
+ const gchar *stock_id,
+ GtkIconSize size);
+ClutterActor *gtk_clutter_texture_new_from_icon_name (GtkWidget *widget,
+ const gchar *icon_name,
+ GtkIconSize size);
+
G_END_DECLS
#endif /* __GTK_CLUTTER_UTIL_H__ */