Displaying 20 results from an estimated 328 matches for "gboolean".
Did you mean:
boolean
2012 Jan 12
1
Libguestfs gobject bindings
I'm currently working on gobject bindings for libguestfs. I haven't got
as far as compiling anything yet, but I've attached the C header for
initial review.
Matt
--
Matthew Booth, RHCA, RHCSS
Red Hat Engineering, Virtualisation Team
GPG ID: D33C3490
GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
-------------- next part --------------
An embedded and
2007 Aug 05
0
7 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec.h libswfdec/swfdec_key.h libswfdec/swfdec_marshal.list libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...mouse event may not be
- * handled if the user clicked on a translucent area for example.
+ * Returns: %TRUE if the mouse event was handled. %FALSE to propagate the event
+ * further. A mouse event may not be handled if the user clicked on a
+ * translucent area.
**/
gboolean
swfdec_player_handle_mouse (SwfdecPlayer *player,
@@ -1653,6 +1654,17 @@ swfdec_player_handle_mouse (SwfdecPlayer
return ret;
}
+/**
+ * swfdec_player_key_press:
+ * @player: a #SwfdecPlayer
+ * @key: the key that was pressed
+ *
+ * Call this function to make the @player react to a key pre...
2007 Jan 26
0
Branch 'interpreter' - 9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_debugger.c libswfdec/swfdec_debugger.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c
.../swfdec_js.c
+++ b/libswfdec/swfdec_js.c
@@ -318,8 +318,6 @@ swfdec_js_eval_get_property (JSContext *
return JS_FALSE;
if (!prop)
return JS_FALSE;
- if (pobj)
- obj = pobj;
return OBJ_GET_PROPERTY (cx, obj, (jsid) prop->id, ret);
}
}
@@ -345,7 +343,7 @@ static gboolean
swfdec_js_eval_internal (JSContext *cx, JSObject *obj, const char *str,
jsval *val, gboolean set)
{
- jsval cur;
+ jsval cur = JSVAL_NULL;
char *work = NULL;
SWFDEC_LOG ("eval called with \"%s\" on %p", str, obj);
@@ -361,12 +359,10 @@ swfdec_js_eval_interna...
2007 Jan 24
0
Branch 'interpreter' - 8 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_js.c libswfdec/swfdec_js.h libswfdec/swfdec_script.c test/swfdec_out.c test/swfdec_out.h test/swfedit_tag.c test/swfedit_token.c test/swfedit_token.h
...nsitive evaluation
- *
- * This function works like the Actionscript eval function used on @obj.
- * It handles both slash-style and dot-style notation.
- *
- * Returns: the value or JSVAL_VOID if no value was found.
- **/
-jsval
-swfdec_js_eval (JSContext *cx, JSObject *obj, const char *str,
- gboolean ignore_case)
+static JSBool
+swfdec_js_eval_set_property (JSContext *cx, JSObject *obj,
+ const char *name, gboolean initial, gboolean ignore_case, jsval *ret)
+{
+ JSAtom *atom;
+ JSObject *pobj;
+ JSProperty *prop;
+
+ atom = js_Atomize (cx, name, strlen(name), ignore_case ? ATOM_NOCASE :...
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
...ayer.h"
+#include "libswfdec-gtk/swfdec_playback.h"
+#include "libswfdec-gtk/swfdec_source.h"
+
+struct _SwfdecGtkPlayer
+{
+ SwfdecPlayer player;
+
+ GSource * source; /* source if playing, NULL otherwise */
+ SwfdecPlayback * playback; /* audio playback object */
+ gboolean audio_enabled; /* TRUE if audio should be played */
+ double speed; /* desired playback speed */
+};
+
+struct _SwfdecGtkPlayerClass
+{
+ SwfdecPlayerClass player_class;
+};
+
+enum {
+ PROP_0,
+ PROP_PLAYING,
+ PROP_AUDIO,
+ PROP_SPEED
+};
+
+/*** gtk-doc ***/
+
+/**
+ * SECTION:Swfdec...
2007 Mar 26
0
6 commits - doc/swfdec-sections.txt libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec/swfdec_loader.c player/swfplay.c swfdec-gtk.pc.in
...yer_get_playing (SwfdecGtk
}
/**
- * swfdec_gtk_player_set_audio:
+ * swfdec_gtk_player_set_audio_enabled:
* @player: a #SwfdecGtkPlayer
* @enabled: %TRUE to enable audio
*
* Enables or disables automatic audio playback.
**/
void
-swfdec_gtk_player_set_audio (SwfdecGtkPlayer *player, gboolean enabled)
+swfdec_gtk_player_set_audio_enabled (SwfdecGtkPlayer *player, gboolean enabled)
{
g_return_if_fail (SWFDEC_IS_GTK_PLAYER (player));
@@ -282,7 +282,7 @@ swfdec_gtk_player_set_audio (SwfdecGtkPl
}
/**
- * swfdec_gtk_player_get_audio:
+ * swfdec_gtk_player_get_audio_enabled:
* @p...
2007 Apr 05
0
4 commits - libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_stream.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec.c libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec.h libswfdec/swfdec_codec_mad.c
...mpeg_audio;
+extern const SwfdecVideoCodec swfdec_codec_ffmpeg_video;
#endif
-extern const SwfdecVideoCodec swfdec_codec_gst_h263;
+extern const SwfdecVideoCodec swfdec_codec_gst_video;
/*** UNCOMPRESSED SOUND ***/
#define U8_FLAG (0x10000)
static gpointer
-swfdec_codec_uncompressed_init (gboolean width, SwfdecAudioOut format)
+swfdec_codec_uncompressed_init (SwfdecAudioFormat type, gboolean width, SwfdecAudioOut format)
{
guint ret = format;
if (!width)
@@ -121,7 +119,7 @@ swfdec_codec_get_audio (SwfdecAudioForma
case SWFDEC_AUDIO_FORMAT_ADPCM:
return &swfdec_codec_ad...
2007 Oct 22
0
2 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h
...guint keycode, guint characte
{
g_assert (keycode < 256);
- swfdec_player_lock (player);
+ if (!swfdec_player_lock (player))
+ return FALSE;
/* set the correct variables */
player->last_keycode = keycode;
player->last_character = character;
@@ -1058,7 +1059,9 @@ static gboolean
swfdec_player_do_handle_mouse (SwfdecPlayer *player,
double x, double y, int button)
{
- swfdec_player_lock (player);
+ if (!swfdec_player_lock (player))
+ return FALSE;
+
SWFDEC_LOG ("handling mouse at %g %g %d", x, y, button);
if (player->mouse_x != x || player->...
2007 Oct 18
0
11 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...c_text_field_movie.c
+++ b/libswfdec/swfdec_text_field_movie.c
@@ -679,7 +679,8 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
}
void
-swfdec_text_field_movie_update_scroll (SwfdecTextFieldMovie *text)
+swfdec_text_field_movie_update_scroll (SwfdecTextFieldMovie *text,
+ gboolean check_limits)
{
SwfdecLayout *layouts;
int i, num, y, visible, all, height;
@@ -729,11 +730,16 @@ swfdec_text_field_movie_update_scroll (SwfdecTextFieldMovie *text)
layouts = NULL;
text->scroll_max = all - visible + 1;
- text->scroll = CLAMP(text->scroll, 1, text->scroll...
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
...that was only commented out for tests
oops
diff --git a/libswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c
index 23a9396..4e0958b 100644
--- a/libswfdec/swfdec_as_context.c
+++ b/libswfdec/swfdec_as_context.c
@@ -386,8 +386,7 @@ swfdec_as_context_gc (SwfdecAsContext *c
static gboolean
swfdec_as_context_needs_gc (SwfdecAsContext *context)
{
- return TRUE;
- //return context->memory_since_gc >= context->memory_until_gc;
+ return context->memory_since_gc >= context->memory_until_gc;
}
/**
diff-tree 613f8fad5514520d82419838475d02e3d704e714 (from 414a4fc551...
2007 Apr 16
0
7 commits - libswfdec/swfdec_codec_gst.c libswfdec/swfdec_font.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_pattern.c libswfdec/swfdec_pattern.h libswfdec/swfdec_shape.c libswfdec/swfdec_shape.h libswfdec/swfdec_sprite.c
...implement focal gradients
diff --git a/libswfdec/swfdec_pattern.c b/libswfdec/swfdec_pattern.c
index 0041aea..dc9282f 100644
--- a/libswfdec/swfdec_pattern.c
+++ b/libswfdec/swfdec_pattern.c
@@ -178,6 +178,7 @@ struct _SwfdecGradientPattern
SwfdecGradient * gradient; /* gradient to paint */
gboolean radial; /* TRUE for radial gradient, FALSE for linear gradient */
gboolean morph; /* TRUE for morph gradients */
+ double focus; /* focus point */
};
struct _SwfdecGradientPatternClass
@@ -208,10 +209,12 @@ swfdec_gradient_pattern_get_pattern (Swf
{
cairo_matrix_t mat;...
2016 May 30
2
[PATCH 0/2] p2v: Allow virt-p2v to be built with Gtk 2 or 3.
... and a small initial patch which makes it easier to test virt-p2v
without having to start up a virtual machine.
There is still a bug in Gtk 3 where the GtkTextView on the final
(running) dialog ignores gtk_widget_set_size_request and so the window
appears just a single pixel high.
Rich.
2007 Oct 17
0
28 commits - configure.ac debian/changelog debian/control debian/copyright debian/.gitignore debian/libswfdec0.dirs debian/libswfdec0.files debian/libswfdec0.shlibs debian/libswfdec-dev.dirs debian/libswfdec-dev.files debian/rules debian/swf-player.dirs
...eb..ab88628 100644
--- a/libswfdec/swfdec_swf_decoder.h
+++ b/libswfdec/swfdec_swf_decoder.h
@@ -82,6 +82,8 @@ struct _SwfdecSwfDecoder
GArray ** root_actions; /* actions to be executed by the root sprite */
GHashTable * scripts; /* buffer -> script mapping for all scripts */
+ gboolean use_network; /* allow network or local access */
+ gboolean has_metadata; /* TRUE if this file contains metadata */
gboolean protection; /* TRUE is this file is protected and may not be edited */
char * password; /* MD5'd password to open for editing or NULL if may not be ope...
2016 May 30
4
[PATCH v2 0/3] p2v: Allow virt-p2v to be built with Gtk 2 or 3.
This is basically the same as what I posted earlier today. The main
difference is I split out the GDK thread sychronization (removal of)
changes from the other Gtk 2/3 changes, which should make it a bit
easier to review.
Gtk 3 is still not quite perfect. Apart from the problem with the
GtkTextView noted before, there are also vertical alignment and
padding problems with labels in GtkGrid
2007 Apr 16
0
Branch 'as' - 3 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h
...@@ swfdec_action_random_number (SwfdecAsCon
SWFDEC_AS_VALUE_SET_NUMBER (val, g_rand_int_range (cx->rand, 0, max));
}
-#if 0
static void
swfdec_action_old_compare (SwfdecAsContext *cx, guint action, const guint8 *data, guint len)
{
- jsval rval, lval;
double l, r;
- void cond;
+ gboolean cond;
- rval = cx->fp->sp[-1];
- lval = cx->fp->sp[-2];
- l = swfdec_value_to_number (cx, lval);
- r = swfdec_value_to_number (cx, rval);
+ l = swfdec_as_value_to_number (cx, swfdec_as_stack_peek (cx->frame->stack, 2));
+ r = swfdec_as_value_to_number (cx, swfdec_as_stack_...
2018 May 15
12
[PATCH libldm 00/12] New API: an ability to retrieve created device-mapper devices back after they have been created.
The main goal of these patch series is to implement a new API that allows to retrieve created device-mapper devices for volumes and partitions back after they have been created.
As part of this patch:
- required libdevmapper version was bumped to 1.02. I think it is safe because it was released more then 10 years ago;
- newer version of libdevmapper allowed to simplify code base a little bit;
-
2007 Nov 28
0
59 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_button.c libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_button_movie.h libswfdec/swfdec_event.c
...@@ -141,7 +143,7 @@ tag_func_define_button_2 (SwfdecSwfDecoder * s, guint tag)
while (swfdec_bits_peek_u8 (&bits)) {
SwfdecBits tmp;
SwfdecBuffer *buffer;
- cairo_matrix_t trans, inverse;
+ cairo_matrix_t trans;
SwfdecColorTransform ctrans;
guint states, gid;
gboolean has_blend_mode, has_filters;
@@ -172,7 +174,7 @@ tag_func_define_button_2 (SwfdecSwfDecoder * s, guint tag)
states & (1 << SWFDEC_BUTTON_OVER) ? "OVER " : "",
states & (1 << SWFDEC_BUTTON_UP) ? "UP " : "");
- swfdec_bits_ge...
2007 Feb 06
0
Branch 'interpreter' - 8 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_pattern.c libswfdec/swfdec_sprite.c test/dump.c
...i);
+ out->ptr += 2;
+}
+
+void
+swfdec_out_put_u32 (SwfdecOut *out, guint i)
+{
+ g_return_if_fail (i <= G_MAXUINT32);
+
+ swfdec_out_prepare_bytes (out, 4);
+ *(guint32 *)out->ptr = GUINT32_TO_LE (i);
+ out->ptr += 4;
+}
+
+void
+swfdec_out_put_bit (SwfdecOut *out, gboolean bit)
+{
+ g_return_if_fail (out != NULL);
+
+ swfdec_out_put_bits (out, bit ? 1 : 0, 1);
+}
+
+void
+swfdec_out_put_bits (SwfdecOut *out, guint bits, guint n_bits)
+{
+ g_return_if_fail (out != NULL);
+
+ swfdec_out_ensure_bits (out, n_bits);
+
+ /* FIXME: implement this less bra...
2007 Nov 08
0
configure.ac libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h
...IMAGE:
- return cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height);
- default:
- break;
+ if (type == CAIRO_SURFACE_TYPE_IMAGE) {
+ return cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height);
+ } else {
+ return NULL;
}
-
- return NULL;
}
static gboolean
diff --git a/libswfdec-gtk/swfdec_playback_alsa.c b/libswfdec-gtk/swfdec_playback_alsa.c
index 0b7be3d..dd539c5 100644
--- a/libswfdec-gtk/swfdec_playback_alsa.c
+++ b/libswfdec-gtk/swfdec_playback_alsa.c
@@ -189,8 +189,14 @@ swfdec_stream_start (Stream *stream)
swfdec_stream_install_handlers (st...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...*/
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <libswfdec/swfdec.h>
-
-int
-main (int argc, char **argv)
-{
- GOptionContext *context;
- GError *err;
- SwfdecPlayer *player;
- SwfdecLoader *loader;
- guint i;
- cairo_surface_t *surface;
- cairo_t *cr;
- gboolean aborts;
- glong play_per_file = 30;
- glong max_per_file = 60;
- glong max_per_advance = 10;
- GTimer *timer;
- char **filenames = NULL;
- const GOptionEntry entries[] = {
- {
- "play-time", 'p', 0, G_OPTION_ARG_INT, &play_per_file,
- "How many seconds...