Re: memory leak when destroying widgets

2008-10-27 Thread Dave Foster
Hi, On Mon, Oct 27, 2008 at 4:22 PM, Jacques Le Normand <[EMAIL PROTECTED]>wrote: > >gtk_container_remove(GTK_CONTAINER(vbox),child); > Most likely I am wrong on this, but you solely do a container remove, and not a delete/free etc on something that was created with entry_new(). I'm fairly

Re: treeview path/iter to undisplayed model item

2008-09-16 Thread Dave Foster
on to pick up later. That seems to solve it atm. dave On Mon, Sep 15, 2008 at 10:30 AM, Dave Foster <[EMAIL PROTECTED]> wrote: > Hi all - > > I have a situation in my application where I'd like to do something with an > iterator/treepath that I've just added to the

treeview path/iter to undisplayed model item

2008-09-15 Thread Dave Foster
Hi all - I have a situation in my application where I'd like to do something with an iterator/treepath that I've just added to the model. Specifically, I need to do things like get_cell_area and scroll_to_row in certain instances. It seems I am unable to get valid results out of these functions

Re: can anyone explain what is this sql query?

2008-08-19 Thread Dave Foster
This seems to explain it: http://library.gnome.org/devel/libgda-4.0/unstable/GdaDataModelQuery.html#gda-data-model-query-set-modification-query dave On Mon, Aug 18, 2008 at 11:46 PM, paragasu <[EMAIL PROTECTED]> wrote: > [snip] > #define CONTENTS_DEL_SQL "DELETE FROM order_contents WHERE order_

Re: Sliding effect of widgets

2008-08-13 Thread Dave Foster
You might want to look at clutter: http://clutter-project.org/ dave On Mon, Aug 11, 2008 at 9:38 PM, dolly vittal <[EMAIL PROTECTED]> wrote: > Hi All, > > I am developing a small GTK+ application on the lines of a media player. > When a widget replaces another widget, I need to have the sliding

Re: Using g_signal_connect in class

2008-07-16 Thread Dave Foster
On Tue, Jul 15, 2008 at 6:36 AM, Gabriele Greco <[EMAIL PROTECTED]> wrote: > > static void handle_click_cbk(GtkWidget *mywidget_, MyClass *data) { > data->handle_click(); } > You can't make a callback function intended to be used by C code be inside of the C++ class. It will not be able to find

Re: How do I make a gtk2+ application "swallowable"?

2008-07-09 Thread Dave Foster
Hi - I wrote a small GTK dockapp that was a simple clock (since abandoned!). You can probably find all the info you need in the source itself which is quite small. http://code.l3ib.org/?p=.users/daf/ock.git;a=blob;f=ock.c;h=4d5b052ff31a2bb2e7205c5ff580e53d93564953;hb=HEAD the actual dock code I

Re: [Usability] UI design question

2008-07-07 Thread Dave Foster
On Sun, Jun 29, 2008 at 9:35 AM, natan yellin <[EMAIL PROTECTED]> wrote: > I'm curious by nature, so does your application already have a website? > This is something that I've always felt would be useful. > Not yet, I want to finish most of it before revealing it. I know, developing in the dark

Re: [Usability] UI design question

2008-06-16 Thread Dave Foster
Hi Matthew + Jacob - Thanks for the advice, some good stuff in here. On Mon, Jun 16, 2008 at 7:59 PM, Matthew Paul Thomas <[EMAIL PROTECTED]> wrote: > > My first thought is: That list of actions doesn't seem to include > anything that requires it to be a dialog. Could it be an ordinary window >

UI design question

2008-06-16 Thread Dave Foster
Hi, I'm crossposting to both the usability list and gtk app devel list, i hope this is ok, as I couldn't really see where my question fit in. I am designing a gtk application and I'm trying to follow the HIG, and I wanted to get some opinions on a "simple" dialog in the application. Here is a de

Re: Best practices for laying out controls

2008-05-14 Thread Dave Foster
On Tue, May 13, 2008 at 1:58 PM, <[EMAIL PROTECTED]> wrote: > I use a GtkSizeGroup to line them up. > > http://library.gnome.org/devel/gtk/stable/GtkSizeGroup.html > John, Peter - Thanks, I didn't know about this class, so far my testing has been good with it. It's a shame it can't really be us

Best practices for laying out controls

2008-05-13 Thread Dave Foster
Hi, I'm currently developing an application which has a lot of input widgets to it. After consulting the HIG [1], specifically the portion about Window Layout [2], it left me quite confused with exactly how I should implement the guidelines it suggests. I understand the importance of alignment a

Re: Not show selection of a tree view column

2007-07-26 Thread Dave Foster
On 7/26/07, Peter Clifton <[EMAIL PROTECTED]> wrote: > I love the screen-shots, but I fear doing this properly is something > which GtkTreeView can't do. > > In an application I'm working on, I would really love to use a row which > spans columns for the purpose of rendering a: > "Click here to ad

Not show selection of a tree view column

2007-07-26 Thread Dave Foster
Hi folks, Was wondering if it was possible to have a column omitted from the selection bar in a gtk treeview. I've made a custom renderer which displays a strip of an image, so you can split that image over a number of rows. It looks terrible with selection rectangles behind it, even worse with