search for: gvalu

Displaying 20 results from an estimated 42 matches for "gvalu".

Did you mean: gvalue
2004 May 01
1
win32-mutex
I''ve committed documentation and a test suite for win32-mutex. Once again, I''m looking for a good sample program that we can use for the test.rb file that really demonstrates what you can accomplish with it. I scoured the web but didn''t find anything good. On another note, I came across another implementation called "fmutex" that I thought might be worth
2007 May 04
1
Trying to get a good example for win32-mutex
...' require ''win32/process'' require ''win32/mmap'' include Win32 pid = Process.fork # child_1 if pid.nil? mm = MMap.open(''test'') mx = Win32::Mutex.open(MUTEXNAME) 5.times{ mx.wait puts "child_1 wait " mm.gvalue += 123 sleep 1 mm.gvalue -= 123 mx.release puts "child_1 release " } exit 1 end pid2 = Process.fork # child_2 if pid2.nil? mm = MMap.open(''test'') mx = Win32::Mutex.open(MUTEXNAME) 4.times{ mx.wait puts "child_2 w...
2006 Oct 25
2
[PATCH] Edge buttons
...ActionStateInitEdge; edgeWindow = event->xcrossing.window; -------------- next part -------------- diff --git a/plugins/gconf.c b/plugins/gconf.c index ea68ce3..175a4ac 100644 --- a/plugins/gconf.c +++ b/plugins/gconf.c @@ -209,7 +209,7 @@ gconfSetOption (CompDisplay *d, gconf_value_free (gvalue); break; case CompOptionTypeAction: { - gchar *key1, *key2, *key3, *key4; + gchar *key1, *key2, *key3, *key4, *key5; GSList *node, *list = NULL; GConfValue *gv; int i; @@ -218,6 +218,7 @@ gconfSetOption (CompDisplay *d, key2 = g_strdup_printf ("%s_%s", key, &q...
2006 Oct 16
2
Edge + Mouse button draft patches
Attached are my draft patches to add edge + mouse button to the actions It is useful because the edge bindings are too easily triggered, an edge + mouse button is good because it confirms the action. An additional side benefit is that the mouse wheel can be used for rotating the cube and for the switcher (it is an excellent alternative to alt-tab). I wanted to share the patches before cleaning
2007 May 04
5
[ win32utils-Bugs-10589 ] Bug in win32-mmap
...nitial Comment: Ruby 1.8.6 win32-mmap 0.2.1 Assigning the value 0 to a dynamic setter causes the corresponding getter to fail. This small script demonstrates the problem: require ''win32/mmap'' include Win32 mm = MMap.new(:size => 1024, :name => ''test'') mm.gvalue = 0 p mm.gvalue mm.close The result is: C:/ruby/lib/ruby/gems/1.8/gems/win32-mmap-0.2.0/lib/win32/mmap.rb:335:in `load'': marshal data too short (ArgumentError) from C:/ruby/lib/ruby/gems/1.8/gems/win32-mmap-0.2.0/lib/win32/mmap.rb:335:in `method_missing'' from mm...
2006 Nov 08
2
bug in today's git snapshot with maximizing windows
...ing.window; > plain text document attachment (edgebutton-gconf.c.diff) > diff --git a/plugins/gconf.c b/plugins/gconf.c > index ea68ce3..175a4ac 100644 > --- a/plugins/gconf.c > +++ b/plugins/gconf.c > @@ -209,7 +209,7 @@ gconfSetOption (CompDisplay *d, > gconf_value_free (gvalue); > break; > case CompOptionTypeAction: { > - gchar *key1, *key2, *key3, *key4; > + gchar *key1, *key2, *key3, *key4, *key5; > GSList *node, *list = NULL; > GConfValue *gv; > int i; > @@ -218,6 +218,7 @@ gconfSetOption (C...
2011 Jan 21
2
ordering a vector
Hi, is there a R function that order a matrix according to some criteria based on the rows(or cols) of that matrix? For example, let's say that my matrix S is composed by n rows S_1, S_2,.., S_n and that I compute some real value g_i=g(S_i) for each row. Then I want to order this set of g_i (from smaller to bigger) and order the correspondent row to the new position. Is it possible (apart
2007 Dec 02
2
[Bug 13491] New: 5min.com player causes assertion
...r *) 0x0 emission = {next = 0x0, instance = 0x1bfa750, ihint = { signal_id = 362, detail = 0, run_type = G_SIGNAL_RUN_LAST}, state = EMISSION_RUN, chain_type = 29300208} class_closure = (GClosure *) 0x2976be0 handler_list = (Handler *) 0x3a2aef0 return_accu = (GValue *) 0x0 accu = {g_type = 0, data = {{v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer...
2007 Aug 14
0
Branch 'vivi' - 11 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/Makefile.am libswfdec/swfdec.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h vivified/core
.../* FIXME: oops */ +#include "libswfdec/swfdec_player_internal.h" + +enum { + STEP, + LAST_SIGNAL +}; + +G_DEFINE_TYPE (ViviDebugger, vivi_debugger, SWFDEC_TYPE_AS_DEBUGGER) +static guint signals[LAST_SIGNAL] = { 0, }; + +static gboolean +vivi_accumulate_or (GSignalInvocationHint *ihint, GValue *return_accu, + const GValue *handler_return, gpointer data) +{ + if (g_value_get_boolean (handler_return)) + g_value_set_boolean (return_accu, TRUE); + return TRUE; +} + +static void +vivi_debugger_dispose (GObject *object) +{ + //ViviDebugger *debugger = VIVI_DEBUGGER (object); + + G_...
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
...reeModel *tree_model, GtkTreeIter *iter) { REPORT; - return swfdec_debug_movies_movie_to_path (iter->user_data); + return swfdec_debug_movies_node_to_path (iter->user_data); } static void swfdec_debug_movies_get_value (GtkTreeModel *tree_model, GtkTreeIter *iter, gint column, GValue *value) { - SwfdecMovie *movie = iter->user_data; + SwfdecMovie *movie = ((GNode *) iter->user_data)->data; REPORT; switch (column) { @@ -154,11 +126,14 @@ swfdec_debug_movies_get_value (GtkTreeMo return; case SWFDEC_DEBUG_MOVIES_COLUMN_NAME: g_value_init (va...
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
...swfdec_player.c @@ -546,7 +546,8 @@ enum { PROP_HEIGHT, PROP_ALIGNMENT, PROP_SCALE, - PROP_SYSTEM + PROP_SYSTEM, + PROP_MAX_RUNTIME }; G_DEFINE_TYPE (SwfdecPlayer, swfdec_player, SWFDEC_TYPE_AS_CONTEXT) @@ -642,6 +643,9 @@ swfdec_player_get_property (GObject *object, 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; @@...
2007 Oct 28
0
4 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_load_object.c
...STR__bytesTotal, &val, SWFDEC_AS_VARIABLE_HIDDEN); } diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c index 9bde057..e79ba1e 100644 --- a/libswfdec/swfdec_loader.c +++ b/libswfdec/swfdec_loader.c @@ -112,7 +112,7 @@ swfdec_loader_get_property (GObject *object, guint param_id, GValue *value, g_value_set_enum (value, loader->data_type); break; case PROP_SIZE: - g_value_set_ulong (value, loader->size); + g_value_set_long (value, loader->size); break; case PROP_LOADED: g_value_set_ulong (value, swfdec_loader_get_loaded (loa...
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
...NTEXT_ABORTED; + g_object_notify (G_OBJECT (context), "aborted"); } /*** MEMORY MANAGEMENT ***/ @@ -431,6 +432,7 @@ enum { enum { PROP_0, PROP_DEBUGGER, + PROP_ABORTED, PROP_UNTIL_GC }; @@ -448,6 +450,9 @@ swfdec_as_context_get_property (GObject *object, guint param_id, GValue *value, case PROP_DEBUGGER: g_value_set_object (value, context->debugger); break; + case PROP_ABORTED: + g_value_set_boolean (value, context->state == SWFDEC_AS_CONTEXT_ABORTED); + break; case PROP_UNTIL_GC: g_value_set_ulong (value, (gulong) conte...
2007 Nov 08
0
8 commits - libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_player.c test/trace
...be2..a429112 100644 --- a/libswfdec/swfdec_as_context.c +++ b/libswfdec/swfdec_as_context.c @@ -435,6 +435,7 @@ enum { enum { PROP_0, PROP_DEBUGGER, + PROP_RANDOM_SEED, PROP_ABORTED, PROP_UNTIL_GC }; @@ -448,7 +449,6 @@ swfdec_as_context_get_property (GObject *object, guint param_id, GValue *value, { SwfdecAsContext *context = SWFDEC_AS_CONTEXT (object); - switch (param_id) { case PROP_DEBUGGER: g_value_set_object (value, context->debugger); @@ -471,11 +471,13 @@ swfdec_as_context_set_property (GObject *object, guint param_id, const GValue *v { SwfdecAsC...
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
...th; -} - -static GtkTreePath * -swfdec_debug_movies_get_path (GtkTreeModel *tree_model, GtkTreeIter *iter) -{ - REPORT; - return swfdec_debug_movies_node_to_path (iter->user_data); -} - -static void -swfdec_debug_movies_get_value (GtkTreeModel *tree_model, GtkTreeIter *iter, - gint column, GValue *value) -{ - SwfdecMovie *movie = ((GNode *) iter->user_data)->data; - - REPORT; - switch (column) { - case SWFDEC_DEBUG_MOVIES_COLUMN_MOVIE: - g_value_init (value, G_TYPE_POINTER); - g_value_set_pointer (value, movie); - return; - case SWFDEC_DEBUG_MOVIES_COLUMN_NAME...
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
..._gc; } /** @@ -417,10 +418,47 @@ 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, p...
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
...+ */ + +/** + * SwfdecGtkPlayer: + * + * 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_en...
2007 Jun 28
0
Branch 'as' - 4 commits - doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h
...the possible values the Swfdec Actionscript engine knows about. + */ + +/** + * SwfdecAsValue: + * @type: the type of this value. + * + * This is the type used to present an opaque value in the Actionscript + * engine. See #SwfdecAsValueType for possible types. It's similar in + * spirit to #GValue. The value held is garbage-collected. Apart from the type + * member, use the provided macros to access this structure. + * <note>If you memset a SwfdecAsValue to 0, it is a valid undefined value.</note> + */ + +/*** actual code ***/ + +/** + * swfdec_as_str_concat: + * @cx: a #Swfdec...
2007 Aug 09
0
Branch 'vivi' - 6 commits - configure.ac vivified/core vivified/dock vivified/Makefile.am vivified/ui
...+ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "vivi_docklet.h" + +enum { + PROP_0, + PROP_TITLE, + PROP_ICON +}; + +G_DEFINE_ABSTRACT_TYPE (ViviDocklet, vivi_docklet, GTK_TYPE_BIN) + +static void +vivi_docklet_get_property (GObject *object, guint param_id, GValue *value, + GParamSpec * pspec) +{ + ViviDocklet *docklet = VIVI_DOCKLET (object); + + switch (param_id) { + case PROP_TITLE: + g_value_set_string (value, docklet->title); + break; + case PROP_ICON: + g_value_set_string (value, docklet->icon); + break; + de...