Custom CellRendererToggle for Gtk Treeview

2018-09-04 Thread Reuben Rissler
I am creating a viewer for PostgreSQL databases. A boolean column may have True, False, or None. A CellRendererToggle can not display/edit these three states without heavy manipulation (in fact, impossible as far as I can tell). So I want to create a widget like PGAdmin III used. In normal

GTK TreeView change the column header color

2015-06-13 Thread Juan L. Freniche
I am trying to change the color of the column headers of a treeview, with no sucess at all. I followed the way indicated in an old post in Nov. 2003: I tried: for each column in the treeview: when defining the column, set_widget (col, label) now show the widget (i.e., the

gtk treeview selection remove highlight

2015-01-19 Thread swrangsar basumatary
Hi, How do I remove the selection highlight in gtk tree view? I want to use the GtkTreeSelection object but I do not want the highlight on the selected rows. I will be setting a different background color for them. I need to do this because some of the columns' background colors are being used as

Gtk::TreeView multiple selection with keyboard

2014-12-01 Thread Detlef Reichl
Hi, if I have the :multiple mode for Gtk::TreeView selection I can select several rows with the mouse or keyboard. But how can I activate them, like I do it for single rows with a double click of the mouse or the return key of the keyboard? Also, is it also possible to keep the current selection

Gtk TreeView emits a beep

2013-11-07 Thread raum
Hello, I'm programming a tool using Vala langage. I need to manipulate a treeview, delete an item for example. I'm trapped the release key event but for certain keys, treeview emits a beep (left or right arrow, del keys). How can I remove this beep ? CODE sample.vala

Re: GTK TreeView

2013-09-13 Thread Vivien Malerba
, Vivien On 11 September 2013 18:05, Tech Support Department t...@frontrowcomputer.com wrote: Will someone please describe a way to make text selectable for the purposes of allowing the user to copy from a GTK TreeView.? We are stumped. Thank you very much

GTK TreeView

2013-09-11 Thread Tech Support Department
Will someone please describe a way to make text selectable for the purposes of allowing the user to copy from a GTK TreeView.? We are stumped. Thank you very much. ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo

GTK+ TreeView: Different CellRenderers on the same Column

2011-10-17 Thread Stefan Salewski
I am working on a configuration file editor for an graphical application. Configuration consists of strings, numbers and boolean values. About 25 values total. I can use individual widgets for each property, but for larger quantities a listview is a more compact form. It would we nice to have

Re: GTK+ TreeView: Different CellRenderers on the same Column

2011-10-17 Thread Colomban Wendling
Le 17/10/2011 13:53, Stefan Salewski a écrit : I am working on a configuration file editor for an graphical application. Configuration consists of strings, numbers and boolean values. About 25 values total. I can use individual widgets for each property, but for larger quantities a listview

Re: GTK+ TreeView: Different CellRenderers on the same Column

2011-10-17 Thread Stefan Salewski
On Mon, 2011-10-17 at 15:11 +0200, Colomban Wendling wrote: [...] The other solution I know is to pack all CellRenderer that might be used for editing, and only make one visible/sensitive, depending on the row's value type. This is what we current use in the implementation of Geany's stash

Re: GTK TreeView control in Windows (DND issue)

2011-09-23 Thread John Emmas
Just a final footnote to this issue (hopefully):- I noticed pbor's comment in bugzilla about the inelegant use of 'dest_window' so I checked our mods and realised that we'd probably reverted too much of the function. In fact, only the first 10 lines or so need to be reverted. The remainder

Re: GTK TreeView control in Windows (DND issue)

2011-09-23 Thread Dieter Verfaillie
Hi John, Thanks for having another look at this! On Fri, 23 Sep 2011 10:20:37 +0100, John Emmas wrote: Just a final footnote to this issue (hopefully):- I noticed pbor's comment in bugzilla about the inelegant use of 'dest_window' so I checked our mods and realised that we'd probably reverted

Re: GTK TreeView control in Windows (DND issue)

2011-09-23 Thread John Emmas
On 23 Sep 2011, at 10:55, Dieter Verfaillie wrote: Hi John, Thanks for having another look at this! [...] I'll have to point out that the current proposed patch on bug #616544 [1] is more subtle than you think in that it is not a plain revert. It already does the right thing for the

Re: GTK TreeView control in Windows (DND issue)

2011-09-19 Thread Dieter Verfaillie
On 18/09/2011 13:10, John Emmas wrote: On 18 Sep 2011, at 11:54, Dieter Verfaillie wrote: Probably best to attach this to some bug report and start marking the other TreeView DnD related reports as duplicates. Then we have a bug report to show the maintainers (I think that's the preferred

Re: GTK TreeView control in Windows (DND issue)

2011-09-19 Thread Doug Blank
On Mon, Sep 19, 2011 at 2:55 PM, Dieter Verfaillie diet...@optionexplicit.be wrote: On 18/09/2011 13:10, John Emmas wrote: On 18 Sep 2011, at 11:54, Dieter Verfaillie wrote: Probably best to attach this to some bug report and start marking the other TreeView DnD related reports as

Re: GTK TreeView control in Windows (DND issue)

2011-09-19 Thread Paul Davis
On Mon, Sep 19, 2011 at 4:05 PM, Doug Blank doug.bl...@gmail.com wrote: BTW, do you think that these fixes will have any effect on Mac OSX? I am getting the same behavior there, and am hopeful that we can restore functionality there too. which behaviour? DnD on OS X with 2.24 built with the

Re: GTK TreeView control in Windows (DND issue)

2011-09-19 Thread Doug Blank
On Mon, Sep 19, 2011 at 4:10 PM, Paul Davis p...@linuxaudiosystems.com wrote: On Mon, Sep 19, 2011 at 4:05 PM, Doug Blank doug.bl...@gmail.com wrote: BTW, do you think that these fixes will have any effect on Mac OSX? I am getting the same behavior there, and am hopeful that we can restore

Re: GTK TreeView control in Windows (DND issue)

2011-09-19 Thread Paul Davis
On Mon, Sep 19, 2011 at 4:42 PM, Doug Blank doug.bl...@gmail.com wrote: On Mon, Sep 19, 2011 at 4:10 PM, Paul Davis p...@linuxaudiosystems.com wrote: On Mon, Sep 19, 2011 at 4:05 PM, Doug Blank doug.bl...@gmail.com wrote: BTW, do you think that these fixes will have any effect on Mac OSX? I

Re: GTK TreeView control in Windows (DND issue)

2011-09-19 Thread Paul Davis
On Mon, Sep 19, 2011 at 4:42 PM, Doug Blank doug.bl...@gmail.com wrote: On Mon, Sep 19, 2011 at 4:10 PM, Paul Davis p...@linuxaudiosystems.com wrote: On Mon, Sep 19, 2011 at 4:05 PM, Doug Blank doug.bl...@gmail.com wrote: BTW, do you think that these fixes will have any effect on Mac OSX? I

Re: GTK TreeView control in Windows (DND issue)

2011-09-19 Thread Doug Blank
On Mon, Sep 19, 2011 at 5:58 PM, Paul Davis p...@linuxaudiosystems.com wrote: On Mon, Sep 19, 2011 at 4:42 PM, Doug Blank doug.bl...@gmail.com wrote: On Mon, Sep 19, 2011 at 4:10 PM, Paul Davis p...@linuxaudiosystems.com wrote: On Mon, Sep 19, 2011 at 4:05 PM, Doug Blank doug.bl...@gmail.com

Re: GTK TreeView control in Windows (DND issue)

2011-09-19 Thread Doug Blank
On Mon, Sep 19, 2011 at 5:56 PM, Paul Davis p...@linuxaudiosystems.com wrote: On Mon, Sep 19, 2011 at 4:42 PM, Doug Blank doug.bl...@gmail.com wrote: On Mon, Sep 19, 2011 at 4:10 PM, Paul Davis p...@linuxaudiosystems.com wrote: On Mon, Sep 19, 2011 at 4:05 PM, Doug Blank doug.bl...@gmail.com

Re: GTK TreeView control in Windows (DND issue)

2011-09-19 Thread Paul Davis
On Mon, Sep 19, 2011 at 6:09 PM, Doug Blank doug.bl...@gmail.com wrote: On Mon, Sep 19, 2011 at 5:56 PM, Paul Davis p...@linuxaudiosystems.com wrote: On Mon, Sep 19, 2011 at 4:42 PM, Doug Blank doug.bl...@gmail.com wrote: On Mon, Sep 19, 2011 at 4:10 PM, Paul Davis p...@linuxaudiosystems.com

Re: GTK TreeView control in Windows (DND issue)

2011-09-18 Thread David Nečas
On Sat, Sep 17, 2011 at 10:25:58AM +0100, John Emmas wrote: FWIW I just tried a quick test but the address being printed doesn't seem to be the main window's address. At the moment, I'm a bit puzzled about what it might be It might be the DnD icon (or whatever) window. You can add a

Re: GTK TreeView control in Windows (DND issue)

2011-09-18 Thread Dieter Verfaillie
On 18/09/2011 01:03, Dieter Verfaillie wrote: Currently, my best guess is that the WindowFromPoint() call doesn't give us the hwnd we're supposed to get in this case (in gdkdnd-win32.c::gdk_drag_find_window_for_screen(), around line 1988 with Peter's patches applied). Digging deeper, it is

Re: GTK TreeView control in Windows (DND issue)

2011-09-18 Thread Dieter Verfaillie
On 18/09/2011 11:00, Dieter Verfaillie wrote: This does most likely does break the wip generic OLE DnD method though, but I'm not sure if we should care much about that in the 2.24 branch? Cleaned up patch fixing the above. Tested various DnD operations with testtreeview and gtk-demo. Together

Re: GTK TreeView control in Windows (DND issue)

2011-09-18 Thread John Emmas
On 18 Sep 2011, at 10:00, Dieter Verfaillie wrote: Reverting gdk_drag_find_window_for_screen to the 2.16 era logic effectively fixes treeview dnd (see attached patch). Have not yet tested if this breaks other things so this patch needs more work. Great news! The patch is quite

Re: GTK TreeView control in Windows (DND issue)

2011-09-18 Thread Dieter Verfaillie
On 18/09/2011 12:18, John Emmas wrote: On 18 Sep 2011, at 10:00, Dieter Verfaillie wrote: Reverting gdk_drag_find_window_for_screen to the 2.16 era logic effectively fixes treeview dnd (see attached patch). Have not yet tested if this breaks other things so this patch needs more work. Great

Re: GTK TreeView control in Windows (DND issue)

2011-09-18 Thread John Emmas
On 18 Sep 2011, at 11:54, Dieter Verfaillie wrote: Probably best to attach this to some bug report and start marking the other TreeView DnD related reports as duplicates. Then we have a bug report to show the maintainers (I think that's the preferred way of working) and it's shows me mean

Re: GTK TreeView control in Windows (DND issue)

2011-09-18 Thread Peter Clifton
On Sun, 2011-09-18 at 01:03 +0200, Dieter Verfaillie wrote: To clarify, I've ran GDK_DEBUG=dnd testtreeview.exe for both GTK+ versions. Looking at the output (the gdk_drag_find_window lines are the interesting bits), it seems dest_window is not yet correctly determined in 2.24. With the

Re: GTK TreeView control in Windows (DND issue)

2011-09-18 Thread Peter Clifton
On Sun, 2011-09-18 at 12:04 +0200, Dieter Verfaillie wrote: On 18/09/2011 11:00, Dieter Verfaillie wrote: This does most likely does break the wip generic OLE DnD method though, but I'm not sure if we should care much about that in the 2.24 branch? Cleaned up patch fixing the above.

Re: GTK TreeView control in Windows (DND issue)

2011-09-18 Thread Dieter Verfaillie
On 18/09/2011 13:10, John Emmas wrote: Can I leave that to you then, Dieter? It sounds like you're a bit more experienced in that area than I am. Sure. I'll start looking into it this afternoon/evening. Feel free to still drop by on irc.gnome.org though (#win32 should serve us well to prepare

Re: GTK TreeView control in Windows (DND issue)

2011-09-18 Thread John Emmas
On 18 Sep 2011, at 00:03, Dieter Verfaillie wrote: ps For future reference: GTK+ development related discussions are better done one gtk-devel-list. You'll probably attract more GTK+ developers/maintainers over there. There's also a #win32 channel on irc.gnome.org in need of being

Re: GTK TreeView control in Windows (DND issue)

2011-09-18 Thread Dieter Verfaillie
On 18/09/2011 13:39, Dieter Verfaillie wrote: On 18/09/2011 13:10, John Emmas wrote: Can I leave that to you then, Dieter? It sounds like you're a bit more experienced in that area than I am. Sure. I'll start looking into it this afternoon/evening. Well, things never seem to go the way I'd

Re: GTK TreeView control in Windows (DND issue)

2011-09-17 Thread John Emmas
Hi David, here's what I got when I added your function calls this morning. Firstly, a non-treeview test example. This example has a main window (a dialog) with two labels, one of which is the drop target. The dialog also launches a child dialog. Here's what I see when I drag one label onto

Re: GTK TreeView control in Windows (DND issue)

2011-09-17 Thread John Emmas
On 17 Sep 2011, at 09:14, John Emmas wrote: So I think this confirms that in gtk-win32, the wrong window is getting tested for a TreeView control. I suppose the quest now must be to find out which window and why. I'm guessing that in my case it might be the app's main window but I'm

Re: GTK TreeView control in Windows (DND issue)

2011-09-17 Thread John Emmas
On 17 Sep 2011, at 10:25, John Emmas wrote: FWIW I just tried a quick test but the address being printed doesn't seem to be the main window's address. At the moment, I'm a bit puzzled about what it might be I'm no closer to knowing which widget address is getting sent but I think

Re: GTK TreeView control in Windows (DND issue)

2011-09-17 Thread Peter Clifton
On Sat, 2011-09-17 at 18:49 +0100, John Emmas wrote: Have you tried the GTK patches I pointed you at here? www.clifton-electronics.com/tmp/gtk_win32_patches.tar.gz -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue,

Re: GTK TreeView control in Windows (DND issue)

2011-09-17 Thread Dieter Verfaillie
On 18/09/2011 00:21, Peter Clifton wrote: On Sat, 2011-09-17 at 18:49 +0100, John Emmas wrote: Have you tried the GTK patches I pointed you at here? www.clifton-electronics.com/tmp/gtk_win32_patches.tar.gz I've just completed testing 2.24 with your patches (good stuff, thanks!) and

Re: GTK TreeView control in Windows (DND issue)

2011-09-15 Thread John Emmas
I found out what's going wrong here. I don't quite understand why it's going wrong but i do know where it's going wrong. Do any GTK+ devs come onto this forum? If so, they might be able to chip in with some information that will help to get this fixed. Although I'm a competent programmer

Re: GTK TreeView control in Windows (DND issue)

2011-09-15 Thread Doug Blank
On Thu, Sep 15, 2011 at 8:56 AM, John Emmas john...@tiscali.co.uk wrote: I found out what's going wrong here.  I don't quite understand why it's going wrong but i do know where it's going wrong.  Do any GTK+ devs come onto this forum?  If so, they might be able to chip in with some

Re: GTK TreeView control in Windows (DND issue)

2011-09-15 Thread J. Ali Harlow
On Thursday, September 15, 2011 1:56 PM, John Emmas john...@tiscali.co.uk wrote: In gtk-win32, when 'key' == gtk-drag-dest (and the drag destination is a TreeView) 'g_datalist_id_get_data()' returns NULL. This is where my understanding of GTK comes to a halt. Obviously there's some kind of

Re: GTK TreeView control in Windows (DND issue)

2011-09-15 Thread David Nečas
On Thu, Sep 15, 2011 at 01:56:05PM +0100, John Emmas wrote: ... gtk_drag_find_widget (toplevel, data); and it's that function which invokes the callback. Inside that function, the relevant code looks like this:- if (!data-found g_object_get_data (G_OBJECT (widget), gtk-drag-dest)) {

Re: GTK TreeView control in Windows (DND issue)

2011-09-15 Thread John Emmas
Thanks for the prompt help with this, guys. I took a look at David's suggestion On 15 Sep 2011, at 14:32, David Nečas wrote: So IMO you need to go one level up and look at what ‘widget’ is and why it does not have any gtk-drag-dest data. AFAIK the data can be attached by

Re: GTK TreeView control in Windows (DND issue)

2011-09-15 Thread John Emmas
On 15 Sep 2011, at 18:35, David Nečas wrote: Could you please post the debugging code in the form of a patch so that others can easily and precisely reproduce it? That's not quite as simple as I'd hope because I'm not using a version control system (at the moment). However, the 2

Re: GTK TreeView control in Windows (DND issue)

2011-09-15 Thread John Emmas
P.S. - what'd be really interesting would be to see what gets printed on Linux. Unfortunately, I can't do this locally because on Linux, I'm using pre-built binaries. However, someone else might be able to look at that. John ___ gtk-list mailing

Re: GTK TreeView control in Windows (DND issue)

2011-09-15 Thread John Emmas
On 15 Sep 2011, at 20:04, David Nečas wrote: I can do this as I am in the opposite situation (having Gtk+ built from source on Linux but only pre-built Win32 binaries – and also no real MS Windows, just Wine). Do you want me to use a specific Gtk+ version? Okay - not sure how far you'll

Re: GTK TreeView control in Windows (DND issue)

2011-09-15 Thread David Nečas
On Thu, Sep 15, 2011 at 08:16:50PM +0100, John Emmas wrote: Okay - not sure how far you'll be able to get with only pre-built Wine binaries. I suppose you could at least let us know whether the pointer addresses on Linux look sensible though (the first printout to appear should be the correct

Re: GTK TreeView control in Windows (DND issue)

2011-09-15 Thread John Emmas
Thanks for that, Yeti. That output is very much like the output I see on Windows when using non-treeview DnD sources. Unfortunately I've got an early start at work tomorrow so it probably won't be until Saturday when I get a chance to try that in my Windows build. I'll let you know what I

Re: GTK TreeView control in Windows (DND issue)

2011-09-15 Thread Peter Clifton
On Tue, 2011-09-13 at 09:14 +0100, John Emmas wrote: I was thinking of setting aside some time to investigate this but then I noticed that gtk is now up to version 2.24. I just wondered if the problem is fixed in 2.24 - or if anyone else knows about this problem or is already working on it?

GTK TreeView control in Windows (DND issue)

2011-09-13 Thread John Emmas
Hi there, Some time ago (circa April 2010) I posted on the gtk-app-devel list about some problems I was having when trying to make drag'n'drop work with a gtk TreeView control (this was using gtk-win32). I was running gtk version 2.14 at the time. Currently I'm using version 2.20 and although

Re: GTK TreeView control in Windows (DND issue)

2011-09-13 Thread dieterv
On Tue, 13 Sep 2011 09:14:13 +0100, John Emmas wrote: I was thinking of setting aside some time to investigate this but A lot of people will thank you if you do :) then I noticed that gtk is now up to version 2.24. I just wondered if the problem is fixed in 2.24 - or if anyone else knows

Re: GTK TreeView control in Windows (DND issue)

2011-09-13 Thread John Emmas
On 13 Sep 2011, at 09:46, dieterv wrote: I'm still seeing it on 2.24 and think these bug reports are related: https://bugzilla.gnome.org/show_bug.cgi?id=641924 https://bugzilla.gnome.org/show_bug.cgi?id=652235 Thanks Dieter. I was particularly interested to read that apparently this

Re: GTK TreeView control in Windows (DND issue)

2011-09-13 Thread Doug Blank
On Tue, Sep 13, 2011 at 4:46 AM, dieterv diet...@optionexplicit.be wrote: On Tue, 13 Sep 2011 09:14:13 +0100, John Emmas wrote: I was thinking of setting aside some time to investigate this but A lot of people will thank you if you do :) More people than you could imagine. then I noticed

Re: GTK TreeView control in Windows (DND issue)

2011-09-13 Thread dieterv
On Tue, 13 Sep 2011 11:18:50 +0100, John Emmas wrote: Thanks Dieter. I was particularly interested to read that apparently this did once work. Also, the fact that it can be made to work after a fashion by using 'gtk_drag_source_set() / dest_set()' instead of the official

Re: GTK TreeView control in Windows (DND issue)

2011-09-13 Thread John Emmas
On 13 Sep 2011, at 11:59, dieterv wrote: On Tue, 13 Sep 2011 11:18:50 +0100, John Emmas wrote: Normally, 'info-context-action' would be whatever action you'd set it to (GDK_ACTION_MOVE / GDK_ACTION_COPY / GDK_ACTION_ASK etc). But by the time the code reaches that point the action data

Re: How to set the color of a row based on the data in one coloumn Gtk::Treeview

2009-08-26 Thread muppet
On Aug 19, 2009, at 5:05 PM, Ragavendar Swamisai wrote: Hi, I am trying to create a TreeView (with SimpleList) and I have a column where its value is set dynamically, and when the value in the column is set to a specific string I want to set the complete row to say RED. I am able to do that

How to set the color of a row based on the data in one coloumn Gtk::Treeview

2009-08-20 Thread Ragavendar Swamisai
Hi, I am trying to create a TreeView (with SimpleList) and I have a column where its value is set dynamically, and when the value in the column is set to a specific string I want to set the complete row to say RED. I am able to do that for a column using the 'attr' key in the SimpleList. Any

gtk treeview with first row fixed in place

2009-02-26 Thread DEXTER
Hi, Recently I wrote a mail to gtk-app-devel-list, because I have to write a code which uses a treeview widget. This widget should have a fixed first row (right below the column headers) which is not affected by scrolling and this row would be used for filtering the treeview (attached a picture

Re: gtk treeview with first row fixed in place

2009-02-26 Thread Kristian Rietveld
Hi, 2009/2/26 DEXTER mydexte...@gmail.com: Recently I wrote a mail to gtk-app-devel-list, because I have to write a code which uses a treeview widget. This widget should have a fixed first row (right below the column headers) which is not affected by scrolling and this row would be used for

Re: gtk treeview windows

2009-02-07 Thread Matthew Talbert
Oh, sorry. I assume you have verified that you don't have any heap corruption by running the code under valgrind on Linux? Other than that I really can't give any specific advice. Perhaps ask somebody else to read the code carefully. If the problem did not occur at some earlier stage, then

Re: gtk treeview windows

2009-02-07 Thread Larry Reaves
On Sat, 2009-02-07 at 14:25 -0500, Matthew Talbert wrote: Oh, sorry. I assume you have verified that you don't have any heap corruption by running the code under valgrind on Linux? Other than that I really can't give any specific advice. Perhaps ask somebody else to read the code

Re: gtk treeview windows

2009-02-06 Thread Tor Lillqvist
Not trying to be offensive, but if I could reproduce this every time, I wouldn't be asking for debugging suggestions. Oh, sorry. I assume you have verified that you don't have any heap corruption by running the code under valgrind on Linux? Other than that I really can't give any specific

gtk treeview windows

2009-02-05 Thread Matthew Talbert
Hi all, I am a developer for Xiphos (previously GnomeSword) and I'm heavily involved in our Windows port effort. Most things have gone smoothly, but one issue really has me stumped. Occasionally all of the treeviews in the application will freeze. By this I mean that they will not expand or

Re: gtk treeview windows

2009-02-05 Thread Tor Lillqvist
I would appreciate any suggestions as to how to debug this further. Write a minimal sample program that exhibits the problem, file a bug, and attach the sample program (as a single source file in C; no binaries, not zip archives, no makefiles) to the bug. -tml

Re: Inter Process DND in Gtk TreeView.

2008-04-23 Thread Paul Davis
. If yes, can any one help me in finding an example code which is implemented for inter process dnd using gtk treeview or gtk notebook widgets? i have C++ code (gtkmm) that does this same-process treeview-treeview as well as treeview-other_widget, and also other_process +widget-treeview, but i'm

Inter Process DND in Gtk TreeView.

2008-04-22 Thread Ratna Kishore
Hi, I am working on the drag and drop. Can you tell me whether Drag and Drop works fine between two tree views which belong to two different processes? If yes, can any one help me in finding an example code which is implemented for inter process dnd using gtk treeview or gtk notebook widgets

Re: Can I make a not aligned gtk treeview?

2007-12-17 Thread Mikael Hallendal
17 dec 2007 kl. 08.29 skrev Binary Chen: Hi, A TreeView will always align the columns. However, to achieve the behavior you look for you can pack two cell renderers into the same column. Cheers, Mikael Hallendal Hi, I have a gtktreeview with two column, the first one is pixbuf, the

Can I make a not aligned gtk treeview?

2007-12-16 Thread Binary Chen
Hi, I have a gtktreeview with two column, the first one is pixbuf, the second one is a string. something happen bad if in a row the first pixbuf is NULL, so it doesn't occupy any place, but in the following row there is a pixbuf and occupy some place. the default behavior of gtktreeview will

GTK treeview very slow?

2007-09-02 Thread Binary Chen
Hi, I am running GTK treeview in a slow machine, say, with a 200MHz CPU, I am using a treeview with about 20 nodes as total. When I scroll the treeview scroll bar, the image get to freeze for a while... I then try with a simpler table with 1 column, the speed is quite fast, I can aware

Adding Columns to Gtk::TreeView

2006-07-31 Thread Surya Kiran Gullapalli
Hi all,I'm writing an application, where in I need to add columns to a TreeView. But the catch is those columns will be added at the run time. The other thing is i dont know how many columns I'd be adding during run time. But I know what type of columns i'd be adding (say string/boolean/pixbuf

Re: Adding Columns to Gtk::TreeView

2006-07-31 Thread Murray Cumming
Hi all, I'm writing an application, where in I need to add columns to a TreeView. But the catch is those columns will be added at the run time. The other thing is i dont know how many columns I'd be adding during run time. But I know what type of columns i'd be adding (say

Re: Re: Adding Columns to Gtk::TreeView

2006-07-31 Thread Mark Kegel
Asssuming you have the column in hand you can add it using gtk_tree_view_insert_column. I believe that this function can be called at any time, so you shouldn't have to worry about adding columns during runtime. You'll also need to setup your model obviously for the column that you're adding.

Re: [Gtk#] TreeView.

2005-09-22 Thread Christian Neumair
Am Dienstag, den 20.09.2005, 20:05 +0200 schrieb Nicolas Cormier: I have a Treeview and I want to active the EnterNotifyEvent when a the user's cursor is on a row. I active the EnterNotifyEvent for the treeview but it works only for the entire of the widget. See [1] for a patch against

Re: [Gtk#] TreeView.

2005-09-22 Thread Nicolas Cormier
On 9/22/05, Christian Neumair [EMAIL PROTECTED] wrote: Am Dienstag, den 20.09.2005, 20:05 +0200 schrieb Nicolas Cormier: I have a Treeview and I want to active the EnterNotifyEvent when a the user's cursor is on a row. I active the EnterNotifyEvent for the treeview but it works only for

Gtk# - Treeview

2005-09-20 Thread Nicolas Cormier
Hi, I have a Treeview and I want to active the EnterNotifyEvent when a the user's cursor is on a row. I active the EnterNotifyEvent for the treeview but it works only for the entire of the widget. Thanks in advance for your help. ___ gtk-app-devel-list

Gtk treeview use with large data sources

2005-09-06 Thread Kim Adil
I have been searching for some time now to figure out how to approach using gtk treeview ( with a list model) with a sql database. I am using odbc on multiple platforms , hence gnomedb is not appropriate. Ideally the scrollwindow will behave as per using the standard list model. My questions: (1

Re: Multiple row drag and drop in a Gtk::TreeView

2005-03-02 Thread Murray Cumming
On Tue, 2005-03-01 at 17:42 -0600, Bryan Forbes wrote: I'm working on getting multiple row drag and drop working in Coaster, but I've hit a wall. I've looked into using EggTreeMultiDnd, but I'm having a hard time getting it working with Gtkmm. When I drag a row from my Gtk::TreeView, I get

Multiple row drag and drop in a Gtk::TreeView

2005-03-01 Thread Bryan Forbes
I'm working on getting multiple row drag and drop working in Coaster, but I've hit a wall. I've looked into using EggTreeMultiDnd, but I'm having a hard time getting it working with Gtkmm. When I drag a row from my Gtk::TreeView, I get this on the command-line: (test:16991): GLib-GObject

gtk Treeview tutorial

2004-11-12 Thread weo wu
HI guys: I'm a newbie in gtk+ , I have many questions about the GtkTreeView .Somebody ever told me that the Gtk+ 2.0 Tree View tutorial is usefull,but I could not visit the websit scentric.net/tutorial/treeview-tutorial. pdf which contains the tutorial (is this url is invalid?). I ever used the

Re: gtk Treeview tutorial

2004-11-12 Thread John Gill
?req=index Even if you are not using python, this tutorial and faq can be very useful to learn how to do stuff in GTK. John weo wu wrote: gtk Treeview tutorial HI guys: I'm a newbie in gtk+ , I have many questions about the GtkTreeView .Somebody ever told me that the Gtk

Re: gtk Treeview tutorial

2004-11-12 Thread Olexiy Avramchenko
weo wu wrote: HI guys: I'm a newbie in gtk+ , I have many questions about the GtkTreeView .Somebody ever told me that the Gtk+ 2.0 Tree View tutorial is usefull,but I could not visit the websit scentric.net/tutorial/treeview-tutorial. pdf which contains the tutorial (is this url is invalid?). I

Re: Gtk::TreeView performance

2004-10-21 Thread John Gill
Thanks very much indeed for this pointer, armed with this info I've speeded up the loading of my grids by a factor of 5. I had been trying: TreeViewColumn::set_fixed_width() and TreeViewColumn::set_sizing(TREE_VIEW_COLUMN_FIXED) but hadn't noticed CellRenderer::set_fixed_size(width,

Re: Gtk::TreeView performance

2004-10-20 Thread John Gill
welcome. John Igor Gorbounov wrote: Gtk::TreeView performance Hi, All! My application uses a TreeView (using ListStore model) table to present measured data once per second. This table has about 20 rows and about 40 columns. The problem is in consuming too much CPU

Re: Gtk::TreeView performance

2004-10-20 Thread Igor Gorbounov
John Gill wrote: [] My suspicion is that the treeview is calculating the layout of the renderers within the the fixed width of each column. I'm guessing if there was an option to stop it doing this (since its initial layout is more than good enough for me) that we would see a dramatic

Re: Gtk::TreeView performance

2004-10-20 Thread John Gill
Igor Gorbounov wrote: John Gill wrote: [] My suspicion is that the treeview is calculating the layout of the renderers within the the fixed width of each column. I'm guessing if there was an option to stop it doing this (since its initial layout is more than good enough for me) that we

Re: [gtkmm] Gtk::TreeView performance

2004-10-20 Thread Igor Gorbounov
David Jensen wrote: [...] try keeping a Glist of structs of GDK::Colors that matches the ListStore row:column 'color' cells. Have the row:column colors be pointers into the Glist. accessing a Glist struct is cheap, accessing a row:column is very expensive i'm afraid that i don't quite

Re: [gtkmm] Gtk::TreeView performance

2004-10-20 Thread Murray Cumming
Igor Gorbounov wrote: David Jensen wrote: try keeping a Glist of structs of GDK::Colors that matches the ListStore row:column 'color' cells. Have the row:column colors be pointers into the Glist. accessing a Glist struct is cheap, accessing a row:column is very expensive i'm afraid that

Re: [gtkmm] Gtk::TreeView performance

2004-10-20 Thread David Jensen
Igor Gorbounov wrote: Hi, All! My application uses a TreeView (using ListStore model) table to present measured data once per second. This table has about 20 rows and about 40 columns. The problem is in consuming too much CPU resources (about 14% when the table is switched on, and near 3% when

Gtk::TreeView performance

2004-10-19 Thread Igor Gorbounov
Hi, All! My application uses a TreeView (using ListStore model) table to present measured data once per second. This table has about 20 rows and about 40 columns. The problem is in consuming too much CPU resources (about 14% when the table is switched on, and near 3% when it is switched off).

Re: GTK-Treeview ( unallocate listStore )

2004-01-17 Thread Keith Sharp
On Fri, 2004-01-16 at 18:33, Chris De Maeyer wrote: On Fri, 2004-01-16 at 13:50, Brice LEROY wrote: Hello, I looking for a solution to deallocate a liststore loaded in a treeview. If you know a function to get the pointer to the gtk_list_store loaded in a treeview to delete with

GTK-Treeview ( unallocate listStore )

2004-01-16 Thread Brice LEROY
Hello, I looking for a solution to deallocate a liststore loaded in a treeview. If you know a function to get the pointer to the gtk_list_store loaded in a treeview to delete with g_free() this variable. thx - Bonjour, Je recherche une solution pour désalouer

GTK-Treeview ( unallocate listStore )

2004-01-16 Thread Brice LEROY
Hello, I looking for a solution to deallocate a liststore loaded in a treeview. If you know a function to get the pointer to the gtk_list_store loaded in a treeview to delete with g_free() this variable. thx - Bonjour, Je recherche une solution pour désalouer

Re: GTK-Treeview ( unallocate listStore )

2004-01-16 Thread Chris De Maeyer
g_object_unref (G_OBJECT (store)); On Fri, 2004-01-16 at 13:50, Brice LEROY wrote: Hello, I looking for a solution to deallocate a liststore loaded in a treeview. If you know a function to get the pointer to the gtk_list_store loaded in a treeview to delete with g_free() this

Re: GTK TreeView Column Header Colors

2003-11-20 Thread Manuel Op de Coul
Tim Evans wrote: It is possible, just not particularly obvious. What you need to do is call gtk_tree_view_column_set_widget, passing in your own label that is set to display the column title. Once the label is shown and realized, call gtk_widget_get_parent three times, which should move up

Re: GTK TreeView Column Header Colors

2003-11-20 Thread Carl B. Constantine
* Tim Evans ([EMAIL PROTECTED]) wrote: It is possible, just not particularly obvious. What you need to do is call gtk_tree_view_column_set_widget, passing in your own label that is set to display the column title. Once the label is shown and realized, call gtk_widget_get_parent three

GTK TreeView Column Header Colors

2003-11-19 Thread Mike Dailey
Is it possible to change the foreground and background color of the column header in a GTK TreeView, using a ListStore as the model? I found that I can successfully pack a widget (say, a button with a label) into the column header, and change the colors of this button/label widget, but it just

Re: GTK TreeView Column Header Colors

2003-11-19 Thread Tim Evans
Carl B. Constantine wrote: * Mike Dailey ([EMAIL PROTECTED]) wrote: Is it possible to change the foreground and background color of the column header in a GTK TreeView, using a ListStore as the model? Nope, I tried and tried. the Header lables, AFAICT, cannot be changed from the standard