g_param_spec_*?

2003-02-02 Thread Ronald Bultje
Hey all, what's the difference between g_param_spec_boxed(), g_param_spec_param() and g_param_spec_object()? In what cases should I use which of these? And what should I use in case of a GList*? I actually expected a g_param_spec_list() or so, since there is a g_param_spec_value_array(), though

Re: g_param_spec_*?

2003-02-02 Thread Owen Taylor
On Sun, 2003-02-02 at 05:56, Ronald Bultje wrote: Hey all, what's the difference between g_param_spec_boxed(), A boxed type - basically a pointer with copy/free. See g_boxed_type_register_static. GdkRectangle, GtkSelectionData are some of the standard GTK+ boxed types.

What is cause of this error????

2003-02-02 Thread beer
Hi, I have some error about my program. It make my program terminate. Program received signal SIGSEGV, Segmentation fault.[Switching to Thread 8192 (LWP 22876)]0x420741b1 in malloc_consolidate () from /lib/i686/libc.so.6(gdb) bt#0 0x420741b1 in malloc_consolidate () from

Re: Destroying file selection

2003-02-02 Thread Owen Taylor
On Fri, 2003-01-31 at 20:28, Raymond Wan wrote: Hi all, I've created a file selection window which I want destroyed when I hit cancel. However, I don't know what I'm doing wrong as I've tried various combinations and, when I click it, I destroy everything but the window -- I've

Re: What is cause of this error??

2003-02-02 Thread Owen Taylor
On Sat, 2003-02-01 at 14:03, beer wrote: Hi, I have some error about my program. It make my program terminate. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 8192 (LWP 22876)] 0x420741b1 in malloc_consolidate () from /lib/i686/libc.so.6 (gdb) bt #0

Finding cause of Gtk-CRITICAL in gtk_destroy_widget()

2003-02-02 Thread Brenden Conte
I have a line of code that looks like so: gtk_widget_destroy(GTK_WIDGET(windowlist_entry-window)); where window is a (void *) in a struct, windowlist_entry. Whenever this line is run, i get the error: Gtk-CRITICAL **: file gtkwidget.c: line 4880 (gtk_widget_unref): assertion `GTK_IS_WIDGET

Re: Finding cause of Gtk-CRITICAL in gtk_destroy_widget()

2003-02-02 Thread Brenden Conte
forgot to mention, this is with 1.2 On Sun, 2003-02-02 at 12:49, Brenden Conte wrote: I have a line of code that looks like so: gtk_widget_destroy(GTK_WIDGET(windowlist_entry-window)); where window is a (void *) in a struct, windowlist_entry. Whenever this line is run, i get the error:

Re: Finding cause of Gtk-CRITICAL in gtk_destroy_widget()

2003-02-02 Thread Raymond Wan
Hi, I can't remember if this was valid for 1.2, but try running it with gdb with the --g-fatal-warnings flag. i.e., within gdb, do run --g-fatal-warnings your program arguments. That has helped me in the past, though I can't remember if I used it with 1.2 . Ray On 2 Feb 2003, Brenden

Re: Destroying file selection

2003-02-02 Thread Raymond Wan
Hi Owen, On 2 Feb 2003, Owen Taylor wrote: I suspect you probably got something slightly wrong in your first attempt, and then wandered off into more and more complex variants. Most straightforward thing would be along the lines of: That's an accurate assessment. :) Unfortunately,

Pango-1.2.1 released

2003-02-02 Thread Owen Taylor
Pango-1.2.1 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.2/ This release contains various minor fixes, the most interesting probably being support for certain older Arabic TrueType fonts that used to crash Pango. About Pango === Pango is a library for layout and

GTK+-2.2.1 released

2003-02-02 Thread Owen Taylor
GTK+-2.2.1 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.2/ This is a bug fix release and is source and binary compatible with previous releases in the 2.0 and 2.2 series. There are a considerable number of fixes in this release as compared to 2.2.0, especially in the areas