Re: TreeView - set border on individual cells

2019-04-09 Thread Eric Cashon via gtk-app-devel-list
I looked into this a little more. It looks like using an overlay is the easiest solution that I could find. You can override the render function of the cell renderer but then you will probably need all the code in the text cell renderer. This isn't too bad since the text cell renderer is modul

Re: TreeView - set border on individual cells

2019-04-06 Thread Eric Cashon via gtk-app-devel-list
I see gtk_cell_renderer_render() in the documentation and it has a cairo_t to draw with. I haven't tried to subclass from a treeview and override the rendering. Something I should probably figure out. Do you know of an example of doing something like this in C? Maybe I can put together a bette

Re: TreeView - set border on individual cells

2019-04-06 Thread Emmanuele Bassi via gtk-app-devel-list
On Sat, 6 Apr 2019 at 20:15, wrote: > The second cairo_t is used so that the rectangle can be lined up to the > cell. If I use the cairo_t in the "draw" callback then the rectangle > doesn't line up. > You're still using: 1. the wrong window to draw on 2. deprecated API 3. a slow rendering

Re: TreeView - set border on individual cells

2019-04-06 Thread Eric Cashon via gtk-app-devel-list
Hi Emmanuele, The second cairo_t is used so that the rectangle can be lined up to the cell. If I use the cairo_t in the "draw" callback then the rectangle doesn't line up. Eric ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https:

Re: TreeView - set border on individual cells

