Questions tagged [gtktreeview]

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

217 questions
2
votes
1 answer

How to get focus on a specific cell of Gtk.TreeView?

I have a Gtk.TreeView instance and I also have the row and column index of the cell to be selected. How get to focus on the specific cell based those row and column index(int)?
Utkarsh Tiwari
  • 125
  • 2
  • 8
2
votes
2 answers

GtkTreeviewColumn with different combo model for each row

I have a global set of values, e.g. ["Foo", "Bar", "Baz", "Quux"]. Each row in my TreeView represents an entity that can only deal with a subset of these values. For example, the first row might deal with "Foo" and "Bar", and the second, "Bar" and…
Claudiu
  • 224,032
  • 165
  • 485
  • 680
2
votes
1 answer

Drag and Drop between Instances of the same application. (GtkTreeView)

I am trying to receive drag and drop content between instances of the same application from a GtkTreeView. The contents are pointers to objects and I couldn't manage to trigger the receive event on the target application treeview. I could only…
Sanane Lan
  • 93
  • 1
  • 9
2
votes
1 answer

Gtk.TreeView fails to add a custom renderer with assertion 'gtk_cell_area_has_renderer (area, renderer)' failed

I'm trying to add dynamically custom CellRenderer to my Gtk.Treeview with by calling set_attributes: private void add_column (TrackColumns type) { var column = new Gtk.TreeViewColumn () ; column.title = type.get_title () ; …
Name is carl
  • 5,961
  • 3
  • 29
  • 44
2
votes
2 answers

PyGTK TreeView: Prevent last column from growing

I'm trying to make a gtk.TreeView with four columns, where the first two columns can be resized and the last two can't. In other words, I want the third and fourth columns to occupy a fixed amount of space and I want the first and second columns to…
Kale Kundert
  • 1,144
  • 6
  • 18
2
votes
1 answer

In Gtk, how do I make a CellRendererToggle in a TreeViewColumn with multiple CellRenderers only get toggled when the checkbox itself is clicked?

I have a TreeModel representing a tree of Tags. Each Tag has these properties, among others: string Name bool Active Tag Parent TagList Children //basically just a List The TreeView has a single column, with two CellRenderers:…
Matthew
  • 28,056
  • 26
  • 104
  • 170
2
votes
2 answers

In Gtk, how do I get a path from a sorted TreeView by x and y coordinates?

I have a ListStore that is filtered and then sorted. It looks something like this: // Create a model for the cards cardListStore = new ListStore (typeof (Card)); // Set up the tree view cardFilter = new TreeModelFilter (cardListStore,…
Matthew
  • 28,056
  • 26
  • 104
  • 170
2
votes
1 answer

Programmatically Adding Data to a GtkTreeView/GtkListStore Created in Glade 3.12.1

I've been teaching myself how to code in C and utilize GTK for writing applications in Linux, using Glade to design the UI before implementing it. I've been trying to utilize a GtkTreeView coupled with a GtkListStore to display data, but I seem to…
jsdewey
  • 23
  • 1
  • 4
2
votes
2 answers

GtkTreeView homogenous column width

Is there a way to make all the columns in a GtkTreeView have the same width, either programmatically or using Glade/GtkBuilder?
Samantha Catania
  • 5,116
  • 5
  • 39
  • 69
2
votes
1 answer

How to set color of a row in Gtk2::TreeView Perl?

I use TreeView and ListStore to show a GUI table. How can I set color a defined row? Are there any samples how to do it? With google I've found an example only for SimpleList, but I need it for ListStore.
edem
  • 3,222
  • 3
  • 19
  • 45
2
votes
1 answer

Needing to select the item twice in the treeview before being able to activate combo box

I am drawing the GUI using GTK+ with PyGTK. I've created a ComboBox within a TreeView. But the problem is that when I first click an item, the dropdown arrow is insensitive (grayed-out). I had to click another item and then return to the item again…
elwc
  • 1,197
  • 2
  • 15
  • 25
2
votes
2 answers

How to change a GtkTreeView style in Python?

I have an app written in python that presents some of its data in a tree view. By default, the tree view is a floaty white affair with little floaty triangles to expand the nodes. Is it possible to change this style to be more like a Windows…
izb
  • 50,101
  • 39
  • 117
  • 168
1
vote
1 answer

GTK# treeview hierarchical data display

I am currently working with mono and gtk#. Regarding the TreeView there is this Tutorial. I want to achieve the same thing thats presented under "Controlling how the model is used" So i have the Song Class and the Render-Methods to display artist…
Chris
  • 21
  • 4
1
vote
2 answers

TreeView: Pango.Alignment not working

And another TreeView problem, should've used qt ;) I have a TreeView in which I use the following function to render text: private void RenderEntryValue (Gtk.TreeViewColumn column, Gtk.CellRenderer cell, Gtk.TreeModel model, Gtk.TreeIter iter) { …
TheSHEEEP
  • 2,961
  • 2
  • 31
  • 57
1
vote
1 answer

How to choose multiple items in a GTK combobox in python

I have a combobox widget in python that I would like to be able to choose multiple items, but I'm starting to think this is not possible. I see that it is possible on using Gtk.TreeView() by setting the mode to multiple. Is there a way to get a…
narnie
  • 1,742
  • 1
  • 18
  • 34