Questions tagged [gtktreeview]

GtkTreeView is a widget for displaying both trees and lists. It is part of the GTK library.

217 questions
1
vote
1 answer

How to set multiple items into a GtkSelection for Treeview drag and drop

My current project uses a Gtk.TreeView to display the contents of a ListView with four fields per row, two strings, an int and a boolean. I'm trying to implement drag and drop rearrangement of rows in the TreeView. I don't want simply to use…
knutsondc
  • 515
  • 4
  • 14
1
vote
1 answer

Pygtk - How get data from a Treeview?

wich is the method to get datas of a Treeview? I have some rows and I'd like to save the data in an XML file, but I don't know how to keep the rows datas to pass to the XML function creator. Thanks a lot! Thanks for your reply! Here some code: def…
user1734227
1
vote
1 answer

GtkTreeView - Set user data to a row

Is there a way to store user data on a single row in GtkTreeView? Like it's usually can be done on any widget with the function g_object_set_data(). I tried storing data on GtkTreeIter but it produces segmentation fault error The best way to do it…
Felix
  • 123
  • 1
  • 7
1
vote
1 answer

Updating a gtk_tree_view from pthreads

I've been trying to figure out some method to cause a GtkTreeView to redraw after I update the bound GtkListStore from a background thread created with pthreads. Generally, the widget does not update until something obscures an existing row (even a…
1
vote
2 answers

GtkTreeView Unset Cursor

When a new GtkTreeView is exposed, one finds it in a state without any cursor displayed. Once focused, the cursor is there, even when the focus is lost. I am looking for a method to get rid of the cursor on demand. The GTK+ reference claims, that…
1
vote
1 answer

Expand gtkmm GtkTreeView column

Im looking forward to expand one of my gtkmm treeview columns so it would use all the space left, and shrink other columns... Its there any way to do this? m_ScrolledWindow.add(m_TreeView); m_ScrolledWindow.set_policy(Gtk::POLICY_AUTOMATIC,…
JuanCB
  • 305
  • 1
  • 3
  • 11
1
vote
2 answers

Sort a gtk.TreeColumn by date value

I have a gtk.ListStore attached to a gtk.Treeview The first column of this gtk.ListStore is of str type and contains a date value (dd/mm HH:MM:SS) I want to sort the first gtk.TreeviewColumn by date so, I have wrote : listStore = gtk.ListStore(str,…
Loïc G.
  • 3,087
  • 3
  • 24
  • 36
0
votes
3 answers

Mono getting node position in TreeView

I need to get node position in the Gtk.TreeView. I'm able to get the row and what the user changed, but I have to hardcore the column, is there any way how to get it? Here's the code: private void artistNameCell_Edited (object o, Gtk.EditedArgs…
user1086004
  • 51
  • 1
  • 4
0
votes
1 answer

How do I get the item (tree node) under the mouse pointer in a TreeView?

In a GTK/GTK# TreeView, how do I get the item/node which the mouse pointer is currently hovering over?
rob74
  • 4,939
  • 29
  • 31
0
votes
1 answer

How to determine which model is connected to a treeview given a callback?

In Gtk 2.0 the cell toggled event, for example, passes the cell rendered and the path to the callback. But in order to change the underlying model data I need to know which treeview or which model this event is for. What is the proper way to…
ClubCranium
  • 111
  • 1
  • 4
0
votes
1 answer

Get row values of GtkTreeView in PHP

How can I retrieve the row data from a GtkTreeView in PHP? My try: // $this->guidata = new GtkListStore(); // $this->view = new GtkTreeView($this->guidata); $dutarray = array(); $selection =…
leon22
  • 5,280
  • 19
  • 62
  • 100
0
votes
0 answers

Gtk.TreeModelFilter, no automatic way to show parent when using VisibleFunc?

It seems that there are two mutually-exclusive ways to use filter: Setting a function to determine visibility. Setting a boolean column to denote visibility. The problem of (1) is that if any of the ancestors does not match the function, matching…
Damn Vegetables
  • 11,484
  • 13
  • 80
  • 135
0
votes
1 answer

Gtk TreeView : Connect to double-clicked item / row

I have this Gtk.TreeView() treeview = Gtk.TreeView(model=liststore) And I get the selected item like this: selected_playlist_item = treeview.get_selection() selected_playlist_item.connect("changed", self.on_selected_playlist_item) And here is the…
yPhil
  • 8,049
  • 4
  • 57
  • 83
0
votes
1 answer

how i can do a DND in treeview with model filter in GTK 3 with GTK_SELECTION_MULTIPLE in C?

I'm trying to implement a DND solution on 2 GTK treeview with a multiple selection. The single selection works well, but as soon as set the gtk_tree_selection_set_mode to GTK_SELECTION_MULTIPLE I must change my on_drag_data_get…
Ben
  • 1
0
votes
1 answer

Reorder GtkTreeView in Microsoft Windows using gtk_tree_view_set_reorderable

According to the GTK+ Reference Manual, using gtk_tree_view_set_reorderable will enable drag and drop for reordering rows. I tried it in Linux using GTK+ 3 and GTK+ 2, and it seems to work fine. But when I tried it in Microsoft Windows, using GTK+…