Displaying 20 results from an estimated 38 matches for "pspec".
Did you mean:
spec
2007 Aug 16
1
Branch 'vivi' - vivified/ui
...9 2007 +0200
Set the title correctly
diff --git a/vivified/ui/main.c b/vivified/ui/main.c
index df123a9..13d03ab 100644
--- a/vivified/ui/main.c
+++ b/vivified/ui/main.c
@@ -48,6 +48,16 @@ delete_event (GtkWidget *widget, GdkEven
}
static void
+set_title (ViviApplication *app, GParamSpec *pspec, GtkWindow *window)
+{
+ const char *filename = vivi_application_get_filename (app);
+
+ if (filename == NULL)
+ filename = "Vivified";
+ gtk_window_set_title (window, filename);
+}
+
+static void
setup (const char *filename, const char *variables)
{
GtkWidget *window, *box, *w...
2008 Jan 14
0
player/swfdec-player.ui player/swfdec-window.c player/swfdec-window.h
...e <glib/gi18n.h>
+#include <glib/gprintf.h>
#include "swfdec-window.h"
G_DEFINE_TYPE (SwfdecWindow, swfdec_window, G_TYPE_OBJECT)
@@ -76,6 +77,21 @@ swfdec_window_init (SwfdecWindow *window)
}
static void
+swfdec_window_player_aborted (SwfdecPlayer *player, GParamSpec *pspec, SwfdecWindow *window)
+{
+ if (swfdec_as_context_is_aborted (SWFDEC_AS_CONTEXT (player)))
+ swfdec_window_error (window, _("Broken Flash file, playback aborted."));
+}
+
+static void
+swfdec_window_player_next_event (SwfdecPlayer *player, GParamSpec *pspec, SwfdecWindow *window)
+{
+...
2007 Aug 29
0
15 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_system_as.c
...ro_destroy (cr);
- }
- gtk_widget_destroy (dialog);
-}
-#endif /* CAIRO_HAS_SVG_SURFACE */
-
-static void
-step_clicked_cb (GtkButton *button, SwfdecPlayerManager *manager)
-{
- swfdec_player_manager_iterate (manager);
-}
-
-static void
-step_disable_cb (SwfdecPlayerManager *manager, GParamSpec *pspec, GtkWidget *widget)
-{
- gtk_widget_set_sensitive (widget, !swfdec_player_manager_get_interrupted (manager));
-}
-
-static void
-select_scripts (GtkTreeSelection *select, SwfdecDebugScript *script)
-{
- GtkTreeModel *model;
- GtkTreeIter iter;
-
- if (gtk_tree_selection_get_selected (select, &a...
2007 Aug 07
0
5 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_keys.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie_as.c player/swfdebug.c player/swfdec_debug_movies.c player/swfdec_debug_movies.h test/trace
...+ iter.stamp = movies->stamp;
+ iter.user_data = new;
+ path = swfdec_debug_movies_node_to_path (new);
gtk_tree_model_row_inserted (GTK_TREE_MODEL (movies), path, &iter);
gtk_tree_path_free (path);
}
static void
+swfdec_debug_movies_movie_notify (SwfdecMovie *movie, GParamSpec *pspec, SwfdecDebugMovies *movies)
+{
+ GtkTreeIter iter;
+ GtkTreePath *path;
+ GNode *node;
+
+ node = g_hash_table_lookup (movies->nodes, movie);
+ if (g_str_equal (pspec->name, "depth")) {
+ /* reorder when depth changes */
+ g_printerr ("FIXME: implement depth changes\...
2007 Mar 27
0
15 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/.gitignore libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h
...+ *
+ * The structure for the Swfdec Gtk player contains no public fields.
+ */
+
+/*** SWFDEC_GTK_PLAYER ***/
+
+G_DEFINE_TYPE (SwfdecGtkPlayer, swfdec_gtk_player, SWFDEC_TYPE_PLAYER)
+
+static void
+swfdec_gtk_player_get_property (GObject *object, guint param_id, GValue *value,
+ GParamSpec * pspec)
+{
+ SwfdecGtkPlayer *player = SWFDEC_GTK_PLAYER (object);
+
+ switch (param_id) {
+ case PROP_PLAYING:
+ g_value_set_boolean (value, player->source != NULL);
+ break;
+ case PROP_AUDIO:
+ g_value_set_boolean (value, player->audio_enabled);
+ break;
+ case PR...
2007 Aug 21
0
Branch 'vivi' - 15 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_types.h vivified/core vivified/ui
...pointer result)
-{
- if (SWFDEC_IS_GTK_WIDGET (widget)) {
- *(gpointer *) result = widget;
- return;
- }
-
- if (GTK_IS_CONTAINER (widget))
- gtk_container_foreach (GTK_CONTAINER (widget), find_player, result);
-}
-
-static void
vivi_player_notify_app (ViviApplication *app, GParamSpec *pspec, SwfdecGtkWidget *player)
{
if (g_str_equal (pspec->name, "player")) {
@@ -51,13 +39,11 @@ vivi_player_application_set (ViviViviDoc
void
vivi_player_application_set (ViviViviDocklet *docklet, ViviApplication *app)
{
- SwfdecGtkPlayer *player = NULL;
+ SwfdecGtkWidget *widget =...
2007 Mar 20
0
5 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_net_stream.c
...loader_get_property (GObject *obj
case PROP_SIZE:
g_value_set_ulong (value, loader->size);
break;
+ case PROP_LOADED:
+ g_value_set_ulong (value, swfdec_loader_get_loaded (loader));
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
break;
@@ -163,6 +167,9 @@ swfdec_loader_class_init (SwfdecLoaderCl
g_object_class_install_property (object_class, PROP_SIZE,
g_param_spec_ulong ("size", "size", "amount of bytes in loader",
0, G_MAXULONG, 0, G_PARAM_READWRITE));
+ g_object_clas...
2007 Jul 21
0
12 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/jpeg libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...ht time */
+ player->invalid.x0 = 0;
+ player->invalid.y0 = 0;
+ player->invalid.x1 = player->stage_width;
+ player->invalid.y1 = player->stage_height;
+#endif
+}
+
+static void
swfdec_player_set_property (GObject *object, guint param_id, const GValue *value,
GParamSpec *pspec)
{
@@ -458,9 +527,11 @@ swfdec_player_set_property (GObject *obj
break;
case PROP_ALIGNMENT:
player->align_flags = swfdec_player_alignment_to_flags (g_value_get_enum (value));
+ swfdec_player_update_scale (player);
break;
case PROP_SCALE:
player->sc...
2007 Mar 21
0
4 commits - libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c player/swfdec_slow_loader.c
.../player/swfdec_slow_loader.c
index 0eb5b61..47b7723 100644
--- a/player/swfdec_slow_loader.c
+++ b/player/swfdec_slow_loader.c
@@ -29,10 +29,19 @@
G_DEFINE_TYPE (SwfdecSlowLoader, swfdec_slow_loader, SWFDEC_TYPE_LOADER)
static void
+swfdec_slow_loader_notify_cb (SwfdecLoader *child, GParamSpec *pspec, SwfdecLoader *loader)
+{
+ if (g_str_equal (pspec->name, "size")) {
+ swfdec_loader_set_size (loader, swfdec_loader_get_size (child));
+ }
+}
+
+static void
swfdec_slow_loader_dispose (GObject *object)
{
SwfdecSlowLoader *slow = SWFDEC_SLOW_LOADER (object);
+ g_signal_han...
2012 Jan 17
3
GObject bindings
This is the first iteration of the GObject bindings. I have 'kicked the tyres'
on these, meaning I have ensured that a bunch of basic manual tests work as
expected. I'm in the process of adding more comprehensive tests.
Here's an example simple javascript program which uses these bindings:
===
const Guestfs = imports.gi.Guestfs;
print('Starting');
var g = new
2007 Aug 17
0
Branch 'vivi' - 3 commits - player/Makefile.am player/swfdec_debug_movies.c player/swfdec_debug_movies.h vivified/core vivified/ui
...- iter.stamp = movies->stamp;
- iter.user_data = new;
- path = swfdec_debug_movies_node_to_path (new);
- gtk_tree_model_row_inserted (GTK_TREE_MODEL (movies), path, &iter);
- gtk_tree_path_free (path);
-}
-
-static void
-swfdec_debug_movies_movie_notify (SwfdecMovie *movie, GParamSpec *pspec, SwfdecDebugMovies *movies)
-{
- GtkTreeIter iter;
- GtkTreePath *path;
- GNode *node;
-
- node = g_hash_table_lookup (movies->nodes, movie);
- if (g_str_equal (pspec->name, "depth")) {
- /* reorder when depth changes */
- g_printerr ("FIXME: implement depth changes\...
2007 Aug 20
0
15 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c
...@@ enum {
LAST_SIGNAL
};
+enum {
+ PROP_0,
+ PROP_UNTIL_GC
+};
+
G_DEFINE_TYPE (SwfdecAsContext, swfdec_as_context, G_TYPE_OBJECT)
static guint signals[LAST_SIGNAL] = { 0, };
static void
+swfdec_as_context_get_property (GObject *object, guint param_id, GValue *value,
+ GParamSpec * pspec)
+{
+ SwfdecAsContext *context = SWFDEC_AS_CONTEXT (object);
+
+ switch (param_id) {
+ case PROP_UNTIL_GC:
+ g_value_set_ulong (value, (gulong) context->memory_until_gc);
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+ break;
+...
2007 Aug 09
0
Branch 'vivi' - 6 commits - configure.ac vivified/core vivified/dock vivified/Makefile.am vivified/ui
...*klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ object_class->dispose = vivi_docker_dispose;
+
+ signals[REQUEST_CLOSE] = 0;
+}
+
+static void
+vivi_docker_init (ViviDocker *docker)
+{
+}
+
+static void
+vivi_docker_docklet_notify_title (ViviDocklet *docklet, GParamSpec *pspec, GtkLabel *label)
+{
+ gtk_label_set_text (label, vivi_docklet_get_title (docklet));
+}
+
+static void
+vivi_docker_set_docklet (ViviDocker *docker, ViviDocklet *docklet)
+{
+ GtkWidget *box, *widget;
+
+ g_return_if_fail (VIVI_IS_DOCKER (docker));
+ g_return_if_fail (VIVI_IS_DOCKLET (docklet))...
2007 Aug 02
0
4 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_file_loader.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h player/swfdec_slow_loader.c
...c_loader_get_property (GObject *obj
case PROP_LOADED:
g_value_set_ulong (value, swfdec_loader_get_loaded (loader));
break;
+ case PROP_URL:
+ g_value_set_boxed (value, loader->url);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
break;
@@ -136,6 +140,13 @@ swfdec_loader_set_property (GObject *obj
if (loader->size == 0 && g_value_get_ulong (value) > 0)
swfdec_loader_set_size (loader, g_value_get_ulong (value));
break;
+ case PROP_URL:
+ loader->url = g_value_dup_boxed (value...
2012 Mar 27
16
[PATCH 01/16] generator: Fix unescaped '<' and '>' in api descriptions
---
generator/generator_actions.ml | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml
index 68a7bf6..fcf363f 100644
--- a/generator/generator_actions.ml
+++ b/generator/generator_actions.ml
@@ -4664,7 +4664,7 @@ This creates an ext2/3/4 filesystem on C<device> with
an external journal on
2007 Aug 27
0
7 commits - libswfdec/Makefile.am libswfdec/swfdec_as_string.c libswfdec/swfdec_as_string.h libswfdec/swfdec_as_strings.c libswfdec/swfdec.h libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_player.c
...@ swfdec_player_get_property (GObject *obj
case PROP_SCALE:
g_value_set_enum (value, player->scale_mode);
break;
+ case PROP_SYSTEM:
+ g_value_set_object (value, player->system);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
break;
@@ -735,6 +739,14 @@ swfdec_player_set_property (GObject *obj
case PROP_SCALE:
swfdec_player_set_scale_mode (player, g_value_get_enum (value));
break;
+ case PROP_SYSTEM:
+ g_object_unref (player->system);
+ if (g_value_get_object (value)) {
+ play...
2008 Jan 14
0
8 commits - player/swfdec-player.c player/swfdec-player.ui player/swfdec-window.c player/swfdec-window-handlers.c
...layer
diff --git a/player/swfdec-window.c b/player/swfdec-window.c
index c7fa72c..5b1a32e 100644
--- a/player/swfdec-window.c
+++ b/player/swfdec-window.c
@@ -78,11 +78,17 @@ swfdec_window_init (SwfdecWindow *window)
static void
swfdec_window_player_initialized (SwfdecPlayer *player, GParamSpec *pspec, SwfdecWindow *window)
{
- if (!swfdec_player_is_initialized (player))
- return;
-
- gtk_recent_manager_add_item (gtk_recent_manager_get_default (),
- swfdec_url_get_url (swfdec_loader_get_url (window->loader)));
+ static const char *mime[2] = { "swfdec-player", NULL };
+...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...nt, count);
- g_print ("reordering %u => %u (%u total)\n", old, new, count);
for (i = 0; i < min; i++) {
positions[i] = i;
}
@@ -393,6 +392,16 @@ vivi_movie_list_removed (ViviDebugger *d
}
static void
+vivi_movie_list_reset (ViviApplication *app, GParamSpec *pspec, ViviMovieList *movies)
+{
+ GNode *walk;
+
+ for (walk = movies->root->children; walk; walk = walk->next) {
+ vivi_movie_list_removed (NULL, walk->data, movies);
+ }
+}
+
+static void
vivi_movie_list_dispose (GObject *object)
{
ViviMovieList *movies = VIVI_MOVIE_LIST (object...
2007 Oct 22
0
6 commits - doc/Makefile.am doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h
...ct, guint param_id, GValue *value,
case PROP_SYSTEM:
g_value_set_object (value, player->system);
break;
+ case PROP_MAX_RUNTIME:
+ g_value_set_ulong (value, player->max_runtime);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
break;
@@ -751,6 +755,9 @@ swfdec_player_set_property (GObject *object, guint param_id, const GValue *value
player->system = swfdec_system_new ();
}
break;
+ case PROP_MAX_RUNTIME:
+ swfdec_player_set_maximum_runtime (player, g_value_get_ulong (value));
+ br...
2007 Aug 22
0
Branch 'vivi' - 2 commits - libswfdec-gtk/swfdec_source.c vivified/ui
...nt, count);
- g_print ("reordering %u => %u (%u total)\n", old, new, count);
for (i = 0; i < min; i++) {
positions[i] = i;
}
@@ -393,6 +392,16 @@ vivi_movie_list_removed (ViviDebugger *d
}
static void
+vivi_movie_list_reset (ViviApplication *app, GParamSpec *pspec, ViviMovieList *movies)
+{
+ GNode *walk;
+
+ for (walk = movies->root->children; walk; walk = walk->next) {
+ vivi_movie_list_removed (NULL, walk->data, movies);
+ }
+}
+
+static void
vivi_movie_list_dispose (GObject *object)
{
ViviMovieList *movies = VIVI_MOVIE_LIST (object...