search for: gtk_tree_model

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

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 Aug 17
0
Branch 'vivi' - 3 commits - player/Makefile.am player/swfdec_debug_movies.c player/swfdec_debug_movies.h vivified/core vivified/ui
...01 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 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
..._movie_list.c +++ b/vivified/ui/vivi_movie_list.c @@ -347,8 +347,8 @@ vivi_movie_list_removed (ViviDebugger *d if (node == NULL) return FALSE; vivi_movie_list_remove_node (movies, node); - g_node_destroy (node); path = vivi_movie_list_node_to_path (node); + g_node_destroy (node); gtk_tree_model_row_deleted (GTK_TREE_MODEL (movies), path); gtk_tree_path_free (path); return FALSE; diff-tree cd57b9ab579ac803f64b351459380fb749daaa0f (from 1c017203cce97b97487e8513c645f9c6fe8b24e4) Author: Benjamin Otte <otte at gnome.org> Date: Tue Aug 21 22:53:56 2007 +0200 add a Player.sou...
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
...ayer/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_append_index (path, i); - g_print ("movie %s removed\n", movie->name); gtk_tree_model_row_deleted (...
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
...= g_node_new (movie); + g_hash_table_insert (movies->nodes, movie, new); + pos = swfdec_debug_movies_get_index (node, new); + g_node_insert (node, pos, new); + movies->stamp++; + iter.stamp = movies->stamp; + iter.user_data = new; + path = swfdec_debug_movies_node_to_path (new); gtk_tree_model_row_inserted (GTK_TREE_MODEL (movies), path, &iter); gtk_tree_path_free (path); } static void +swfdec_debug_movies_movie_notify (SwfdecMovie *movie, GParamSpec *pspec, SwfdecDebugMovies *movies) +{ + GtkTreeIter iter; + GtkTreePath *path; + GNode *node; + + node = g_hash_table_lookup...
2007 Aug 22
0
Branch 'vivi' - 2 commits - libswfdec-gtk/swfdec_source.c vivified/ui
...+ g_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 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
...t;Error 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 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
...50,7 @@ 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 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
...disconnect_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 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
...value); + entry->value = value; + klass = SWFEDIT_TOKEN_GET_CLASS (token); + if (klass->changed) + klass->changed (token, i); + + model = token; + while (model->parent) + model = model->parent; + iter.user_data = token; + iter.user_data2 = GUINT_TO_POINTER (i); + path = gtk_tree_model_get_path (GTK_TREE_MODEL (model), &iter); + gtk_tree_model_row_changed (GTK_TREE_MODEL (model), path, &iter); + gtk_tree_path_free (path); +} + +void +swfedit_token_set_iter (SwfeditToken *token, GtkTreeIter *iter, const char *value) { SwfeditTokenClass *klass; GtkTreeModel *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 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
...ring_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 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
...ring_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 Feb 01
0
Branch 'interpreter' - 9 commits - libswfdec/js libswfdec/swfdec_script.c libswfdec/swfdec_script.h player/swfdec_debug_stack.c test/trace
...amp;iter, COLUMN_LINE, i, COLUMN_CONTENT, s, -1); + gtk_list_store_set (store, &iter, COLUMN_LINE, i, + COLUMN_TYPE, swfdec_get_jsval_type (debug->manager->player->jscx, frame->sp[-i]), + COLUMN_CONTENT, s, -1); } gtk_tree_view_set_model (GTK_TREE_VIEW (debug), GTK_TREE_MODEL (store)); @@ -119,6 +141,13 @@ swfdec_debug_stack_add_columns (GtkTreeV gtk_tree_view_append_column (treeview, column); renderer = gtk_cell_renderer_text_new (); + column = gtk_tree_view_column_new_with_attributes ("Type", renderer, + "text", COLUMN_TYPE, NULL); + g...
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
...+ g_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
...t_to_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 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
...S_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 (SwfdecPlayer *pla path = vivi_movie_list_node_to_path (new); gtk_tree_model_row_inserted (GTK_TREE_MODEL (movies), path, &iter); gtk_tree_path_free (path); + return FALSE; } static void @@ -318,30 +322,35 @@ vivi_movie_list_movie_notify (SwfdecMovi gtk_tree_path_free (path); } -static void -vivi_movie_list_removed (SwfdecPlayer *player, SwfdecMovie *movie...
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
...g, swfedit_script_to_string, swfedit_script_free }, }; +gpointer +swfedit_token_new_token (SwfeditTokenType type) +{ + gpointer ret; + + g_assert (type < G_N_ELEMENTS (converters)); + + if (!converters[type].new) + return NULL; + ret = converters[type].new (); + return ret; +} + /*** GTK_TREE_MODEL ***/ #if 0 @@ -259,6 +411,8 @@ swfedit_token_get_column_type (GtkTreeMo return G_TYPE_STRING; case SWFEDIT_COLUMN_VALUE_VISIBLE: return G_TYPE_BOOLEAN; + case SWFEDIT_COLUMN_VALUE_EDITABLE: + return G_TYPE_BOOLEAN; case SWFEDIT_COLUMN_VALUE: return G_TYPE_S...
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
...dec_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); - } -} - -static void -toggle_play_cb (SwfdecPlayerManager *manager, GParamSpec *pspec, GtkToggleButton *button) -{ - gtk_toggle_butt...
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