Displaying 12 results from an estimated 12 matches for "use_imag".
Did you mean:
use_image
2007 Aug 22
0
5 commits - libswfdec/swfdec_as_object.c NEWS player/swfplay.c
...+ gtk_main_quit ();
+ }
+ /* FIXME: add more */
+}
+
+static void
print_trace (SwfdecPlayer *player, const char *message, gpointer unused)
{
g_print ("%s\n", message);
@@ -93,7 +102,7 @@ main (int argc, char *argv[])
SwfdecPlayer *player;
GError *error = NULL;
gboolean use_image = FALSE, no_sound = FALSE;
- gboolean trace = FALSE;
+ gboolean trace = FALSE, no_scripts = FALSE;
char *variables = NULL;
char *s;
GtkWidget *window;
@@ -101,6 +110,7 @@ main (int argc, char *argv[])
GOptionEntry options[] = {
{ "delay", 'd', 0, G_OPTION_ARG_I...
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
...gv[])
return 1;
}
+ if (no_sound)
+ swfdec_gtk_player_set_audio (SWFDEC_GTK_PLAYER (player), FALSE);
+
+ swfdec_gtk_player_set_speed (SWFDEC_GTK_PLAYER (player), speed / 100.);
+ swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (player), TRUE);
+
window = view_swf (player, scale, use_image);
set_title (GTK_WINDOW (window), argv[1]);
- if (no_sound || speed != 100) {
- playback = NULL;
- } else {
- playback = swfdec_playback_open (player, g_main_context_default ());
- }
- play_swf (player, speed / 100.);
-
- if (playback)
- swfdec_playback_close (playback);
+ gtk_...
2007 Feb 17
0
8 commits - configure.ac doc/swfdec-sections.txt libswfdec/swfdec_loader.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h
...ement --variables or -v flag to provide Flash variables
diff --git a/player/swfdebug.c b/player/swfdebug.c
index 63af21d..e1f0cbd 100644
--- a/player/swfdebug.c
+++ b/player/swfdebug.c
@@ -307,11 +307,13 @@ main (int argc, char *argv[])
SwfdecPlayer *player;
GError *error = NULL;
gboolean use_image = FALSE;
+ char *variables = NULL;
GOptionEntry options[] = {
{ "scale", 's', 0, G_OPTION_ARG_INT, &ret, "scale factor", "PERCENT" },
{ "image", 'i', 0, G_OPTION_ARG_NONE, &use_image, "use an intermediate image su...
2007 Aug 02
1
player/swfplay.c
...ir ();
+ full = g_strconcat ("file://", dir, G_DIR_SEPARATOR_S, s, NULL);
+ g_free (dir);
+ return full;
+ } else {
+ swfdec_url_free (url);
+ return g_strdup (s);
+ }
+}
+
int
main (int argc, char *argv[])
{
@@ -75,6 +95,7 @@ main (int argc, char *argv[])
gboolean use_image = FALSE, no_sound = FALSE;
gboolean trace = FALSE;
char *variables = NULL;
+ char *s;
GtkWidget *window;
GOptionEntry options[] = {
@@ -106,17 +127,10 @@ main (int argc, char *argv[])
g_printerr ("Usage: %s [OPTIONS] filename\n", argv[0]);
return 1;
}
-
-#if H...
2007 Nov 15
0
2 commits - libswfdec-gtk/swfdec_gtk_loader.c player/swfplay.c
...PTION_ARG_NONE, &gc, "run the garbage collector as often as possible", NULL },
{ "delay", 'd', 0, G_OPTION_ARG_INT, &delay, "make loading of resources take time", "SECS" },
{ "image", 'i', 0, G_OPTION_ARG_NONE, &use_image, "use an intermediate image surface for drawing", NULL },
+ { "max-runtime", 0, 0, G_OPTION_ARG_INT, &max_runtime, "maximum time scripts run before aborting the player", "SECS" },
{ "no-scripts", 0, 0, G_OPTION_ARG_NONE, &no_scripts...
2007 Oct 19
0
4 commits - configure.ac data/.gitignore data/icons data/Makefile.am data/swfdec-gtk.pc.in data/swfdec.pc.in .gitignore Makefile.am player/swfplay.c swfdec-gtk.pc.in swfdec.pc.in
...Author: Benjamin Otte <otte at gnome.org>
Date: Fri Oct 19 22:23:30 2007 +0200
set our cool new icon
diff --git a/player/swfplay.c b/player/swfplay.c
index f9b2fb3..d976358 100644
--- a/player/swfplay.c
+++ b/player/swfplay.c
@@ -50,6 +50,7 @@ view_swf (SwfdecPlayer *player, gboolean use_image)
GtkWidget *window, *widget;
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ gtk_window_set_icon_name (GTK_WINDOW (window), "swfdec");
widget = swfdec_gtk_widget_new (player);
if (use_image)
swfdec_gtk_widget_set_renderer (SWFDEC_GTK_WIDGET (widget), CAIRO_SURFACE_TY...
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
...es ("Depth", renderer,
- "text", SWFDEC_DEBUG_MOVIES_COLUMN_DEPTH, NULL);
- gtk_tree_view_column_set_resizable (column, TRUE);
- gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column);
-
- return treeview;
-}
-
-static void
-view_swf (SwfdecPlayer *player, gboolean use_image)
-{
- SwfdecPlayerManager *manager;
- GtkWidget *window, *widget, *vpaned, *hpaned, *vbox, *hbox, *scroll, *scripts;
-
- manager = swfdec_player_manager_new (player);
- window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-
- hpaned = gtk_hpaned_new ();
- gtk_container_add (GTK_CONTAINER (window...
2013 Oct 16
9
puppetdb, foreman, one particular node has a problem
..."owner_id", "owner_type", "ptable_id", "puppet_ca_proxy_id",
"puppet_proxy_id","puppet_status", "root_pass", "serial", "source_file_id",
"subnet_id", "type", "updated_at", "use_image", "uuid") VALUES ($1, $2, $3,
$4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19,
$20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34,
$35, $36, $37, $38, $39, $40, $41) RETURNING "id"
Rendered text template (0.0ms)
theres...
2007 Feb 22
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_js.c libswfdec/swfdec_js_mouse.c libswfdec/swfdec_listener.c libswfdec/swfdec_listener.h libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...er);
+ gtk_main_quit ();
+ return FALSE;
+ }
+ return FALSE;
+}
+
int
main (int argc, char *argv[])
{
@@ -348,13 +373,9 @@ main (int argc, char *argv[])
if (do_break)
g_signal_connect (player, "script-added", G_CALLBACK (do_break_cb), NULL);
view_swf (player, scale, use_image);
- swfdec_player_set_loader_with_variables (player, loader, variables);
- if (!swfdec_player_is_initialized (player)) {
- g_printerr ("File \"%s\" is not a file Swfdec can play\n", argv[1]);
- g_object_unref (player);
- player = NULL;
- return 1;
- }
+ g_object...
2007 Mar 15
0
11 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_debugger.h libswfdec/swfdec_event.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...ot;, renderer,
+ "active", SWFDEC_DEBUG_MOVIES_COLUMN_VISIBLE, NULL);
+ gtk_tree_view_column_set_resizable (column, TRUE);
+ gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column);
+
+ return treeview;
+}
+
static void
view_swf (SwfdecPlayer *player, double scale, gboolean use_image)
{
SwfdecPlayerManager *manager;
- GtkWidget *window, *widget, *hpaned, *vbox, *hbox, *scroll, *scripts;
+ GtkWidget *window, *widget, *vpaned, *hpaned, *vbox, *hbox, *scroll, *scripts;
manager = swfdec_player_manager_new (player);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
@@ -2...
2007 Aug 26
0
3 commits - libswfdec/swfdec_as_context.c player/swfplay.c test/trace
...tte at gnome.org>
Date: Sun Aug 26 21:06:32 2007 +0200
don't complain when closing the window
diff --git a/player/swfplay.c b/player/swfplay.c
index 739de8c..981a993 100644
--- a/player/swfplay.c
+++ b/player/swfplay.c
@@ -54,7 +54,7 @@ view_swf (SwfdecPlayer *player, gboolean
if (use_image)
swfdec_gtk_widget_set_renderer (SWFDEC_GTK_WIDGET (widget), CAIRO_SURFACE_TYPE_IMAGE);
gtk_container_add (GTK_CONTAINER (window), widget);
- g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
+ g_signal_connect_swapped (window, "destroy", G_CALLB...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...PTION_ARG_NONE, &gc, "run the garbage collector as often as possible", NULL },
- { "delay", 'd', 0, G_OPTION_ARG_INT, &delay, "make loading of resources take time", "SECS" },
{ "image", 'i', 0, G_OPTION_ARG_NONE, &use_image, "use an intermediate image surface for drawing", NULL },
{ "max-runtime", 0, 0, G_OPTION_ARG_INT, &max_runtime, "maximum time scripts run before aborting the player", "SECS" },
{ "no-scripts", 0, 0, G_OPTION_ARG_NONE, &no_scripts...