search for: gtk_tree_view

Displaying 20 results from an estimated 21 matches for "gtk_tree_view".

2018 Nov 06
1
[PATCH] p2v: use newer GTK APIs if possible
...on == 1) { + if (gdk_event_get_event_type ((const GdkEvent *) event) == GDK_BUTTON_PRESS && + gdk_event_get_button ((const GdkEvent *) event, &button) && + button == 1) { GtkTreePath *path; GtkTreeViewColumn *column; + gdouble event_x, event_y; - if (gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (interfaces_list), - event->x, event->y, - &path, &column, NULL, NULL)) { + if (gdk_event_get_coords ((const GdkEvent *) event, &event_x, &event_y) + &&...
2016 Jan 26
1
[PATCH v2] p2v: User can click on an interface name to identify the
v1 -> v2: Added a (now blue) underlined "Identify interface" link. It's not really a link, but it looks like one, so hopefully should resolve the previous UI issue. Rich.
2016 Jan 26
2
[PATCH] p2v: User can click on an interface name to identify the physical interface.
...g *); static void set_interfaces_from_ui (struct config *); @@ -649,6 +650,10 @@ create_conversion_dialog (struct config *config) gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (interfaces_sw), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); interfaces_list = gtk_tree_view_new (); + /* See maybe_identify_click below for what we're doing. */ + g_signal_connect (interfaces_list, "button-press-event", + G_CALLBACK (maybe_identify_click), NULL); + gtk_widget_set_tooltip_markup (interfaces_list, _("Left click on an interface name t...
2016 May 30
0
[PATCH v2 3/3] p2v: Allow virt-p2v to be built with Gtk 2 or 3.
...0.1, 0.5); + set_alignment (info_label, 0.1, 0.5); set_info_label (); gtk_container_add (GTK_CONTAINER (info_frame), info_label); @@ -748,8 +850,7 @@ create_conversion_dialog (struct config *config) GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); disks_list = gtk_tree_view_new (); populate_disks (GTK_TREE_VIEW (disks_list)); - gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (disks_sw), - disks_list); + scrolled_window_add_with_viewport (disks_sw, disks_list); gtk_container_add (GTK_CONTAINER (disks_frame), di...
2016 May 30
1
[PATCH v3] p2v: Allow virt-p2v to be built with Gtk 2 or 3.
This version of the Gtk 2/3 patch gets alignment and padding mostly right. I still can't work out how to vertically align labels in the middle of a cell in a GtkGrid. The GtkTextView in the final dialog is still broken. Rich.
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
...rManager *manager, GParamSpec *pspec, SwfdecDebugScripts *debug) -{ - GtkTreeModel *model; - GtkTreeIter iter; - SwfdecDebuggerScript *script; - - if (!swfdec_player_manager_get_interrupted (manager)) - return; - - swfdec_player_manager_get_interrupt (manager, &script, NULL); - model = gtk_tree_view_get_model (GTK_TREE_VIEW (debug)); - gtk_tree_model_get_iter_first (model, &iter); - do { - SwfdecDebuggerScript *cur; - gtk_tree_model_get (model, &iter, 0, &cur, -1); - if (cur == script) { - gtk_tree_selection_select_iter ( - gtk_tree_view_get_selection (GTK_TREE_VI...
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
...or: Benjamin Otte <otte at gnome.org> Date: Tue Aug 7 23:19:52 2007 +0200 reenable movie list diff --git a/player/swfdebug.c b/player/swfdebug.c index fbae7ac..2f52401 100644 --- a/player/swfdebug.c +++ b/player/swfdebug.c @@ -228,9 +228,9 @@ create_movieview (SwfdecPlayer *player) gtk_tree_view_column_set_resizable (column, TRUE); gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column); - renderer = gtk_cell_renderer_toggle_new (); - column = gtk_tree_view_column_new_with_attributes ("V", renderer, - "active", SWFDEC_DEBUG_MOVIES_COLUMN_VISIBLE, NULL);...
2016 May 30
2
[PATCH 0/2] p2v: Allow virt-p2v to be built with Gtk 2 or 3.
... and a small initial patch which makes it easier to test virt-p2v without having to start up a virtual machine. There is still a bug in Gtk 3 where the GtkTextView on the final (running) dialog ignores gtk_widget_set_size_request and so the window appears just a single pixel high. Rich.
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
...ct_weak_ref (G_OBJECT (data), 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_tre...
2016 May 30
4
[PATCH v2 0/3] p2v: Allow virt-p2v to be built with Gtk 2 or 3.
This is basically the same as what I posted earlier today. The main difference is I split out the GDK thread sychronization (removal of) changes from the other Gtk 2/3 changes, which should make it a bit easier to review. Gtk 3 is still not quite perfect. Apart from the problem with the GtkTextView noted before, there are also vertical alignment and padding problems with labels in GtkGrid
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
...NULL) { + g_printerr ("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_NA...
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
...n_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.xml @@ -0,0 +1,38 @@ +<interface> + <object class="V...
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
...e, &iter); - gtk_list_store_set (store, &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...
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
..._set_title (GTK_WINDOW (window), basename); + g_free (basename); + } g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); box = gtk_vbox_new (FALSE, 3); @@ -92,7 +98,7 @@ open_window (char *filename) renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes ("Name", renderer, - "text", SWFEDIT_COLUMN_NAME, NULL); + "text", SWFEDIT_COLUMN_NAME, "sensitive", SWFEDIT_COLUMN_VALUE_EDITABLE, NULL); gtk_tree_view_column_set_resizable (column, TRUE); gtk_tree_view_append_column (G...
2023 Jan 30
11
[p2v PATCH 00/11] Expose virt-v2v's "-oo"; re-enable openstack
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1792141 Let the user pass "-oo" options from the kernel cmdline and from the GUI to virt-v2v. This is primarily useful with the OpenStack output mode, so reenable that mode. Cc: Alban Lecorps <alban.lecorps at ubisoft.com> Laszlo Alban Lecorps (1): Introduce "p2v.output.misc" for passing "-oo" options
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
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_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); - - box = gtk_vbox_new (FALSE, 3); - gtk_container_add (GTK_CONTAINER (window), box); - - scroll = gtk_scrolled_window_new (NULL, NULL); - gtk_box_pack_start (GTK_BOX (box), scroll, TRUE, TRUE, 0); - - treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (file)); - gtk_container_add (GTK_CONTAINER (scroll), treeview); - - renderer = gtk_cell_renderer_text_new (); - column = gtk_tree_view_column_new_with_attributes ("Name", renderer, - "text", SWFEDIT_COLUMN_NAME, "sensitive", SWFEDI...
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
...CK (gtk_main_quit), NULL); + box = gtk_vbox_new (FALSE, 3); + gtk_container_add (GTK_CONTAINER (window), box); + scroll = gtk_scrolled_window_new (NULL, NULL); - gtk_container_add (GTK_CONTAINER (window), scroll); + gtk_box_pack_start (GTK_BOX (box), scroll, TRUE, TRUE, 0); treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (file)); gtk_container_add (GTK_CONTAINER (scroll), treeview); - gtk_widget_show_all (window); renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes ("Name", renderer, @@ -76,6 +90,11 @@ open_window (char *fi...
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
...e, &iter); - gtk_list_store_set (store, &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...
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers. These aren't valid for global names in C++. (http://stackoverflow.com/a/228797) These large but completely mechanical patches change the illegal identifiers to legal ones. Rich.