Displaying 16 results from an estimated 16 matches for "gtktreemodel".
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
...ec/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)
-{
- REPORT;
- return SWFDEC_DEBUG_MOVIES_N_COLUMNS;
-}
-
-static GType
-swfdec_debug_movies_get_column_type (GtkTreeModel *tr...
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
...dit_write_unsigned, NULL },
+ { swfedit_uint16_read, swfedit_write_unsigned, NULL },
+ { swfedit_uint32_read, swfedit_write_unsigned, NULL },
+};
+
+/*** STRUCTS ***/
+
+typedef struct {
+ char * name;
+ SwfeditTokenType type;
+ gpointer value;
+} Entry;
+
+/*** GTK_TREE_MODEL ***/
+
+static GtkTreeModelFlags
+swfedit_token_get_flags (GtkTreeModel *tree_model)
+{
+ return 0;
+}
+
+static gint
+swfedit_token_get_n_columns (GtkTreeModel *tree_model)
+{
+ SwfeditToken *token = SWFEDIT_TOKEN (tree_model);
+
+ return token->tokens->len;
+}
+
+static GType
+swfedit_token_get_column_type (GtkTre...
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
...- case SWFDEC_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_...
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
.../swfdec_movie.h>
+#include <libswfdec/swfdec_player_internal.h>
+#include <libswfdec/swfdec_root_movie.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)
+{
+ REPORT;
+ return SWFDEC_DEBUG_MOVIES_N_COLUMNS;
+}
+
+static GType
+swfdec_debug_movies_get_column_type (GtkTreeModel *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
...@@ -137,14 +137,6 @@ struct {
{ swfedit_uint32_from_string, swfedit_to_string_unsigned, NULL },
};
-/*** STRUCTS ***/
-
-typedef struct {
- char * name;
- SwfeditTokenType type;
- gpointer value;
-} Entry;
-
/*** GTK_TREE_MODEL ***/
#if 0
@@ -191,12 +183,12 @@ swfedit_token_get_iter (GtkTreeModel *tr
{
SwfeditToken *token = SWFEDIT_TOKEN (tree_model);
guint i = gtk_tree_path_get_indices (path)[0];
- Entry *entry;
+ SwfeditTokenEntry *entry;
REPORT;
if (i > token->tokens->len)
return FALSE;
- entry = &g_array_index (token->tokens, Entry, i);
+ entry...
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
...ect_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)
+{
+ SwfeditToken *token = SWFEDIT_TOKEN (tree_model);
+
+ REPORT;
+ return token->tokens->len;
+}
+
+static GType...
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
...de "vivi_movie_list.h"
+
+void
+vivi_movies_application_set (ViviViviDocklet *docklet, ViviApplication *app);
+void
+vivi_movies_application_set (ViviViviDocklet *docklet, ViviApplication *app)
+{
+ GtkWidget *view = vivi_vivi_docklet_find_widget_by_type (docklet, GTK_TYPE_TREE_VIEW);
+ GtkTreeModel *model;
+
+ model = vivi_movie_list_new (app);
+ gtk_tree_view_set_model (GTK_TREE_VIEW (view), model);
+ g_object_unref (model);
+}
+
diff --git a/vivified/ui/vivi_movies.xml b/vivified/ui/vivi_movies.xml
new file mode 100644
index 0000000..47f1bdf
--- /dev/null
+++ b/vivified/ui/vivi_movies.xm...
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
...ect_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)
+{
+ SwfeditToken *token = SWFEDIT_TOKEN (tree_model);
+
+ REPORT;
+ return token->tokens->len;
+}
+
+static GType...
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
...nter 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
-# 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)
-{
- SwfeditToken *token = SWFEDIT_TOKEN (tree_model);
-
- REPORT;
- return token->tokens->len;
-}
-
-static GType
-swfedit_token_g...
2009 Jun 04
2
RGtk2 help: Show list of column names from dataset and categorize as factor or numeric
Hi UseRs,
I recently started working with the RGtk2 library. The documentation
is comprehensive and I've tried learning from the examples in most Gtk
tutorials (which have C code). This is a little problematic, but has
helped quite a bit in getting me started.
I would like to create a GUI for file selection, which then displays
the column names from the selected file, and provides the user
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
...de "vivi_movie_list.h"
+
+void
+vivi_movies_application_set (ViviViviDocklet *docklet, ViviApplication *app);
+void
+vivi_movies_application_set (ViviViviDocklet *docklet, ViviApplication *app)
+{
+ GtkWidget *view = vivi_vivi_docklet_find_widget_by_type (docklet, GTK_TYPE_TREE_VIEW);
+ GtkTreeModel *model;
+
+ model = vivi_movie_list_new (app);
+ gtk_tree_view_set_model (GTK_TREE_VIEW (view), model);
+ g_object_unref (model);
+}
+
diff --git a/vivified/ui/vivi_movies.xml b/vivified/ui/vivi_movies.xml
new file mode 100644
index 0000000..47f1bdf
--- /dev/null
+++ b/vivified/ui/vivi_movies.xm...
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
...tkTreeMo
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_STRING;
default:
@@ -343,6 +497,10 @@ swfedit_token_get_value (GtkTreeModel *t
g_value_init (value, G_TYPE_BOOLEAN);
g_value_set_boolean (value, converters[entry->type].to_string != NULL);
return;
+ case SWFEDIT_COLUMN_VALUE_EDITABLE:
+ g_value_init (value, G_TYPE_BOOLEAN);
+ g_value_set_boolean (value, entry->visible);
+ return...
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
...ath = 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;
diff --git a/test/swfedit_token.h b/test/swfedit_token.h
index c9e522f..448f4cb 100644
--- a/test/swfedit_token.h
+++ b/test/swfedit_token.h
@@ -94,6 +94,9 @@ void swfedit_token_add (SwfeditToken *
SwfeditTokenType type,
gpointer value);
void swfedit_token_set (Swfedit...
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
...(manager);
-}
-
-static 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_s...
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
...if (entry->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-&...
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