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,

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

segmentation fault

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

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 c

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' > main.o(.text+0x0):/home/programs/a

Re: multiple declaration error

2005-02-09 Thread Brett Nash
Look at the two errors. Seems your program has two draw_button_clicked in it... First is in callbacks.c on line 17, the second is in callbacks.c on line 17... That is you appear to be including the file callbacks.o twice when linking. Either callbacks.c is listed twice in your sources, or

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

RE: intercept nervous button clicks...

2005-02-09 Thread Freddie Unpenstein
> 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. The problem seems to be harder than it looks since gtk > can not empty the mouse click buf

intercept nervous button clicks...

2005-02-09 Thread Felix Kater
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. The problem seems to be harder than it looks since gtk can not empty the mouse click buffer (

GtkMessageDialog without title bar

2005-02-09 Thread ALLs soft
how can I make GtkMessageDialog without title bar? thanks -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3.2.2005 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnom

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 gnome-vfs-2

RE: image problem

2005-02-09 Thread Freddie Unpenstein
> i am using an eventbox in which i have created an image widget > which displays widgets. I want to crop a part of this image now, so > i first need to select a portion of this image using the mouse. > What i need to do is to highlight or in some way show the user what > he/she has selected on th

Re: Compile Line for GnomeVFS Programs.

2005-02-09 Thread Antonio Gomes
Hi ... Go to the site http://www.debian.org/distrib/packages , section "Search the contents of packages", mark the "packages that contain files or directories whose names contain the keyword" option, and then type in the entry 'gnome.h' (or the others file mentioned above - gfileutils.h - gnome-ut

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)); gtk_tree_selecti

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, so

Re: Set number of rows in GtkTreeView

2005-02-09 Thread Tim Müller
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, sometimes ther

Re: highlighting whole line - gtktextview/buffer/tag

2005-02-09 Thread Stephen Kennedy
> > how can i highlight the whole line in GtkTextView/Buffer/Tag? http://bugzilla.gnome.org/show_bug.cgi?id=81045 Apparently this is quite easy to fix, though there has been no action on it. Which I think is a pity given how good the textview is in general. Stephen. __

Re: Set number of rows in GtkTreeView

2005-02-09 Thread Stefan Kost
OOps, right. Thats possible too using a FilteredTreeModel. That is you overlay your model with a filter that answers for each row, if it should be shown or not. Look up GtkTreeModelFilter to lean more about it. Stfan Ken Siersma schrieb: Stefan, Thanks for your reply. Maybe I wasn't clear - I do

Re: Glib and memory allocation

2005-02-09 Thread John Vetterli
Oho! If a part of the kernel, say a device driver, allocates memory in "kernel-space" and never explicitly frees it, then there would be a memory leak inside that device driver. And since the device driver is somewhat independent of the process that uses the device driver, there would be no autom

highlighting whole line - gtktextview/buffer/tag

2005-02-09 Thread m96
hi, how can i highlight the whole line in GtkTextView/Buffer/Tag? if i'm using GtkTextTag's background property it highlights only until the last character even it goes beyond new line char. and if a line doesn't contain a character it even doesn't get highlighted... i found some code in gtksour

Alpha base cell

2005-02-09 Thread Andrew Gatt
Hi, Does anyone know how to make the background of a cell in a tree view / list store a png file? I would like to be able to have an alpha channel so the main window background will still be visible (although faded) through the cells. I have been trying to use the pixmap engine in a gtkrc but can'

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 > >

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 file

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 s

Re: multiple declaration error

2005-02-09 Thread Hubert Sokolowski
> hi everyone, > > 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' > main.o(.text+0x0)

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 und

multiple declaration error

2005-02-09 Thread Aaron Yang
hi everyone, 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' main.o(.text+0x0):/home/programs/an

Re: sort list_store

2005-02-09 Thread Freddie Unpenstein
> > how to sort a list_store? > you can put a GtkTreeSortModel on top of your listmodel, and then > connect the GtkTreeView to the sort model instead of your > list_store. > beware that you have to convert any iter or path you retrieve from > the treeview from the sort model back to the list_store