Re: GtkTreeModelFilter and GtkTreeSortable

2007-09-30 Thread Matí­as Alejandro Torres
Kristian Rietveld escribió: > To the constructor of gtk.TreeModelSort you want to pass in self.filter > as child model. Then set the resulting "sort model" as model to show in > the tree view. > Okey, I'll do that. I should have seen that before :-[ . Thanks for the help! _

Re: GtkTreeModelFilter and GtkTreeSortable

2007-09-30 Thread Kristian Rietveld
On Sat, Sep 29, 2007 at 01:14:56PM -0300, Mat??as Alejandro Torres wrote: > Thank you both for your reply. > > I'm working on python, and I can't find functions to add the sortable > functions to an instance of a GtkTreeModel. > > /* This one receives the model and update the GUI */ > def set_mo

Re: GtkTreeModelFilter and GtkTreeSortable

2007-09-30 Thread Kristian Rietveld
On Fri, Sep 28, 2007 at 11:49:50PM -0300, Mat??as Alejandro Torres wrote: > Is someone implementing this interface in the GtkTreeModelFilter? I've > checked in Gtk 2.12 docs and I THINK this isn't implemented yet. If > somemone can confirm this, I would appreciate it. The GtkTreeModelFilter is n

Re: Treeview column width changed signal

2007-09-30 Thread Kristian Rietveld
On Tue, Sep 25, 2007 at 05:45:51PM -0600, Jeffrey Barish wrote: > Is there a way to be notified when the width of a column in a treeview > changes? I would like to record the new column widths so that I can set > them to the same values the next time the window opens. The only signal in > TreeVie

Re: Spontaneous background colors in treeview

2007-09-30 Thread Kristian Rietveld
On Sun, Sep 30, 2007 at 11:08:05AM -0600, Jeffrey Barish wrote: > After making some changes to my program (not directly related to the GUI), I > find that one treeview has a background of alternating light and dark > bands, but only for certain data sets. I never set the background in my > code, s

Re: 16 bits grayscale images

2007-09-30 Thread Michael L Torrie
alex wrote: > Actually I am porting a Windows .NET software to GTK. > So some procedure I use (as false color convertion) is written. I will > use it as is because it's not depending on GTK or else... Are you porting it to GTK# and C# then? > > Anyway... > First I create a color structure wich d

Re: GtkNotebookPage

2007-09-30 Thread James Scott Jr
On Sun, 2007-09-30 at 10:07 -0400, dhk wrote: > I have a notebook with a treeview on each page. I'm trying to reference > a treeview on a notebook tab when it is clicked and compare it to > another treeview on another tab; I'm using the "switch-page" signal. > The treeviews are in vbox's in the t

Re: Fast ways to draw brush outlines on a DrawingArea

2007-09-30 Thread Liam R E Quin
On Sun, 2007-09-30 at 10:56 +0100, Keith Feesh wrote: > Hello, I have been developing a drawing application for quite some time now Interesting, which one? :-) [...] > The way that I do things now includes redrawing the entire canvas every time > the mouse is moved, in order to clear the old > ou

Re: Spontaneous background colors in treeview

2007-09-30 Thread Yeti
On Sun, Sep 30, 2007 at 11:08:05AM -0600, Jeffrey Barish wrote: > After making some changes to my program (not directly related to the GUI), I > find that one treeview has a background of alternating light and dark > bands, but only for certain data sets. I never set the background in my > code, s

Spontaneous background colors in treeview

2007-09-30 Thread Jeffrey Barish
After making some changes to my program (not directly related to the GUI), I find that one treeview has a background of alternating light and dark bands, but only for certain data sets. I never set the background in my code, so I expect it to be white for every data set. The program has this beha

GtkNotebookPage

2007-09-30 Thread dhk
I have a notebook with a treeview on each page. I'm trying to reference a treeview on a notebook tab when it is clicked and compare it to another treeview on another tab; I'm using the "switch-page" signal. The treeviews are in vbox's in the tabs and I can't seem to get to the one on the tab that

Re: Fast ways to draw brush outlines on a DrawingArea

2007-09-30 Thread jcupitt
On 9/30/07, Keith Feesh <[EMAIL PROTECTED]> wrote: > The way that I do things now includes redrawing the entire canvas every time > the mouse is moved, in order to clear the old > outline's drawing, and then to redraw the outline once again. This brings my > system to it's knees and I figure there

Re: Fast ways to draw brush outlines on a DrawingArea

2007-09-30 Thread Jonathan Winterflood
Well actually it depends. when you move the cursor you just blit the buffer with no cursor to the topmost buffer, and repaint the cursor. Bliting the buffer should be quite fast, so if your image is like lots of shape objects you render every time this is many times faster. If this is analogous t

Re: Fast ways to draw brush outlines on a DrawingArea

2007-09-30 Thread Jonathan Winterflood
There is indeed a method. One would probably call it double buffering (anthough when you're done with your program you might have moe like quad buffering... The idea is to render everything in layers: bottom layer = your image (data, etc) above: rulers, marks, selection box, etc (semi-static stu

Fast ways to draw brush outlines on a DrawingArea

2007-09-30 Thread Keith Feesh
Hello, I have been developing a drawing application for quite some time now and I have implemented an outline system which shows where your next drawing operation will go (just load up the gimp, go on the paintbrush tool and select a size 11 brush if you don't quite get what I mean). The way that