GtkTreeView is a widget for displaying both trees and lists. It is part of the GTK library.
Questions tagged [gtktreeview]
217 questions
1
vote
1 answer
How to transfer selected row from a TreeView to another TreeView? GTK#
How can I transfer selected rows from a Treeview to another Treeview when I click a Button?
I've been trying to create a ListStore with the selections of treeview1 and give it to treeview2 as a TreeModel, but I haven't been successful.
UPDATE: I…

José Medina
- 11
- 3
1
vote
1 answer
Combine fields from the model in one Gtk.TreeViewColumn
I am not sure but I think it is possible to use more then one Gtk.CellRenderer in a Gtk.TreeViewColumn when using pack_start().
But I can't get it run and don't see what is wrong. The TreeView in this example code is empty.
#!/usr/bin/env…

buhtz
- 10,774
- 18
- 76
- 149
1
vote
0 answers
pygtk: invalid treeview iter
I have a somewhat complicated set-up for a treeview. This is how the view is set up:
self.hsModel = gtk.TreeStore(*[c[0] for c in columns])
self.hsModelFilter = self.hsModel.filter_new()
self.hsModelSort =…

Claudiu
- 224,032
- 165
- 485
- 680
1
vote
1 answer
Reorder rows in GtkTreeView after they have been sorted
I have the following GTK+ program which uses an Glade generated XML file to construct its GUI.
#include
#include
#include
////////////////////////////////////////////////////
// Example can be compiled with:
// gcc…
user4918296
1
vote
1 answer
add list to gtk_tree_view in C
folks,
im gonna tryin to make a little function which has something todo with the Gtk_tree_view that i've made,
the error response such as like this :
(main:8026): Gtk-CRITICAL **: IA__gtk_tree_view_get_model: assertion `GTK_IS_TREE_VIEW…

capede
- 945
- 1
- 13
- 26
1
vote
2 answers
Markup matches and escape special characters outside the matches at the same time
I have a search functionality for a treeview that highlights all matches, incl. distinction between caseless and case-sensitive, as well as distinction between regular expression and literal. However, I have a problem when the current cell contains…

GTK 1.2.6 fanboy
- 839
- 1
- 5
- 20
1
vote
1 answer
How do I sort a GtkTreeModelFilter?
I have a GtkListStore with a GtkTreeModelFilter wrapped around this, to filter out certain rows. I then put this filter inside a GtkTreeView.
This causes my GtkTreeView to be not-sortable, as GtkTreeModelFilter does not implement…

Jeroen
- 15,257
- 12
- 59
- 102
1
vote
0 answers
Treeview drag and drop with a gtk CellRenderer in python
When extending a gtk cell renderer such as gtk.CellRendererPixbuf in python, what needs to be done to make sure drag and drop works?
Drag and drop works for gtk.CellRendererText but not for my custom CellRender where I have extended…

Monkey Code
- 592
- 6
- 20
1
vote
1 answer
Adding GtkButton to GtkListStore with text in GTK+
I want a button with text on it for a GtkListStore. I read another answer using an image as a button, but I really need the title to be text. How can I do this? I'd be fine with a solution that renders text onto a GdkPixbuf as well.
I've tried…
user7537486
1
vote
1 answer
Can you have a GtkTreeView that only has checkboxes on the children rows?
I'd like to have a GtkTreeView that has parents with no checkbox, and all of the children have checkboxes. Everything I have tried (and seen) puts checkboxes on every row.

Doug Blank
- 2,031
- 18
- 36
1
vote
1 answer
Disable keyboard shortcuts in GTKTreeView
I have a problem with the keyboard navigation is my TreeView. I haven't found a solution to this in the documentation.
The Ctrl+PageUp/Down keyboard combination has a default meaning when a TreeView has focus. The thing is that I want to use…

Lii
- 11,553
- 8
- 64
- 88
1
vote
1 answer
Change selected row in gtk_tree_selection from C function
I have some efficiency concerns in my application using GTK3 and hope you can provide some help.
I have a gtk_list_store that is shown within a gtk_tree_view.
The tree view allows selecting multiple rows.
I have connected a callback function to the…

Gerhardh
- 11,688
- 4
- 17
- 39
1
vote
2 answers
gtk.treeviewcolumn not sorting
I've gotten a sortable treeview working. Clicking on the columns makes it sort by ascending order, and clicking it again makes it sort by descending order. However, if I click on the column header a third time, it goes to some "unsorted" state,…

Claudiu
- 224,032
- 165
- 485
- 680
1
vote
3 answers
How to setup a Gtk# TreeModelFilter that filters an underlying TreeStore?
I have read the "GtkSharp TreeView tutorial" wherein the author describes how to setup and use a TreeModelFilter for an underlying ListStore ( under the tutorial section "Filtering Data"). The technique doesn't seem to work for an underlying…

explorer
- 11,710
- 5
- 32
- 39
1
vote
0 answers
Get selected row from GtkTreeView
I have a GtkTreeView representing some data, and I want to have a GtkPopover appear on some action, pointing to that row. I have the popover working all but for the position.
How do you retrieve a widget for the currently selected row (or rows I…

Inductiveload
- 6,094
- 4
- 29
- 55