Re: Glib and memory allocation

2005-02-09 Thread Tim Müller
On Tuesday 08 February 2005 17:19, Cristiano Ghirardi wrote: it's not clear to me what happens when memory has been allocate with g_new or g_realloc and not freed. I mean: obviously this memory remains in the user space of the process as an infamous memory leak but it seems to me that under

Re: multiple declaration error

2005-02-09 Thread Inguva Rajasekhar
does anyone know why i get the following error even though i've only declared the function once? Even though the function is declared only once, if it is defined twice then you are bound to get that error. - Check if the function draw_button_clicked() was defined twice. - Check your Makefile to

Re: Set number of rows in GtkTreeView

2005-02-09 Thread Ken Siersma
Stefan, Thanks for your reply. Maybe I wasn't clear - I don't want to add columns. I only want one column. I want to specify a number of rows to always display in my GtkTreeView widget, regardless of how many entities are in my GtkListStore. I'm using the GtkTreeView to display a list of

RE: multiple declaration error

2005-02-09 Thread Prewitt, Nathan C ERDC-ITL-MS Contractor
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Inguva Rajasekhar Sent: Wednesday, February 09, 2005 4:01 AM To: Aaron Yang Cc: [EMAIL PROTECTED]; gtk-app-devel-list@gnome.org; gtk-list@gnome.org Subject: Re: multiple declaration error does

Re: Set number of rows in GtkTreeView

2005-02-09 Thread Ken Siersma
Tim Müller wrote: On Wednesday 09 February 2005 13:56, Ken Siersma wrote: I want to specify a number of rows to always display in my GtkTreeView widget, regardless of how many entities are in my GtkListStore. I'm using the GtkTreeView to display a list of files. Sometimes there are no files,

Trouble with click - drag and GTK_SELECTION_MULTIPLE

2005-02-09 Thread Ken Siersma
Another issue with my GtkTreeView that I can't figure out: I want the user to be able to select multiple entries in my list by clicking on one entry and draggin the mouse down the list. I have: Wlist = gtk_tree_view_new(); sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(Wlist));

Re: Compile Line for GnomeVFS Programs. -- thanks

2005-02-09 Thread Tony Freeman
Thank you, Antonio: Thanks for pointing that resource out to me! I did a search for gnome.h on the unstable version and up popped: usr/include/gnome-1.0/gnome.h usr/include/libgnomeui-2.0/gnome.h So I did the compile line like this: gcc `pkg-config --cflags --libs libgnomeui-2.0

Re: GTK signals and widget destruction/disposal/finalization

2005-02-09 Thread Federico Mena Quintero
On Tue, 2005-02-08 at 20:57 -0500, Havoc Pennington wrote: - Between the time a widget is destroyed, and the time that dispose is called, is it possible for other signals to be serviced? That is, is it best to explicitly disconnect signal handlers before destroying a widget, if you

Re: multiple declaration error

2005-02-09 Thread stian
does anyone know why i get the following error even though i've only declared the function once? callbacks.o(.text+0x0): In function `draw_button_clicked': /home/programs/animation4/src/callbacks.c:17: multiple definition of `draw_button_clicked'

Re: multiple declaration error

2005-02-09 Thread John K Luebs
On Wed, Feb 09, 2005 at 08:56:20AM -0600, Prewitt, Nathan C ERDC-ITL-MS Contractor wrote: You should have a prototype for the function in a header file (callbacks.h). Then you should include the header file at the top of each file that contains code that calls the function (at least

segmentation fault

2005-02-09 Thread Aaron Yang
hi everyone, i'm trying to modify the scribble-simple to do the following: #include gtk/gtk.h #define N 50 double x[50], y[50]; static void draw_brush( GtkWidget *widget, gdoublex, gdoubley ) { GdkRectangle update_rect;

Re: intercept nervous button clicks...

2005-02-09 Thread Iago Rubio
On Thu, 2005-02-10 at 02:16, Felix Kater wrote: Hi, in my app some actions behind buttons take time, so the button is released not before the action is done. This is ok. However, I need to prevent the user from clicking other buttons in the meantime. Set the window insensitive - or the

Re: segmentation fault

2005-02-09 Thread Olexiy Avramchenko
Aaron Yang wrote: void draw_button_clicked ( void ) { 1. You're passing NULL as a parameter for timeout's callback. g_timeout_add (100, real_draw, NULL); } 2. window parameter is NULL (see above). static gint real_draw ( gpointer window ) { GtkWidget *widget; 3. Variable widget is undefined,

Future of GtkTooltips

2005-02-09 Thread Christian Neumair
Problems - in short - with the current tooltip system: - Not flexible enough (only plain text can be set) - Unable to set popup location - Exposes too many internals (GtkTooltipsData, tip_text, tip_private) without getters/setters Proposed resultions: Flexibility: - Use either GtkTextBuffer

Re: Future of GtkTooltips

2005-02-09 Thread Damon Chaplin
On Wed, 2005-02-09 at 12:23, Christian Neumair wrote: Problems - in short - with the current tooltip system: - Not flexible enough (only plain text can be set) - Unable to set popup location - Exposes too many internals (GtkTooltipsData, tip_text, tip_private) without getters/setters

can't something like gnome_help_display be integrated in gtk?

2005-02-09 Thread Kristof Vansant
http://developer.gnome.org/doc/API/2.0/libgnome/libgnome-gnome-help.html or is there a other way to open help files without having to be gnome depended? http://bugzilla.gnome.org/show_bug.cgi?id=165804 -- lupusBE (Kristof Vansant Belgium) ___

Future of Canvas on GTK+ (and probably GNOME)

2005-02-09 Thread Fabrício Barros Cabral
Hi all, I was thinking develop a program using canvas, but some facts come in my mind: 1) I've read in live.gnome.org[0] libgnomecanvas is deprecated; 2) Cairo now is a dependency of GTK+ (HEAD). I've seen here about several problems around libgnomecanvas, and you suggests to people use others