2019-04-06 Thread Emmanuele Bassi via gtk-app-devel-list
On Sat, 6 Apr 2019 at 19:05, Eric Cashon via gtk-app-devel-list < gtk-app-devel-list@gnome.org> wrote: > static gboolean draw_rectangle(GtkWidget *tree_view, cairo_t *cr, gpointer > data) > { > GtkTreePath *path=gtk_tree_path_new_from_indices(row_g, -1); > > g_print("Draw Rectangle %i

Re: TreeView - set border on individual cells

2019-04-06 Thread Eric Cashon via gtk-app-devel-list
Hi Mike, I gave what you said a try and it looks to work well enough. Then, how do you get a box around a selected cell. It seems to me if you let the built in renderer do it's thing and then get a cairo_t to just draw a rectangle after, it should work, right? OK, a bit of a hack but it works

Re: TreeView - set border on individual cells

2019-04-05 Thread Mike Martin via gtk-app-devel-list
On Fri, 5 Apr 2019, 12:36 Mike Martin, wrote: > Update, I worked out how to get rid of highlight > > 1 treeview->set selection mode(none) > 2 treeview->signal_connect(row_activated =>sub{ > Treeview->set_cursor_on_cell(path,column,cell,true) > } > ) > > Not exact code, but this is process that wo

Re: TreeView - set border on individual cells

2019-04-05 Thread Mike Martin
Update, I worked out how to get rid of highlight 1 treeview->set selection mode(none) 2 treeview->signal_connect(row_activated =>sub{ Treeview->set_cursor_on_cell(path,column,cell,true) } ) Not exact code, but this is process that worked for me Would still be useful if I could find out about bor

Re: TreeView - set border on individual cells

2019-04-05 Thread Tilo Villwock via gtk-app-devel-list
Am Donnerstag, den 04.04.2019, 23:04 +0100 schrieb Mike Martin via gtk- app-devel-list: > Is this possible? > > I did originally plan to have certain cells have a background colour > to > emphasize that there is a value to change. However as soon as the row > is > selected this is all wiped out by

Re: Treeview (liststore) CSS question

2019-03-22 Thread Mike Martin
Resolved my issue, turns out I needed some voodoo with properties $widgetpage{file_scroll}->set('propagate_natural_height','1'); $widgetpage{file_scroll}->set_vexpand(0); On Mon, 18 Mar 2019 at 16:01, Mike Martin wrote: > Is it possible to set different background for a treestore, with a > lis

Re: Treeview (liststore) CSS question

2019-03-21 Thread Mike Martin via gtk-app-devel-list
apologies I did resolve my issue , posted as wrong person Resolved my issue, turns out I needed some voodoo with properties $widgetpage{file_scroll}->set('propagate_natural_height','1'); $widgetpage{file_scroll}->set_vexpand(0); On Tue, 19 Mar 2019 at 18:53, wrote: > > Hi Mike, > > Have you t

Re: Treeview (liststore) CSS question

2019-03-19 Thread Eric Cashon via gtk-app-devel-list
Hi Mike, Have you tried gtk_widget_set_vexpand(tree, FALSE); on the treeview? This might work to show a different background color on the unused space of the treeview. I don't know if this is of any help but also remember that you can set individual row colors in a treeview by having a col

Re: Treeview (liststore) CSS question

2019-03-19 Thread Mike Martin via gtk-app-devel-list
Its not whether the row is empty, its whether it exists On Mon, 18 Mar 2019 at 23:25, Daniel Kasak wrote: > On Tue, Mar 19, 2019 at 3:01 AM Mike Martin via gtk-app-devel-list < > gtk-app-devel-list@gnome.org> wrote: > >> Is it possible to set different background for a treestore, with a >> lists

Re: Treeview (liststore) CSS question

2019-03-19 Thread Mike Martin
Its not whether the row is empty, its whether it exists On Mon, 18 Mar 2019 at 23:25, Daniel Kasak wrote: > On Tue, Mar 19, 2019 at 3:01 AM Mike Martin via gtk-app-devel-list < > gtk-app-devel-list@gnome.org> wrote: > >> Is it possible to set different background for a treestore, with a >> lists

Re: Treeview (liststore) CSS question

2019-03-18 Thread Daniel Kasak via gtk-app-devel-list
On Tue, Mar 19, 2019 at 3:01 AM Mike Martin via gtk-app-devel-list < gtk-app-devel-list@gnome.org> wrote: > Is it possible to set different background for a treestore, with a > liststore, for populated rows v blank area. > > ie: If I have a dynamic treeview I would like to have one background colo

Re: TreeView tooltip use immediate control

2012-02-04 Thread Stefan Salewski
On Sat, 2012-02-04 at 00:01 +0100, David Nečas wrote: > On Fri, Feb 03, 2012 at 11:36:13PM +0100, Stefan Salewski wrote: > > How can I immediately activate or deactivate tooltips for all TreeView > > widgets on user action, i.e. menu operation. > > You can enable/disable all tooltips using the "gt

Re: TreeView tooltip use immediate control

2012-02-03 Thread Stefan Salewski
On Sat, 2012-02-04 at 00:01 +0100, David Nečas wrote: > On Fri, Feb 03, 2012 at 11:36:13PM +0100, Stefan Salewski wrote: > > How can I immediately activate or deactivate tooltips for all TreeView > > widgets on user action, i.e. menu operation. > > You can enable/disable all tooltips using the "gt

Re: TreeView tooltip use immediate control

2012-02-03 Thread David Nečas
On Fri, Feb 03, 2012 at 11:36:13PM +0100, Stefan Salewski wrote: > How can I immediately activate or deactivate tooltips for all TreeView > widgets on user action, i.e. menu operation. You can enable/disable all tooltips using the "gtk-enable-tooltips" GtkSettings property. But if you want to ena

Re: treeview and scrolledwindow

2011-02-21 Thread Alexander Nagel
Am Mon, 21 Feb 2011 23:16:09 +0100 schrieb Colomban Wendling : > Le 21/02/2011 23:06, Alexander Nagel a écrit : > > Hi, > > > > i have a question about treeview. Do i need to add a treeview in a > > scrolledwindow? I always did it this way but it seems to work > > without it. Which way is the bet

Re: treeview and scrolledwindow

2011-02-21 Thread Colomban Wendling
Le 21/02/2011 23:06, Alexander Nagel a écrit : > Hi, > > i have a question about treeview. Do i need to add a treeview in a > scrolledwindow? I always did it this way but it seems to work without > it. Which way is the better one? I would like to hear your > suggestion/opinions. If you don't pack

Re: Treeview, different Cell-render per row

2010-07-10 Thread Tristan Van Berkom
On Sat, Jul 10, 2010 at 2:19 AM, Arne Pagel wrote: > Tadej Borovšak schrieb: >> >> Hi. >> >>> My other Idea was to make a new column for the GtkCellRendererToggle, and >>> just show it when needed. >>> Is it possible to hide a one of the renderer? >> >> This is how I would do this. Just add one gb

Re: Treeview, different Cell-render per row

2010-07-10 Thread Arne Pagel
Tadej Borovšak schrieb: Hi. My other Idea was to make a new column for the GtkCellRendererToggle, and just show it when needed. Is it possible to hide a one of the renderer? This is how I would do this. Just add one gboolean column to your data store and connect it to cell renderer's "visible

Re: Treeview, different Cell-render per row

2010-07-06 Thread Tadej Borovšak
Hi. > My other Idea was to make a new column for the GtkCellRendererToggle, and > just show it when needed. > Is it possible to hide a one of the renderer? This is how I would do this. Just add one gboolean column to your data store and connect it to cell renderer's "visible" property. Tadej --

Re: Treeview, start editing with any Key, not just Enter or space

2010-07-06 Thread Tadej Borovšak
Hello. You'll probably need to connect to GtkWidget::key-press-event signal and initiate editing from there using gtk_tree_view_set_cursor_on_cell() function. Tadej -- Tadej Borovšak tadeboro.blogspot.com tadeb...@gmail.com tadej.borov...@gmail.com __

Re: TreeView button

2010-01-12 Thread David Nečas
On Tue, Jan 12, 2010 at 12:04:10PM +0800, minguo niu wrote: >How can i put a regular button in a GtkTreeView ? http://mail.gnome.org/archives/gtk-app-devel-list/2009-December/msg00100.html In short: you can't. Yeti ___ gtk-app-devel-list m

Re: Treeview Row Count

2009-10-20 Thread hugo.riley
dhkuhl wrote: > > Is there a function to give the number of rows in a treeview? > I used built-in python len() function, like this: count = len(self.model) I suppose you can use it however the lists are implemented in language you are using. -- View this message in context: http://www.nabb

Re: Treeview Row Count

2009-09-24 Thread dhk
Kristian Rietveld wrote: > Also note that for *lists* (so no parent nodes, no children) a call > like gtk_tree_model_iter_n_children (model, NULL) will suffice. > > > -kris. > > On Thu, Sep 24, 2009 at 1:32 PM, Tadej Borovšak wrote: >> Hello. >> >>> Is there a function to give the number of row

Re: Treeview Row Count

2009-09-24 Thread Kristian Rietveld
Also note that for *lists* (so no parent nodes, no children) a call like gtk_tree_model_iter_n_children (model, NULL) will suffice. -kris. On Thu, Sep 24, 2009 at 1:32 PM, Tadej Borovšak wrote: > Hello. > >> Is there a function to give the number of rows in a treeview? > > You probably want to

Re: Treeview Row Count

2009-09-24 Thread Tadej Borovšak
Hello. > Is there a function to give the number of rows in a treeview? You probably want to know how many lines are in the GtkTreeModel that serves as data source for GtkTreeView. There is no simple function that would serve you this number, so you'll have to take one of the two available paths:

Re: treeview with compact indentation?

2009-08-03 Thread Allin Cottrell
On Mon, 3 Aug 2009, Allin Cottrell wrote: > I wonder if there's a way to produce a more compact layout for a > treeview with expanders? I'd like this for a case where the > treeview is in a left-hand pane, alongside stuff that the tree > represents. > > I mean, the default looks something like th

Re: Treeview CRITICAL Error

2009-04-30 Thread dhk
Carlos Pereira wrote: dhk wrote: only seems to compile when the -O (Optimization) option is present. However the options is set as -O0 (that's Dash-Oh-Zero) which should turn optimization off. I'd like to be able to compile the program without optimization, but so far this has just been an an

Re: Treeview CRITICAL Error

2009-04-27 Thread Carlos Pereira
dhk wrote: only seems to compile when the -O (Optimization) option is present. However the options is set as -O0 (that's Dash-Oh-Zero) which should turn optimization off. I'd like to be able to compile the program without optimization, but so far this has just been an annoyance. In my opinion

Re: treeview with fixed in place first row

2009-02-26 Thread Stefan Kost
Stefan Kost schrieb: > DEXTER schrieb: >> Hi there, >> >> I have a treeview and what I'd like to achieve is that the first row >> of the treeview (under the column headers) be fixed at its place so >> the scrolling won't affect it. I would use this very first row to >> filter the treeview. Attached

Re: treeview with fixed in place first row

2009-02-26 Thread Stefan Kost
DEXTER schrieb: > Hi there, > > I have a treeview and what I'd like to achieve is that the first row > of the treeview (under the column headers) be fixed at its place so > the scrolling won't affect it. I would use this very first row to > filter the treeview. Attached an image showing the what I

Re: treeview -- go back to initial state

2008-12-27 Thread Tadej Borovšak
Hello. If you need to retain your original order, the best thing is to leave the original model alone, wrap it inside GtkTreeModelSort and sort that layer model instead. See docs (there are 2 examples too): http://library.gnome.org/devel/gtk/stable/GtkTreeModelSort.html 2008/12/26 YU WU : > > de

Re: treeview path/iter to undisplayed model item

2008-09-16 Thread Dave Foster
After further testing, I've concluded it is a strange interaction between the xmms2 client lib (my application is an xmms2 client) and the glib mainloop. I found a workaround in that instead of placing items in the store directly when xmms2 tells me to, I put it in a queue for an idle function to

Re: TreeView indent-expanders style property

2008-04-04 Thread Kristian Rietveld
On Mon, Mar 24, 2008 at 03:50:29PM -0600, Jeffrey Barish wrote: > Does anyone know what the indent-expanders style property does? > > Can I use indent-expanders to achieve this effect? Is there a way to > achieve it? The point is to avoid wasting space on lines that don't > require an expander a

Re: TreeView indent-expanders style property

2008-03-24 Thread Thomas Dybdahl Ahle
I looked into that a few weeks ago. I think the style property only worked when you hid the expanders. Applicatins like pidgin then create custom cellrendeners with expanders to make up for that. On Mon, 2008-03-24 at 15:50 -0600, Jeffrey Barish wrote: > Does anyone know what the indent-expanders

Re: Treeview column width changed signal

2008-02-13 Thread Jeffrey Barish
With some trepidation about extending this wearisome thread, I thought that I would post for the benefit of the record some information about a solution that I found. It is based on a suggestion made by Kristian Rietveld in the previous incarnation of this thread (which I quoted when I resurrected

Re: Treeview column width changed signal

2008-02-12 Thread Jeffrey Barish
Gorshkov wrote: > Lack of patience, and the feeling that I was talking to a brick wall, to > be perfectly honest. I even posted all the code he  needed to  implement > the solution - and given that it was only about 20 or 30 lines total, I > wouldn't exactly call it overly complicated. The only co

Re: Treeview column width changed signal

2008-02-11 Thread Gorshkov
Scott Horowitz wrote: > On Feb 11, 2008 1:35 PM, Gorshkov <[EMAIL PROTECTED]> wrote: >> Check my first post to you - it contains ALL the code you need, period. >> I deal with exactly the same problem you have, for exactly the same >> reasons you have to. >> >> Stop trying to implement a toe pedal,

Re: Treeview column width changed signal

2008-02-11 Thread Scott Horowitz
On Feb 11, 2008 1:35 PM, Gorshkov <[EMAIL PROTECTED]> wrote: > Check my first post to you - it contains ALL the code you need, period. > I deal with exactly the same problem you have, for exactly the same > reasons you have to. > > Stop trying to implement a toe pedal, and just use the stick shift.

Re: Treeview column width changed signal

2008-02-11 Thread Gorshkov
Jeffrey Barish wrote: > As I observed previously, there are usually ways to design around > limitations of toolkits, but sometimes they are awkward. In my case, the > TreeView in question is instantiated in class A. Class A is instantiated > in class B. The code that needs to know the column wid

Re: Treeview column width changed signal

2008-02-11 Thread Jeffrey Barish
As I observed previously, there are usually ways to design around limitations of toolkits, but sometimes they are awkward. In my case, the TreeView in question is instantiated in class A. Class A is instantiated in class B. The code that needs to know the column widths is in class D which is ins

Re: Treeview column width changed signal

2008-02-11 Thread Dave Howorth
Jeffrey Barish wrote: > Gorshkov wrote: > >> You don't have to set the widths again every time you show them. When >> the TreeView becomes hidden/not hidden or visible/not visible, it will >> have the same properties and values it had the last time it was visible. >> The ONLY time you have set tho

Re: Treeview column width changed signal

2008-02-09 Thread Gorshkov
Jeffrey Barish wrote: > Gorshkov wrote: > >> You don't have to set the widths again every time you show them. When >> the TreeView becomes hidden/not hidden or visible/not visible, it will >> have the same properties and values it had the last time it was visible. >> The ONLY time you have set tho

Re: Treeview column width changed signal

2008-02-09 Thread Jeffrey Barish
Gorshkov wrote: > You don't have to set the widths again every time you show them. When > the TreeView becomes hidden/not hidden or visible/not visible, it will > have the same properties and values it had the last time it was visible. > The ONLY time you have set those values is when you display/

Re: Treeview column width changed signal

2008-02-09 Thread Gorshkov
Jeffrey Barish wrote: > Gorshkov wrote: > >> I do this exact thing in an application I'm developing now. But I only >> do it in one place - a callback routine that is called for both the >> delete and destroy events. > > Thank you for your suggestions. > > I don't get a delete, destroy, or

Re: Treeview column width changed signal

2008-02-09 Thread Jeffrey Barish
Gorshkov wrote: > I do this exact thing in an application I'm developing now. But I only > do it in one place - a callback routine that is called for both the > delete and destroy events. Thank you for your suggestions. I don't get a delete, destroy, or even a hide signal when the treeview disap

Re: Treeview column width changed signal

2008-02-09 Thread Gorshkov
Jeffrey Barish wrote: > Kristian Rietveld wrote: > > The problem with your first suggestion is that I have to hook every > situation in which the tree view can be destroyed. The obvious one is when > I change data sets. Exiting the program is another. There will be others > when I implement more

Re: Treeview column width changed signal

2008-02-08 Thread Jeffrey Barish
Kristian Rietveld wrote: > If just saving the column widths of the tree view when the tree view is > destroyed is not enough, the easiest way to do this is probably to > connect to the "notify::width" signal on each column. Remember to keep > the callback fast (do not write to files, etc) as your

Re: TreeView scrolling and threads

2007-11-02 Thread Michael Lamothe
Did your thread modify any GTK UI? Sometimes you can just get lucky, Thanks, Michael On 03/11/2007, Yura <[EMAIL PROTECTED]> wrote: > > Michael Lamothe wrote: > > Hi Yura, > > > > Look at the new gdk_threads_add_timeout() instead of creating a > > thread. If you're not familiar with the thread

Re: Treeview column width changed signal

2007-10-10 Thread Jeffrey Barish
Kristian Rietveld wrote: > If just saving the column widths of the tree view when the tree view is > destroyed is not enough, the easiest way to do this is probably to > connect to the "notify::width" signal on each column.  Remember to keep > the callback fast (do not write to files, etc) as your

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: TreeView in ScrolledWindow

2007-09-14 Thread q.
> On Fri, 14 Sep 2007, yetist wrote: > > Maybe you should use gtk_scrolled_window_add_with_viewport to add the > view into scrollwindow. like this: > gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrolled_window), > view); > > 2007/9/14, q. <[EMAIL PROTECTED]>: > > > > Hello ppl, > > >

Re: TreeView in ScrolledWindow

2007-09-14 Thread yetist
Maybe you should use gtk_scrolled_window_add_with_viewport to add the view into scrollwindow. like this: gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrolled_window), view); 2007/9/14, q. <[EMAIL PROTECTED]>: > > Hello ppl, > > I have a treeview that works and displays correctly, bu

Re: treeview: seg fault When Collapsing a Row Containg a Selected Item

2007-06-18 Thread Marshall Lake
>>> I have a treeview/treestore containing many top-level rows. Each >>> top-level row contains many children. The treeview works fine except >>> for one thing. If the user expands a top-level row, selects a child, >>> and then collapses that row the program seg faults with the console >>>

Re: treeview: seg fault When Collapsing a Row Containg a Selected Item

2007-06-18 Thread James Scott Jr
On Sun, 2007-06-17 at 09:37 -0400, Marshall Lake wrote: > >> I have a treeview/treestore containing many top-level rows. Each > >> top-level row contains many children. The treeview works fine except > >> for one thing. If the user expands a top-level row, selects a child, > >> and then col

Re: treeview: seg fault When Collapsing a Row Containg a Selected Item

2007-06-17 Thread Marshall Lake
>> I have a treeview/treestore containing many top-level rows. Each >> top-level row contains many children. The treeview works fine except >> for one thing. If the user expands a top-level row, selects a child, >> and then collapses that row the program seg faults with the console >> error

Re: treeview: seg fault When Collapsing a Row Containg a Selected Item

2007-06-16 Thread James Scott Jr
On Sat, 2007-06-16 at 12:15 -0400, Marshall Lake wrote: > I have a treeview/treestore containing many top-level rows. Each > top-level row contains many children. The treeview works fine except for > one thing. If the user expands a top-level row, selects a child, and then > collapses that

Re: Treeview doesnt refresh upon reopenning window

2007-04-23 Thread JAMES SCOTT
- Original Message From: Jason Brisbane <[EMAIL PROTECTED]> To: JAMES SCOTT <[EMAIL PROTECTED]> Sent: Monday, April 23, 2007 11:12:49 AM Subject: Re: Treeview doesnt refresh upon reopenning window HI, Just a few issues I have been having with that: - gtk_widget_destroy d

Re: Treeview doesnt refresh upon reopenning window

2007-04-23 Thread JAMES SCOTT
- Original Message From: Jason Brisbane <[EMAIL PROTECTED]> To: Glade-Users <[EMAIL PROTECTED]>; Glade App-Devel-List Sent: Monday, April 23, 2007 10:14:50 AM Subject: Treeview doesnt refresh upon reopenning window Hello All, I am looking for a fix for a Treeview issue that I am havi

Re: Treeview doesnt refresh upon reopenning window - Take2

2007-04-23 Thread Jason Brisbane
OOPS: Synaptic tells me I am running the following versions: libgtk2.0-dev Version 2.10.6-0ubuntu3.1 libgtk2.0-common Version 2.10.6-0ubuntu3.1 libgtk2.0-bin Version 2.10.6-0ubuntu3.1 Glade-common Version 2.12.1-5ubuntu2 Ubuntu 6.10 Edgy Eft Thanks. -- Regards, Jason Brisbane ___

Re: Treeview editable still broken, please help

2007-01-25 Thread Allin Cottrell
On Thu, 25 Jan 2007, Juan Pablo wrote: > Hello, i'm developing using ubuntu ( gtk-config --version = > 1.2.10) and still have the problem. gtk-config --version = 1.2.10 ?? Is this a version of ubuntu from the time the ancestral population left Africa? If you're really using gtk 1.2.10 then

Re: TreeView to build a table?

2006-12-12 Thread Enrico Tröger
On Tue, 12 Dec 2006 16:35:55 +0300, Eugene Zagidullin <[EMAIL PROTECTED]> wrote: > On Tue, 12 Dec 2006 14:27:12 +0100 > Enrico Tröger <[EMAIL PROTECTED]> wrote: > > ET> Can't find the mentioned the icon view. Can you give me a pointer? > > Somewhere in > > gqview-2.1.5/src/view_file_icon.c > > Als

Re: TreeView to build a table?

2006-12-12 Thread Eugene Zagidullin
On Tue, 12 Dec 2006 14:27:12 +0100 Enrico Tröger <[EMAIL PROTECTED]> wrote: ET> Can't find the mentioned the icon view. Can you give me a pointer? Somewhere in gqview-2.1.5/src/view_file_icon.c Also look at cellrenderericon.c (custom sell renderer) -- Best regards, Eugene

Re: TreeView to build a table?

2006-12-12 Thread Enrico Tröger
On Tue, 12 Dec 2006 10:23:00 +0300, Eugene Zagidullin <[EMAIL PROTECTED]> wrote: > On Mon, 11 Dec 2006 23:38:57 +0100 > Enrico Tröger <[EMAIL PROTECTED]> wrote: > > ET> Is there any way to select single cells? > ET> Or should I use another widget? I thought of a GtkTable and fill > ET> it with Gtk

Re: TreeView to build a table?

2006-12-11 Thread Eugene Zagidullin
On Mon, 11 Dec 2006 23:38:57 +0100 Enrico Tröger <[EMAIL PROTECTED]> wrote: ET> Is there any way to select single cells? ET> Or should I use another widget? I thought of a GtkTable and fill it ET> with GtkButtons but I assume this would heavily slow down the process of ET> realising the dialog. L

Re: Treeview with different GtkCellRenderes at each row?

2006-11-10 Thread Andrea Zagli
Il giorno ven, 10/11/2006 alle 12.02 -0200, Fabricio Rocha ha scritto: >Do you have any idea of how to create a listview in which one of > the colums uses a different GtkCellRenderer for each row? http://mail.gnome.org/archives/gtk-app-devel-list/2006-August/msg00288.html

Re: TreeView and default widget

2006-06-04 Thread Attilio Fiandrotti
David Nečas (Yeti) wrote: On Sun, Jun 04, 2006 at 12:07:17PM +0200, Attilio Fiandrotti wrote: In my interface i have a button which grabs default focus like this GTK_WIDGET_SET_FLAGS (GTK_WIDGET(my_button), GTK_CAN_DEFAULT); gtk_widget_grab_default (button) so that it gets activated when the

Re: TreeView and default widget

2006-06-04 Thread Yeti
On Sun, Jun 04, 2006 at 12:07:17PM +0200, Attilio Fiandrotti wrote: > In my interface i have a button which grabs default focus like this > > GTK_WIDGET_SET_FLAGS (GTK_WIDGET(my_button), GTK_CAN_DEFAULT); > gtk_widget_grab_default (button) > > so that it gets activated when the user presses enter

Re: treeview, gtk and mysql

2006-03-19 Thread Daniel Espinosa
2006/3/19, Juan Pablo <[EMAIL PROTECTED]>: > > rupert wrote: > > > Great idea, the documentation is a bit complicated for me, so are > > there more howtos for this(without line numbers) and with small > examples? > > > It took me a lot to get started with it, specially because the api > changed jus

Re: treeview, gtk and mysql

2006-03-19 Thread Juan Pablo
rupert wrote: > Great idea, the documentation is a bit complicated for me, so are > there more howtos for this(without line numbers) and with small examples? > It took me a lot to get started with it, specially because the api changed just when i started... je. > Also im not sure if I should use

Re: treeview, gtk and mysql

2006-03-18 Thread Daniel Espinosa
If you want you can try the libgda and libgnomedb, in www.gnome-db.org, wich is a set of providers that allow you to connect, get, edit and show data from diferent database servers like MySQL, PostgreSQL, Oracle, MS SQL Server, etc. 2006/3/18, rupert <[EMAIL PROTECTED]>: > > Hello, > > im trying t

Re: TreeView menu

2006-01-16 Thread Uzytkownik
For all which use google. This is Simple class which allow popup menus: public class TreeViewPopup : TreeView { public TreeViewPopup(Menu m) { this.m = m; } override protected bool OnButtonPressEvent(EventButton evnt) { bool ret = base.OnButto

Re: TreeView menu

2006-01-16 Thread Uzytkownik
Uzytkownik gmail.com> writes: > > Maciej Piechotka gmail.com> writes: > > > > Is it possible in gtk(I use Gtk#)? > > User click left mouse to some item and it shows menu (I don't know how this > > menu is calling in English) with some function (Add/Delete). > > How should I do it? > > I found

Re: TreeView menu

2006-01-16 Thread Uzytkownik
Maciej Piechotka gmail.com> writes: > > Is it possible in gtk(I use Gtk#)? > User click left mouse to some item and it shows menu (I don't know how this > menu is calling in English) with some function (Add/Delete). > How should I do it? I found some example on GTK reference documentation but I

Re: TreeView expander questions (again)

2005-09-01 Thread Tristan Van Berkom
Wallace Owen wrote: I'd like all the data I put in a treeview visible all the time (fully expanded). Is there a way to make new child rows in my treeview expended when the model tells the view that the row has been added, or must I call gtk_tree_view_expand_all()? Is there a way to make the exp

Re: TreeView expander questions (again)

2005-09-01 Thread Bill Medland
Since no-one appears to have replied here is my meagre help. (Sorry, but I'm new to it all too) On September 1, 2005 09:17 am, Wallace Owen wrote: > I'd like all the data I put in a treeview visible all the time > (fully expanded). Is there a way to make new child rows in my > treeview expended

Re: TreeView with CellRendererText extended as (new class) CellRendererWidget: can't see widget...

2005-08-23 Thread bus . dch
[EMAIL PROTECTED] wrote: Hello! I'm pasting a test file in below. I am trying to embed widgets in the TreeView. However, when I run the following file, I cannot see the widget. I am using: atk-1.10.1 glib-2.8.0gtkmm-2.6.4 pango-1.10.0 cairo-0.9.2 glibmm-2.6.1 libi

Re: Treeview space between columns

2005-07-28 Thread Roberto Cavada
For the sake of whom might concern, I'm reporting a possible solution I could find by reading source code into gtktreeviewcolumn.c. When a column is displayed, the calculated size takes into account the width of the focus line as well. By setting it to zero, the cells will be drawn close each oth

RE: TreeView and search

2005-07-05 Thread Freddie Unpenstein
> The ability to search through a TreeView is interesting but it may > not be obvious to the final user that he has to hit Ctrl+F and I'd > rather prefer the typeahead window to be always visible. Thus, I > would like to know if it was possible to call explicitly the search > function ? This way,

Re: Treeview columns used only for sorting

2005-06-26 Thread David Necas (Yeti)
On Sat, Jun 25, 2005 at 11:17:57PM +0300, Razvan Gavril wrote: > I'm kind of new to gtk programming and have a question about how to do a > tree view sorting. I have a treeview that displays a list of files. In that > treeview i have 2 columns: one that display the date when the file was last > mod

Re: TreeView and Pixbuf

2005-05-16 Thread Vivien Malerba
On 5/13/05, Denis <[EMAIL PROTECTED]> wrote: > how i can change pixbuf in gtk_tree_view? > -- Just change it in the model, and the tree view will automatically update itself. Vivien ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http:/

Re: treeview

2005-04-29 Thread Darren Adams
Without seeing your source code, I would guess that you meant to use the macro GTK_TREE_MODEL rather than GTK_TREE (which doesn't exist, as the compilation suggests). Also, you probably meant to use GTK_FILE_SELECTION rather than GTK_FILE_SELECETION - Darren On Fri, 2005-04-29 at 12:54 +0530,

Re: treeview

2005-04-29 Thread srinivas
hi thanks for the reply; i compiled like what u said, then i got this errors, how can i go with this. undefined reference to `GTK_FILE_SELECETION' /tmp/cctrfO3c.o(.text+0xe2):tree.c:51: undefined reference to `_' /tmp/cctrfO3c.o(.text+0x188):tree.c:62: undefined reference to `GTK_TREE' /tmp/cc

Re: treeview

2005-04-28 Thread Deekshit M
Hi, It looks like you are using gtk-1.2. Try the following command to compile gcc -Wall -g filename.c -o filename $CFLAGS `pkg-config gtk+-2.0 --cflags` `pkg-config gtk+-2.0 --libs` Thanks Deekshit M --- srinivas <[EMAIL PROTECTED]> wrote: > i compiled my pgm using > -> gcc -Wall -g filename

RE: TreeView multiple selection

2005-04-15 Thread Francois_Lefebvre
ECTED] Sent: vendredi 15 avril 2005 14:03 To: Lefebvre, Francois Cc: gtk-app-devel-list@gnome.org; [EMAIL PROTECTED] Subject: Re: TreeView multiple selection On 04/14/2005 11:01:01 AM, [EMAIL PROTECTED] wrote: > Hi all, > > I'm trying to transfer a selection between to treeviews : on is

Re: TreeView multiple selection

2005-04-15 Thread Peter Bloomfield
On 04/14/2005 11:01:01 AM, [EMAIL PROTECTED] wrote: Hi all, I'm trying to transfer a selection between to treeviews : on is an iconview the other is a treeview, both of them uses the same model. If you have a similar on_treeview_selection_changed callback, they're probably getting in each oth