Displaying 5 results from an estimated 5 matches for "vivi_movie_list_node_to_path".
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
...= NULL)
+ return FALSE;
+ node = movies->root;
+ for (i = 0; i < depth; i++) {
+ node = g_node_nth_child (node, indices[i]);
+ if (node == NULL)
+ return FALSE;
+ }
+ iter->user_data = node;
+ iter->stamp = movies->stamp;
+ return TRUE;
+}
+
+static GtkTreePath *
+vivi_movie_list_node_to_path (GNode *node)
+{
+ GtkTreePath *path;
+
+ path = gtk_tree_path_new ();
+ while (node->parent != NULL) {
+ gtk_tree_path_prepend_index (path, g_node_child_position (node->parent, node));
+ node = node->parent;
+ }
+ return path;
+}
+
+static GtkTreePath *
+vivi_movie_list_get_pat...
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
index 7cca226..2ac4104 100644
--- a/vivified/ui/vivi_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:...
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
...e, *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 (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 *p...
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
...{
+ positions[i] = i - 1;
+ }
+ }
+ positions[new] = old;
+ for (i = max + 1; i < count; i++) {
+ positions[i] = i;
+ }
+ g_node_unlink (node);
+ g_node_insert (parent, new, node);
+ iter.stamp = movies->stamp;
+ iter.user_data = parent;
+ path = vivi_movie_list_node_to_path (parent);
+ gtk_tree_model_rows_reordered (GTK_TREE_MODEL (movies), path, &iter, positions);
+ gtk_tree_path_free (path);
+ g_free (positions);
+ }
+ }
+ iter.stamp = movies->stamp;
+ iter.user_data = node;
+ path = vivi_movie_list_node_to_path (node);
+ gtk_tree_model...