Questions tagged [gtktreeview]

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

217 questions
2
votes
3 answers

Custom tree cell renderers in GTK# - How to get cell data?

I'm using a TreeView in GTK# and now I need to use a custom cell renderer. Although I got almost everything to work, there's one missing piece: The cell renderer must know what to render. The data to render is a custom class. I want to retrieve a…
luiscubal
  • 24,773
  • 9
  • 57
  • 83
2
votes
1 answer

Python GtkTreeview; How to refresh the list when an item is selected

I'm making a rudimentary file manager and am stuck on the question in my post's title. First it looks in a directory, generates a list of items, and appends them to the treeview list. If a subdirectory is clicked, it becomes the new current…
Fruckubus Crunt
  • 199
  • 2
  • 16
2
votes
3 answers

GTKmm - How to put a pixbuf in a treeview

I'm learning how to use GTKmm and I'm having a really hard time figuring out how to put an image into a treeview. I used Glade to create a treestore with 3 columns, one of which is a GdkPixbuf called store_pixbuf. I also created a treeview in…
bmw357
  • 21
  • 1
  • 2
2
votes
0 answers

Gtk: How to add a click event to a CellRendererPixbuf in a Treeview?

I want to get a signal event if somebody click my pixbuf image? How is this possible. treestore = Gtk.TreeStore() ... treeview = Gtk.TreeView() treeview.set_model(self.treestore) renderer_pixbuf =…
ikreb
  • 2,133
  • 1
  • 16
  • 35
2
votes
2 answers

How do I add a background image to a GTK TreeView?

I would like to to have a GTK TreeView with a background image as shown in the mockup below. I have found methods for setting the background color of widgets, but there does not appear to be a method for setting a background pixbuf or other image…
Steven T. Snyder
  • 5,847
  • 4
  • 27
  • 58
2
votes
1 answer

TreeView not working in Python Gtk3

So I have a GTk structure like: Window()> Grid()> Label() + ScrolledWindow()> TreeView() + Box()> Button() Everything works fine except th Scrolled Window is not Displayed…
Ubdus Samad
  • 1,218
  • 1
  • 15
  • 27
2
votes
1 answer

c: GtkListStore row-changed event - how can i fetch the data of the selected row?

Hello I use glade to write a small gtk application. the application includes a list store. and whenever a user clicks on a row, i want to be able to fetch the information that this row contains. using glade under row-changed event i added the…
ufk
  • 30,912
  • 70
  • 235
  • 386
2
votes
2 answers

How to know when a TreeView row is selected in Ruby GTK

I'm trying to catch the click event on a row For some reason this only works on double click. @tree.signal_connect("row-activated") do |view, path, column| puts "Row #{path.to_str} was clicked!" end How can I catch just a single click ?
Paté
  • 1,914
  • 2
  • 22
  • 33
2
votes
1 answer

A treeview INSIDE OF a treeview? or how to show a list inside of a treeview

I have a treeview that lists the properties of an object. One of those properties is a list of Tags (strings) that can be a list of zero to whatever number of items. So you could tag a song with "Jazz" and "Favourite" and "Chillout" or whatever. …
Brandon
  • 668
  • 8
  • 22
2
votes
1 answer

PyGTK: Trouble with size of ScrolledWindow

I am using PyGTK and the gtk.Assistant. On one page I have placed a treeview (one column, just strings) in a gtk.ScrolledWindow (I wanted the vertical scrollbar, since the list contains about 35 items). Everything is working fine; the only thing…
canavanin
  • 2,559
  • 3
  • 25
  • 36
2
votes
1 answer

GTKCellRendererToggle in a GTKTreeView

for(int i=0; i<2; i++) { types[i] = G_TYPE_STRING; } types[2] = G_TYPE_BOOLEAN; tree_store = gtk_list_store_newv(3, types); tree_view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(tree_store)); gtk_scrolled_window_add_with_viewport…
user7537486
2
votes
1 answer

Segfault when Adding rows to GTKTreeView

GtkWidget *tree_view; GtkListStore *tree_store; GtkTreeModel *tree_model; tree_store = gtk_list_store_new(4, G_TYPE_STRING,G_TYPE_STRING,G_TYPE_INT,G_TYPE_FLOAT); tree_view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(tree_store)); GtkTreeIter…
user7537486
2
votes
1 answer

Row Background Color GtkTreeView Widget

I'm attempting to color disabled rows in a gtk tree view widget a light gray color. From what I've read, I'm supposed to set the background-gdk property of the corresponding cellrenderer and bind it to a model column. This sort of…
Mark
  • 106,305
  • 20
  • 172
  • 230
2
votes
1 answer

Freeze the first column in Treeview pygtk

I am using a pygtk application and I have added a Treeview inside a ScrolledWindow. Now I want to freeze the first column (fix the column position), so that when scrolling the Treeview horizontally the column position is fixed and still visible (as…
Siddaram H
  • 1,126
  • 12
  • 17
2
votes
2 answers

Is this possible to draw GtkTreeView listed like GtkIconView?

I am working on a GTK+ application written in python. I obviously use PyGtk. My application is about collections of videos. It's a kind of F-spot or Picasa, but for video. As you can see in these two apps, you have a central area where you can see…
boblefrag
  • 196
  • 1
  • 9