gtktreeview

How to get the height of the gtktreeview header?

I've looked in the gtk source code and the header height is private. I've tried something but it didn't work as wanted (the heightWithHeader is 1?!) Glib::RefPtr<Gdk::Window> pWindow = treeView.get_bin_window(); treeView.set_headers_visible(true); pWindow->get_size(width, heightWithHeader); treeView.set_headers_visible(false); pWindo...

How to catch clicks in a Gtk.TreeView?

I'm trying to catch a double-click event in a TreeView's empty area to create a new node. Unfortunately standard way doesn't work. I've tried attaching ButtonPressEvent to both TreeView and the ScrolledWindow in which T.V. is hosted. I don't get any callbacks to my function. How can I solve this? ...

PyGTK TreeColumns all exact duplicates

I wrote a simple PyGTK script to show some basic process information in a TreeView: import gtk import os import pwd import grp class ProcParser: """ Parses the status file of a particular process """ def __init__(self, fname): self.lines = map(lambda x: x[:-1], open(fname).readlines()) def get_by_val(self, ...

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 hierarchical TreeStore. I want to filter a multilevel TreeStore and show the results in a TreeV...

Saving GtkTreeView data when pressing a button

I have a TreeView connected to a model (a ListStore). The TreeView shows the data that is stored in the ListStore and the ListStore gets updated when the user enters data into a cell, so you could say it works fine. Except in the following case: once the user is done editing, he presses a button in order to go to the next step. If the u...