search for: tree_model

Displaying 11 results from an estimated 11 matches for "tree_model".

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
...USA - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include <gtk/gtk.h> -#include <libswfdec/swfdec_debugger.h> -#include <libswfdec/swfdec_movie.h> -#include <libswfdec/swfdec_player_internal.h> -#include "swfdec_debug_movies.h" - -/*** GTK_TREE_MODEL ***/ - -#if 0 -# define REPORT g_print ("%s\n", G_STRFUNC) -#else -# define REPORT -#endif -static GtkTreeModelFlags -swfdec_debug_movies_get_flags (GtkTreeModel *tree_model) -{ - REPORT; - return 0; -} - -static gint -swfdec_debug_movies_get_n_columns (GtkTreeModel *tree_model) -{...
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
...DEC_DEBUG_MOVIES_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_ge...
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
...onnect_all, object); } +static GtkWidget * +create_movieview (SwfdecPlayer *player) +{ + GtkWidget *treeview; + GtkTreeViewColumn *column; + GtkCellRenderer *renderer; + SwfdecDebugMovies *movies; + + movies = swfdec_debug_movies_new (player); + treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (movies)); + renderer = gtk_cell_renderer_text_new (); + + column = gtk_tree_view_column_new_with_attributes ("Movie", renderer, + "text", SWFDEC_DEBUG_MOVIES_COLUMN_NAME, NULL); + gtk_tree_view_column_set_resizable (column, TRUE); + gtk_tree_view_append_column (GTK_TREE_...
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
...ror openeing file %s: %s\n", filename, error->message); + g_error_free (error); + return FALSE; + } + window = gtk_window_new (GTK_WINDOW_TOPLEVEL); + g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); + + treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (file)); + gtk_container_add (GTK_CONTAINER (window), treeview); + gtk_widget_show_all (window); + + renderer = gtk_cell_renderer_text_new (); + column = gtk_tree_view_column_new_with_attributes ("Name", renderer, + "text", SWFEDIT_COLUMN_NAME, NULL); + gtk_tree_view_col...
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
..._unsigned, NULL }, + { swfedit_uint32_from_string, swfedit_to_string_unsigned, NULL }, + { swfedit_rect_from_string, swfedit_rect_to_string, g_free }, + { swfedit_rgb_from_string, swfedit_rgb_to_string, NULL }, + { swfedit_rgba_from_string, swfedit_rgba_to_string, NULL }, +}; + +/*** GTK_TREE_MODEL ***/ + +#if 0 +# define REPORT g_print ("%s\n", G_STRFUNC) +#else +# define REPORT +#endif +static GtkTreeModelFlags +swfedit_token_get_flags (GtkTreeModel *tree_model) +{ + REPORT; + return 0; +} + +static gint +swfedit_token_get_n_columns (GtkTreeModel *tree_model)...
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
...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 *window, *scroll, *box, *button, *tr...
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
...@@ struct { { swfedit_uint8_from_string, swfedit_to_string_unsigned, NULL }, { swfedit_uint16_from_string, swfedit_to_string_unsigned, NULL }, { swfedit_uint32_from_string, swfedit_to_string_unsigned, NULL }, + { swfedit_rect_from_string, swfedit_rect_to_string, g_free }, }; /*** GTK_TREE_MODEL ***/ diff --git a/test/swfedit_token.h b/test/swfedit_token.h index 5235d03..8dec753 100644 --- a/test/swfedit_token.h +++ b/test/swfedit_token.h @@ -31,6 +31,7 @@ typedef enum { SWFEDIT_TOKEN_UINT8, SWFEDIT_TOKEN_UINT16, SWFEDIT_TOKEN_UINT32, + SWFEDIT_TOKEN_RECT, SWFEDIT_N_TOKENS }...
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
..._unsigned, NULL }, + { swfedit_uint32_from_string, swfedit_to_string_unsigned, NULL }, + { swfedit_rect_from_string, swfedit_rect_to_string, g_free }, + { swfedit_rgb_from_string, swfedit_rgb_to_string, NULL }, + { swfedit_rgba_from_string, swfedit_rgba_to_string, NULL }, +}; + +/*** GTK_TREE_MODEL ***/ + +#if 0 +# define REPORT g_print ("%s\n", G_STRFUNC) +#else +# define REPORT +#endif +static GtkTreeModelFlags +swfedit_token_get_flags (GtkTreeModel *tree_model) +{ + REPORT; + return 0; +} + +static gint +swfedit_token_get_n_columns (GtkTreeModel *tree_model)...
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
..._signal_connect (app, "notify::player", G_CALLBACK (vivi_movie_list_reset), movies); g_signal_connect (debugger, "add", G_CALLBACK (vivi_movie_list_added), movies); g_signal_connect (debugger, "remove", G_CALLBACK (vivi_movie_list_removed), movies); return GTK_TREE_MODEL (movies); diff-tree 32192c024105f03a19dcf93ca92ca56f43fd5b56 (from f21416fa0be5658c7e88bc2e57d77eacd369ff85) Author: Benjamin Otte <otte at gnome.org> Date: Wed Aug 22 09:33:47 2007 +0200 only disconnect signals when the objet still exists diff --git a/libswfdec-gtk/swfdec_source.c b/...
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
..._string_unsigned, NULL }, { swfedit_uint32_from_string, swfedit_to_string_unsigned, NULL }, { swfedit_rect_from_string, swfedit_rect_to_string, g_free }, + { swfedit_rgb_from_string, swfedit_rgb_to_string, NULL }, + { swfedit_rgba_from_string, swfedit_rgba_to_string, NULL }, }; /*** GTK_TREE_MODEL ***/ diff --git a/test/swfedit_token.h b/test/swfedit_token.h index 8dec753..7909188 100644 --- a/test/swfedit_token.h +++ b/test/swfedit_token.h @@ -32,6 +32,8 @@ typedef enum { SWFEDIT_TOKEN_UINT16, SWFEDIT_TOKEN_UINT32, SWFEDIT_TOKEN_RECT, + SWFEDIT_TOKEN_RGB, + SWFEDIT_TOKEN_RGBA,...
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
...->type == 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)...