Displaying 5 results from an estimated 5 matches for "scriptable_class".
2007 Mar 01
0
7 commits - libswfdec/swfdec_connection.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_js_xml.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h
...dispose (GObject *obje
G_OBJECT_CLASS (swfdec_connection_parent_class)->dispose (object);
}
+extern const JSClass connection_class;
static void
swfdec_connection_class_init (SwfdecConnectionClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ SwfdecScriptableClass *scriptable_class = SWFDEC_SCRIPTABLE_CLASS (klass);
object_class->dispose = swfdec_connection_dispose;
+
+ scriptable_class->jsclass = &connection_class;
}
static void
diff --git a/libswfdec/swfdec_js_connection.c b/libswfdec/swfdec_js_connection.c
index 1ff1032..1568e64 100644
--- a/libswfdec/s...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...dispose (GObject *obje
G_OBJECT_CLASS (swfdec_connection_parent_class)->dispose (object);
}
-extern const JSClass connection_class;
static void
swfdec_connection_class_init (SwfdecConnectionClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
- SwfdecScriptableClass *scriptable_class = SWFDEC_SCRIPTABLE_CLASS (klass);
object_class->dispose = swfdec_connection_dispose;
-
- scriptable_class->jsclass = &connection_class;
}
static void
@@ -63,46 +59,37 @@ static void
swfdec_connection_onstatus (SwfdecConnection *conn, const char *code,
const char *level, c...
2007 Mar 02
0
12 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js.h libswfdec/swfdec_js_video.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h
...dispose (object);
@@ -96,14 +92,18 @@ swfdec_video_movie_iterate_end (SwfdecMo
return TRUE;
}
+extern const JSClass video_class;
static void
swfdec_video_movie_class_init (SwfdecVideoMovieClass * g_class)
{
GObjectClass *object_class = G_OBJECT_CLASS (g_class);
+ SwfdecScriptableClass *scriptable_class = SWFDEC_SCRIPTABLE_CLASS (g_class);
SwfdecMovieClass *movie_class = SWFDEC_MOVIE_CLASS (g_class);
object_class->dispose = swfdec_video_movie_dispose;
+ scriptable_class->jsclass = &video_class;
+
movie_class->update_extents = swfdec_video_movie_update_extents;
movie_c...
2007 Mar 01
0
11 commits - libswfdec/Makefile.am libswfdec/swfdec_connection.c libswfdec/swfdec_connection.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js.h libswfdec/swfdec_js_net_stream.c
...mlClass))
+
+struct _SwfdecXml {
+ SwfdecScriptable scriptable;
+
+ char * text; /* string that this XML displays */
+ SwfdecPlayer * player; /* player we're playing in */
+ SwfdecLoader * loader; /* loader when loading or NULL */
+};
+
+struct _SwfdecXmlClass {
+ SwfdecScriptableClass scriptable_class;
+};
+
+GType swfdec_xml_get_type (void);
+
+SwfdecXml * swfdec_xml_new (SwfdecPlayer * player);
+
+void swfdec_xml_load (SwfdecXml * xml,
+ const char * url);
+
+
+G_END_DECLS
+#endif
diff-tree bdd525b89076158bfd947ed1eb0f48fcc24c55cb (from 93fbadb06ab7eed16312904ecae3994af890532b)
Author...
2007 Jan 16
0
9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_cache.c libswfdec/swfdec_cached.c libswfdec/swfdec_cached.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_image.c
...ream
{
- GObject object;
+ SwfdecScriptable scriptable;
SwfdecPlayer * player; /* the player we play in */
SwfdecLoader * loader; /* input connection */
@@ -63,7 +64,7 @@ struct _SwfdecNetStream
struct _SwfdecNetStreamClass
{
- GObjectClass object_class;
+ SwfdecScriptableClass scriptable_class;
};
GType swfdec_net_stream_get_type (void);
diff-tree 097b676f528d2d0e5c0a972823cdffdf4e9b0134 (from a98207b6015a3cfbbd3fc287ad6aaa6e7dc39938)
Author: Benjamin Otte <otte@gnome.org>
Date: Tue Jan 16 11:54:24 2007 +0100
Add a SwfdecScriptable class that functions as the frontend...