search for: default_cont

Displaying 5 results from an estimated 5 matches for "default_cont".

Did you mean: default_conf
2007 Jun 09
0
Branch 'as' - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie_as.c
...swfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c index b33eff7..908e0ef 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -220,12 +220,13 @@ swfdec_movie_set_content (SwfdecMovie *m { g_return_if_fail (SWFDEC_IS_MOVIE (movie)); + if (content == NULL) + content = &default_content; + if (movie->content == content) return; - if (content == NULL) { - content = &default_content; - } else if (movie->content != &default_content) { + if (movie->content != &default_content && content != &default_content) { g_return_if_fail (m...
2006 May 28
1
ActiveRecord: FK constraints problem
Hi all. I have has_and_belongs_to_many association between models: Section and Content. class Section < ActiveRecord::Base acts_as_tree has_and_belongs_to_many :contents belongs_to :default_content, :class_name => ''Content'', :foreign_key => ''default_content_id'', :dependent => :nullify end class Content < ActiveRecord::Base belongs_to :section end When I trying to remove some Content which associated with Section I have an error related to...
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
...h->ratio); } } else { cairo_append_path (cr, path); diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c index 908e0ef..cee0ba6 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -41,20 +41,19 @@ /*** MOVIE ***/ -static const SwfdecContent default_content = SWFDEC_CONTENT_DEFAULT; - G_DEFINE_ABSTRACT_TYPE (SwfdecMovie, swfdec_movie, SWFDEC_TYPE_AS_OBJECT) static void swfdec_movie_init (SwfdecMovie * movie) { - movie->content = &default_content; - movie->xscale = 100; movie->yscale = 100; + cairo_matrix_init_identity (&a...
2007 Jan 16
0
9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_cache.c libswfdec/swfdec_cached.c libswfdec/swfdec_cached.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_image.c
...pyright (C) 2006 Benjamin Otte <otte@gnome.org> + * Copyright (C) 2006-2007 Benjamin Otte <otte@gnome.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -38,7 +38,7 @@ static const SwfdecContent default_content = SWFDEC_CONTENT_DEFAULT; -G_DEFINE_ABSTRACT_TYPE (SwfdecMovie, swfdec_movie, G_TYPE_OBJECT) +G_DEFINE_ABSTRACT_TYPE (SwfdecMovie, swfdec_movie, SWFDEC_TYPE_SCRIPTABLE) static void swfdec_movie_init (SwfdecMovie * movie) @@ -308,7 +308,7 @@ swfdec_movie_destroy (SwfdecMovie *movie if (m...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...uot; #include "swfdec_graphic.h" -#include "swfdec_js.h" +#include "swfdec_loader_internal.h" #include "swfdec_player_internal.h" #include "swfdec_root_movie.h" #include "swfdec_sprite.h" @@ -39,7 +38,7 @@ static const SwfdecContent default_content = SWFDEC_CONTENT_DEFAULT; -G_DEFINE_ABSTRACT_TYPE (SwfdecMovie, swfdec_movie, SWFDEC_TYPE_SCRIPTABLE) +G_DEFINE_ABSTRACT_TYPE (SwfdecMovie, swfdec_movie, SWFDEC_TYPE_AS_OBJECT) static void swfdec_movie_init (SwfdecMovie * movie) @@ -324,7 +323,7 @@ swfdec_movie_destroy (SwfdecMovie *movie...