search for: original_name

Displaying 20 results from an estimated 21 matches for "original_name".

2007 Jun 14
0
Branch 'as' - 7 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c player/Makefile.am
...>swf = g_object_ref (parent->swf); @@ -905,7 +906,6 @@ swfdec_movie_new (SwfdecPlayer *player, } else { player->roots = g_list_insert_sorted (player->roots, movie, swfdec_movie_compare_depths); } - movie->depth = depth; /* set its name */ if (name) { movie->original_name = name; diff-tree c9f2ca49fc68171b9c26bc320b368008b0a6cdfc (from 21a41f6fd163e5630112765f90af019cf2b55535) Author: Benjamin Otte <otte at gnome.org> Date: Thu Jun 14 13:38:03 2007 +0200 set the properties on the child not on ourselves (d'oh) diff --git a/libswfdec/swfdec_sprite_mo...
2010 Mar 03
0
Using gsub to replace text with link from database
...e first letter capitalized @new_link_array = #this is the link data that is returned from my query search via ferret. It will provide the proper link to the players. @full_text = params[:q] @full_text_array = @full_text.scan(/([A-Z]+[a-zA-Z]* [A-Z]+[a-zA-Z]*)/) @full_text_array.each_with_index do |original_name, i| @full_text.gsub!(original_name.to_s, @new_link_array[i]) end results = @full_text.scan(/([A-Z]+[a-zA-Z]* [A-Z]+[a-zA-Z]*)/) names_links = {} results.each do |name| unless names_links[name] names_links[name] = method_to_construct_link_for_name(name) end end names_links.each_pai...
2007 Nov 08
0
libswfdec/swfdec_load_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h
...to same depth */ + SwfdecMovie *mov = SWFDEC_MOVIE (movie); + SwfdecMovie *copy; + + copy = swfdec_movie_new (SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context), + mov->depth, mov->parent, resource, NULL, mov->name); + if (copy == NULL) + return FALSE; + copy->original_name = mov->original_name; + /* FIXME: are events copied? If so, wouldn't that be a security issue? */ + swfdec_movie_set_static_properties (copy, &mov->original_transform, + &mov->original_ctrans, mov->original_ratio, mov->clip_depth, + mov->blend_mode, NULL); +...
2007 Sep 06
0
3 commits - libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
...; - if (errno != 0 || *end != 0 || l > G_MAXINT) - return NULL; - i = l - 16384; - for (walk = player->roots; walk; walk = walk->next) { + for (walk = movie->list; walk; walk = walk->next) { SwfdecMovie *cur = walk->data; - if (cur->depth < i) + if (cur->original_name == SWFDEC_AS_STR_EMPTY) continue; - if (cur->depth == i) + if ((version >= 7 && cur->name == name) || + swfdec_str_case_equal (cur->name, name)) return cur; - break; } return NULL; } @@ -974,7 +985,7 @@ swfdec_movie_get_variable (SwfdecAsObjec...
2006 Apr 24
0
ImageMagick and EXIF Data
...s after_destroy :cleanup def file_data=(file_data) @file_data = file_data write_attribute ''extension'', file_data.original_filename.split(''.'').last.downcase write_attribute("content_type", file_data.content_type) write_attribute("original_name", file_data.original_filename) write_attribute("file_size", file_data.size) end def url path.sub(/^public/,'''') end def to_url return DISPLAYTHUMBS_DIRECTORY + "#{self.id}-thumb.jpg" end def to_large_url return DISPLAY_DIRECT...
2011 Jul 07
0
Question of uploading large file using carrierwave, uploadify and nginx upload module
...attr_accessible :file, :fast_asset mount_uploader :file, FileUploader def fast_asset=(file) if file && file.respond_to?(''[]'') tmp_upload_dir = "#{file[''filepath'']}_1" tmp_file_path = "#{tmp_upload_dir}/#{file[''@original_name'']}" FileUtils.mkdir_p(tmp_upload_dir) FileUtils.mv(file[''filepath''], tmp_file_path) self.file = File.open(tmp_file_path) end end end the new uploading form uses the uploadify basic example javascript code. (http://www.uploadify.com/documenta...
2008 Jan 02
0
3 commits - libswfdec/swfdec_movie.c test/trace
...OVIE (object); + SwfdecAsValue val; + GList *walk; + gboolean ret; + + ret = SWFDEC_AS_OBJECT_CLASS (swfdec_movie_parent_class)->foreach (object, func, data); + + for (walk = movie->list; walk && ret; walk = walk->next) { + SwfdecMovie *cur = walk->data; + if (cur->original_name == SWFDEC_AS_STR_EMPTY) + continue; + SWFDEC_AS_VALUE_SET_OBJECT (&val, walk->data); + ret &= func (object, cur->name, &val, 0, data); + } + + return ret; +} + static char * swfdec_movie_get_debug (SwfdecAsObject *object) { @@ -1434,6 +1455,7 @@ swfdec_movie_class_...
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
...it (value, G_TYPE_POINTER); - g_value_set_pointer (value, movie); - return; - case SWFDEC_DEBUG_MOVIES_COLUMN_NAME: - g_value_init (value, G_TYPE_STRING); - if (movie->name[0]) - g_value_set_string (value, movie->name); - else - g_value_set_string (value, movie->original_name); - return; - case SWFDEC_DEBUG_MOVIES_COLUMN_DEPTH: - g_value_init (value, G_TYPE_INT); - g_value_set_int (value, movie->depth); - return; - case SWFDEC_DEBUG_MOVIES_COLUMN_TYPE: - g_value_init (value, G_TYPE_STRING); - /* big hack: we skip the "Swfdec&q...
2007 Nov 12
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_decoder.c libswfdec/swfdec_decoder.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_image.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_image_decoder.h
...wfdec_resource.c b/libswfdec/swfdec_resource.c index 51ebff0..64bb1cd 100644 --- a/libswfdec/swfdec_resource.c +++ b/libswfdec/swfdec_resource.c @@ -173,11 +173,16 @@ swfdec_resource_replace_movie (SwfdecSpriteMovie *movie, SwfdecResource *resourc if (copy == NULL) return FALSE; copy->original_name = mov->original_name; + copy->modified = mov->modified; + copy->xscale = mov->xscale; + copy->yscale = mov->yscale; + copy->rotation = mov->rotation; /* FIXME: are events copied? If so, wouldn't that be a security issue? */ swfdec_movie_set_static_properties...
2007 Jun 13
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_sprite.c
...G_OBJECT_TYPE_NAME (movie), movie->name, movie->depth, G_OBJECT_TYPE_NAME (parent), parent); } else { player->roots = g_list_insert_sorted (player->roots, movie, swfdec_movie_compare_depths); } + movie->depth = depth; + /* set its name */ + if (name) { + movie->original_name = name; + movie->name = name; + } else { + movie->original_name = SWFDEC_AS_STR_EMPTY; + if (SWFDEC_IS_SPRITE_MOVIE (movie)) { + movie->name = swfdec_as_context_give_string (SWFDEC_AS_CONTEXT (player), + g_strdup_printf ("instance%u", ++player->unnamed_count)...
2007 Nov 10
0
7 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h libswfdec/swfdec_sprite_movie_as.c test/trace
...b06 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -1018,6 +1018,8 @@ swfdec_movie_mark (SwfdecAsObject *object) GList *walk; GSList *iter; + if (movie->parent) + swfdec_as_object_mark (SWFDEC_AS_OBJECT (movie->parent)); swfdec_as_string_mark (movie->original_name); swfdec_as_string_mark (movie->name); for (walk = movie->list; walk; walk = walk->next) { commit 0167ea2e783500c2c0290194fc2f7998f5720c6b Author: Benjamin Otte <otte at gnome.org> Date: Sat Nov 10 19:35:20 2007 +0100 seems I never compiled this :o diff --git a/libswfde...
2007 Oct 17
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...swfdec/swfdec_movie.c index 3d8bade..a5ffa00 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -947,12 +947,18 @@ swfdec_movie_mark (SwfdecAsObject *object) { SwfdecMovie *movie = SWFDEC_MOVIE (object); GList *walk; + GSList *iter; swfdec_as_string_mark (movie->original_name); swfdec_as_string_mark (movie->name); for (walk = movie->list; walk; walk = walk->next) { swfdec_as_object_mark (walk->data); } + for (iter = movie->variable_listeners; iter != NULL; iter = iter->next) { + SwfdecMovieVariableListener *listener = iter->data; +...
2007 Aug 21
0
Branch 'vivi' - 10 commits - libswfdec/swfdec_button_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c vivified/core vivified/dock vivified/ui
...dec/swfdec_movie.c b/libswfdec/swfdec_movie.c index 420c508..6a03bd1 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -794,6 +794,7 @@ swfdec_movie_mark (SwfdecAsObject *objec SwfdecMovie *movie = SWFDEC_MOVIE (object); GList *walk; + swfdec_as_string_mark (movie->original_name); swfdec_as_string_mark (movie->name); for (walk = movie->list; walk; walk = walk->next) { swfdec_as_object_mark (walk->data); diff-tree 268e7076b34235aac77568686c29cc49c127171e (from 27da7a35529646e527d6430f7372f2535c66d623) Author: Benjamin Otte <otte at gnome.org> Da...
2006 Oct 16
6
Double data entry
I''m developing database systems for clinical trials using Ruby on Rails. Some trials require ''double data entry'' as a form of validation; I need to incorporate this into my system and am having difficulties. My plan would be to have it work as follows: - Once a new record has been created, alongside the usual ''edit'' option there would be a
2007 Sep 08
0
9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_video_movie_as.c
..._level", 6) == 0) { + (version < 7 && strncasecmp (name, "_level", 6) == 0)) { errno = 0; l = strtoul (name + 6, &end, 10); if (errno != 0 || *end != 0 || l > G_MAXINT) @@ -949,7 +949,7 @@ swfdec_movie_get_by_name (SwfdecMovie *m if (cur->original_name == SWFDEC_AS_STR_EMPTY) continue; if ((version >= 7 && cur->name == name) || - swfdec_str_case_equal (cur->name, name)) + (version < 7 && swfdec_str_case_equal (cur->name, name))) return cur; } return NULL;
2007 Nov 10
0
10 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie_clip_loader.c libswfdec/swfdec_movie.h libswfdec/swfdec_resource.c
...(movie->state != SWFDEC_MOVIE_STATE_DESTROYED) + return movie; + if (movie->parent == NULL) { + SWFDEC_FIXME ("figure out how to resolve root movies"); + return NULL; + } + /* FIXME: include unnamed ones? */ + return swfdec_movie_get_by_name (movie->parent, movie->original_name, FALSE); +} + guint swfdec_movie_get_version (SwfdecMovie *movie) { @@ -1061,7 +1088,8 @@ swfdec_movie_get_variable (SwfdecAsObject *object, SwfdecAsObject *orig, { SwfdecMovie *movie = SWFDEC_MOVIE (object); - if (movie->state == SWFDEC_MOVIE_STATE_DESTROYED) + movie = swfdec_movie_r...
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
...et_value (GtkTreeMo return; case SWFDEC_DEBUG_MOVIES_COLUMN_NAME: g_value_init (value, G_TYPE_STRING); - g_value_set_string (value, movie->name); + if (movie->name[0]) + g_value_set_string (value, movie->name); + else + g_value_set_string (value, movie->original_name); return; - case SWFDEC_DEBUG_MOVIES_COLUMN_VISIBLE: - g_value_init (value, G_TYPE_BOOLEAN); - g_value_set_boolean (value, movie->visible); + case SWFDEC_DEBUG_MOVIES_COLUMN_DEPTH: + g_value_init (value, G_TYPE_INT); + g_value_set_int (value, movie->depth);...
2007 Nov 07
0
36 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h
...copy to same depth */ + SwfdecMovie *mov = SWFDEC_MOVIE (movie); + SwfdecMovie *copy; + + copy = swfdec_movie_new (SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context), + mov->depth, mov->parent, resource, NULL, mov->name); + if (copy == NULL) + return; + copy->original_name = mov->original_name; + /* FIXME: are events copied? If so, wouldn't that be a security issue? */ + swfdec_movie_set_static_properties (copy, &mov->original_transform, + &mov->original_ctrans, mov->original_ratio, mov->clip_depth, + mov->blend_mode, NULL); +...
2007 Dec 13
0
libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_date.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_interval.c libswfdec/swfdec_key_as.c libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie.c
...vie_compare_depths); + player->priv->roots = g_list_insert_sorted (player->priv->roots, movie, swfdec_movie_compare_depths); } /* set its name */ if (name) { @@ -1556,7 +1558,7 @@ swfdec_movie_new (SwfdecPlayer *player, int depth, SwfdecMovie *parent, SwfdecRe movie->original_name = SWFDEC_AS_STR_EMPTY; if (SWFDEC_IS_SPRITE_MOVIE (movie) || SWFDEC_IS_BUTTON_MOVIE (movie)) { movie->name = swfdec_as_context_give_string (SWFDEC_AS_CONTEXT (player), - g_strdup_printf ("instance%u", ++player->unnamed_count)); + g_strdup_printf ("instance%u&qu...
2007 Jun 19
0
Branch 'as' - 4 commits - libswfdec/swfdec_codec_video.c libswfdec/swfdec_movie.c test/trace
...swfdec_as_context.h" +#include "swfdec_button_movie.h" #include "swfdec_debug.h" #include "swfdec_debugger.h" #include "swfdec_event.h" @@ -919,7 +920,7 @@ swfdec_movie_new (SwfdecPlayer *player, movie->name = name; } else { movie->original_name = SWFDEC_AS_STR_EMPTY; - if (SWFDEC_IS_SPRITE_MOVIE (movie)) { + if (SWFDEC_IS_SPRITE_MOVIE (movie) || SWFDEC_IS_BUTTON_MOVIE (movie)) { movie->name = swfdec_as_context_give_string (SWFDEC_AS_CONTEXT (player), g_strdup_printf ("instance%u", ++player->unnamed_count)...