search for: gtktreeiter

Displaying 20 results from an estimated 20 matches for "gtktreeiter".

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
...case SWFDEC_DEBUG_MOVIES_COLUMN_DEPTH: - return G_TYPE_INT; - case SWFDEC_DEBUG_MOVIES_COLUMN_TYPE: - return G_TYPE_STRING; - default: - break; - } - g_assert_not_reached (); - return G_TYPE_NONE; -} - -static gboolean -swfdec_debug_movies_get_iter (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreePath *path) -{ - SwfdecDebugMovies *movies = SWFDEC_DEBUG_MOVIES (tree_model); - GNode *node; - guint i, depth; - int *indices; - - REPORT; - depth = gtk_tree_path_get_depth (path); - indices = gtk_tree_path_get_indices (path); - if (indices == NULL) - return FALSE; - node...
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
...VIES_COLUMN_VISIBLE: - return G_TYPE_BOOLEAN; + case SWFDEC_DEBUG_MOVIES_COLUMN_DEPTH: + return G_TYPE_INT; case SWFDEC_DEBUG_MOVIES_COLUMN_TYPE: return G_TYPE_STRING; default: @@ -72,63 +72,35 @@ static gboolean swfdec_debug_movies_get_iter (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreePath *path) { SwfdecDebugMovies *movies = SWFDEC_DEBUG_MOVIES (tree_model); - guint depth; + GNode *node; + guint i, depth; int *indices; - GList *walk; - SwfdecMovie *movie; REPORT; depth = gtk_tree_path_get_depth (path); indices = gtk_tree_path_get_indices (pa...
2007 Jan 22
0
Branch 'interpreter' - 3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_swf_decoder.c test/Makefile.am test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_tag.c test/swfedit_tag.h test/swfedit_token.c test/swfedit_token.h
...YPE_STRING; + case SWFEDIT_COLUMN_VALUE_VISIBLE: + return G_TYPE_BOOLEAN; + case SWFEDIT_COLUMN_VALUE: + return G_TYPE_STRING; + default: + break; + } + g_assert_not_reached (); + return G_TYPE_NONE; +} + +static gboolean +swfedit_token_get_iter (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreePath *path) +{ + SwfeditToken *token = SWFEDIT_TOKEN (tree_model); + guint i = gtk_tree_path_get_indices (path)[0]; + Entry *entry; + + if (i > token->tokens->len) + return FALSE; + entry = &g_array_index (token->tokens, Entry, i); + if (gtk_tree_path_get_de...
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
...WFDEC_DEBUG_MOVIES_COLUMN_VISIBLE: + return G_TYPE_BOOLEAN; + case SWFDEC_DEBUG_MOVIES_COLUMN_TYPE: + return G_TYPE_STRING; + default: + break; + } + g_assert_not_reached (); + return G_TYPE_NONE; +} + +static gboolean +swfdec_debug_movies_get_iter (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreePath *path) +{ + SwfdecDebugMovies *movies = SWFDEC_DEBUG_MOVIES (tree_model); + guint depth; + int *indices; + GList *walk; + SwfdecMovie *movie; + + REPORT; + depth = gtk_tree_path_get_depth (path); + indices = gtk_tree_path_get_indices (path); + if (indices == NULL) + r...
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
...+ case SWFEDIT_COLUMN_VALUE_VISIBLE: + return G_TYPE_BOOLEAN; + case SWFEDIT_COLUMN_VALUE: + return G_TYPE_STRING; + default: + break; + } + g_assert_not_reached (); + return G_TYPE_NONE; +} + +static gboolean +swfedit_token_get_iter (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreePath *path) +{ + SwfeditToken *token = SWFEDIT_TOKEN (tree_model); + guint i = gtk_tree_path_get_indices (path)[0]; + SwfeditTokenEntry *entry; + + REPORT; + if (i > token->tokens->len) + return FALSE; + entry = &g_array_index (token->tokens, Swfedi...
2007 Aug 16
1
Branch 'vivi' - vivified/ui
vivified/ui/main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) New commits: diff-tree be3bc1a6cd88c0f2294b4f6059898c3989f172eb (from da8a9e9b145d5cb1aebc04764e9ed66856a31c9b) Author: Benjamin Otte <otte at gnome.org> Date: Thu Aug 16 21:42:39 2007 +0200 Set the title correctly diff --git a/vivified/ui/main.c b/vivified/ui/main.c index df123a9..13d03ab 100644 ---
2007 Jul 07
1
Compiling swfdec without GTK
...m swfedit_file.h:24, from swfedit_file.c:31: swfedit_token.h:23:21: error: gtk/gtk.h: No such file or directory In file included from swfedit_file.h:24, from swfedit_file.c:31: swfedit_token.h:100: error: expected declaration specifiers or '...' before 'GtkTreeIter' make[3]: *** [libswfedit_la-swfedit_file.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 And is there any way to compile swfdec for frame buffer? Can anyone tell me what would be the minimum size of static swfdec player? I just...
2007 Feb 14
0
7 commits - libswfdec/swfdec_image.c libswfdec/swfdec_script.c libswfdec/swfdec_script.h test/Makefile.am test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_list.c test/swfedit_tag.c test/swfedit_token.c test/swfedit_token.h test/swfscript.c
..._binary_from_string (s, &buffer)) { return FALSE; + } swfdec_bits_init (&bits, buffer); script = swfdec_script_new (&bits, "unknown", 6 /* FIXME */); @@ -703,7 +704,37 @@ swfedit_token_add (SwfeditToken *token, } void -swfedit_token_set (SwfeditToken *token, GtkTreeIter *iter, const char *value) +swfedit_token_set (SwfeditToken *token, guint i, gpointer value) +{ + SwfeditTokenClass *klass; + SwfeditTokenEntry *entry; + GtkTreePath *path; + SwfeditToken *model; + GtkTreeIter iter; + + g_return_if_fail (SWFEDIT_IS_TOKEN (token)); + g_return_if_fail (i < t...
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
...ve (file, &error)) { - g_printerr ("Error saving file: %s\n", error->message); - g_error_free (error); - } - } - gtk_widget_destroy (dialog); -} - -static void -cell_renderer_edited (GtkCellRenderer *renderer, char *path, - char *new_text, SwfeditFile *file) -{ - GtkTreeIter iter; - - if (!gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL (file), - &iter, path)) { - g_assert_not_reached (); - } - swfedit_token_set_iter (SWFEDIT_TOKEN (file), &iter, new_text); -} - -static gboolean -open_window (char *filename) -{ - SwfeditFile *file; - GtkWidget *wind...
2007 Jan 25
0
Branch 'interpreter' - 28 commits - configure.ac libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_player.c
...try, GPOINTER_TO_INT (iter->user_data2)); + SwfeditTokenEntry *entry = &g_array_index (token->tokens, SwfeditTokenEntry, GPOINTER_TO_INT (iter->user_data2)); REPORT; switch (column) { @@ -289,12 +281,12 @@ static gboolean swfedit_token_iter_children (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreeIter *parent) { SwfeditToken *token; - Entry *entry; + SwfeditTokenEntry *entry; REPORT; if (parent) { token = SWFEDIT_TOKEN (parent->user_data); - entry = &g_array_index (token->tokens, Entry, GPOINTER_TO_INT (parent->user_data2)); + entry = &amp...
2007 Jul 08
0
Cross Compiling swfdec for ARM
....c:31: > > swfedit_token.h:23:21: error: gtk/gtk.h: No such file or directory > > In file included from swfedit_file.h:24, > > from swfedit_file.c:31: > > swfedit_token.h:100: error: expected declaration specifiers or '...' > before > > 'GtkTreeIter' > > make[3]: *** [libswfedit_la-swfedit_file.lo] Error 1 > > make[2]: *** [all-recursive] Error 1 > > make[1]: *** [all-recursive] Error 1 > > make: *** [all] Error 2 > > > Not good. The easy fix is to skip the test directory completely. > (Remove the test d...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...+ case SWFEDIT_COLUMN_VALUE_VISIBLE: + return G_TYPE_BOOLEAN; + case SWFEDIT_COLUMN_VALUE: + return G_TYPE_STRING; + default: + break; + } + g_assert_not_reached (); + return G_TYPE_NONE; +} + +static gboolean +swfedit_token_get_iter (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreePath *path) +{ + SwfeditToken *token = SWFEDIT_TOKEN (tree_model); + guint i = gtk_tree_path_get_indices (path)[0]; + SwfeditTokenEntry *entry; + + REPORT; + if (i > token->tokens->len) + return FALSE; + entry = &g_array_index (token->tokens, Swfedi...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...ist.c index 2ac4104..497ee27 100644 --- a/vivified/ui/vivi_movie_list.c +++ b/vivified/ui/vivi_movie_list.c @@ -272,6 +272,62 @@ vivi_movie_list_get_index (GNode *parent return i; } +static void +vivi_movie_list_movie_notify (SwfdecMovie *movie, GParamSpec *pspec, ViviMovieList *movies) +{ + GtkTreeIter iter; + GtkTreePath *path; + GNode *node; + + node = g_hash_table_lookup (movies->nodes, movie); + if (g_str_equal (pspec->name, "depth")) { + guint old, new; + GNode *parent; + + parent = node->parent; + old = g_node_child_position (parent, node); + new = vivi...
2007 Mar 19
0
7 commits - libswfdec/jpeg libswfdec/swfdec_button_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_video.c player/swfdec_debug_movies.c
...Mar 19 16:31:42 2007 +0100 remove leftover g_print's diff --git a/player/swfdec_debug_movies.c b/player/swfdec_debug_movies.c index 649f19a..14e4281 100644 --- a/player/swfdec_debug_movies.c +++ b/player/swfdec_debug_movies.c @@ -299,7 +299,6 @@ swfdec_debug_movies_added (SwfdecPlayer GtkTreeIter iter; iter.user_data = movie; - g_print ("movie %s added\n", movie->name); gtk_tree_model_row_inserted (GTK_TREE_MODEL (movies), path, &iter); gtk_tree_path_free (path); } @@ -324,7 +323,6 @@ swfdec_debug_movies_removed (SwfdecPlaye i++; } gtk_tree_path_appe...
2007 Feb 13
0
9 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c test/Makefile.am test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c
...eturn_if_fail (type < SWFEDIT_N_TOKENS); + g_assert (type != SWFEDIT_TOKEN_OBJECT || value != NULL); entry.name = g_strdup (name); g_array_append_val (token->tokens, entry); } @@ -544,6 +704,7 @@ swfedit_token_add (SwfeditToken *token, void swfedit_token_set (SwfeditToken *token, GtkTreeIter *iter, const char *value) { + SwfeditTokenClass *klass; GtkTreeModel *model; SwfeditTokenEntry *entry; guint i; @@ -565,9 +726,38 @@ swfedit_token_set (SwfeditToken *token, if (converters[entry->type].free != NULL) converters[entry->type].free (entry->value); entry-&...
2007 Feb 01
0
Branch 'interpreter' - 9 commits - libswfdec/js libswfdec/swfdec_script.c libswfdec/swfdec_script.h player/swfdec_debug_stack.c test/trace
...al)); + return "Object"; +} + static void swfdec_debug_stack_set_model (SwfdecDebugStack *debug) { JSStackFrame *frame = NULL; guint i, min, max; GtkListStore *store = gtk_list_store_new (N_COLUMNS, G_TYPE_UINT, - G_TYPE_STRING); + G_TYPE_STRING, G_TYPE_STRING); GtkTreeIter iter; JS_FrameIterator (debug->manager->player->jscx, &frame); @@ -49,7 +69,9 @@ swfdec_debug_stack_set_model (SwfdecDebu for (i = min; i <= max; i++) { const char *s = swfdec_js_to_string (debug->manager->player->jscx, frame->sp[-i]); gtk_list_store_ap...
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
...void -step_disable_cb (SwfdecPlayerManager *manager, GParamSpec *pspec, GtkWidget *widget) -{ - gtk_widget_set_sensitive (widget, !swfdec_player_manager_get_interrupted (manager)); -} - -static void -select_scripts (GtkTreeSelection *select, SwfdecDebugScript *script) -{ - GtkTreeModel *model; - GtkTreeIter iter; - - if (gtk_tree_selection_get_selected (select, &model, &iter)) { - SwfdecDebuggerScript *dscript; - gtk_tree_model_get (model, &iter, 0, &dscript, -1); - swfdec_debug_script_set_script (script, dscript); - } else { - swfdec_debug_script_set_script (script, NULL...
2007 Jul 18
0
12 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_playback_alsa.c libswfdec/jpeg libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c
...SWFEDIT_TOKEN_UINT32) { SwfdecOut *out = swfdec_out_open (); diff --git a/test/swfedit_token.c b/test/swfedit_token.c index 542da2f..dfb55db 100644 --- a/test/swfedit_token.c +++ b/test/swfedit_token.c @@ -521,12 +521,14 @@ static gboolean swfedit_token_iter_next (GtkTreeModel *tree_model, GtkTreeIter *iter) { SwfeditToken *token = SWFEDIT_TOKEN (iter->user_data); + int i; REPORT; - if ((guint) GPOINTER_TO_INT (iter->user_data2) + 1 >= token->tokens->len) + i = GPOINTER_TO_INT (iter->user_data2) + 1; + if ((guint) i >= token->tokens->len) return FALSE...
2007 Aug 21
0
Branch 'vivi' - 15 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_types.h vivified/core vivified/ui
...x (GNode *parent return i; } -static void -vivi_movie_list_added (SwfdecPlayer *player, SwfdecMovie *movie, ViviMovieList *movies) +static gboolean +vivi_movie_list_added (ViviDebugger *debugger, SwfdecAsObject *object, ViviMovieList *movies) { + SwfdecMovie *movie; GtkTreePath *path; GtkTreeIter iter; GNode *node, *new; int pos; + if (!SWFDEC_IS_MOVIE (object)) + return FALSE; + movie = SWFDEC_MOVIE (object); if (movie->parent) { node = g_hash_table_lookup (movies->nodes, movie->parent); g_assert (node); @@ -297,6 +300,7 @@ vivi_movie_list_added (SwfdecPl...
2019 Sep 10
3
[PATCH 0/2] Remove virt-p2v from libguestfs
Now that virt-p2v has its own repository [1] and releases [2], it is time to remove it from libguestfs. [1] https://github.com/libguestfs/virt-p2v [2] http://download.libguestfs.org/virt-p2v/ Pino Toscano (2): Remove virt-p2v Remove remaining virt-p2v bits .gitignore | 4 - Makefile.am | 7 +- bash/Makefile.am