problem about SIGSEGV and backtrace

2007-08-05 Thread dashikugua
Hi all: I want to use SIGSEGV and backtrace to debug my programme. But I do not know how to use them. I'm running GTK 2.6.4 and Glib 2.6.4 on a Debian woody. Could you please guide me and tell where to find what I am looking for? Any help will be most appreciated. Thanks a

Problem with GdkPixbuf

2007-07-04 Thread dashikugua
Hi all: I'm using the Gtkimage and GdkPixbuf to show picture and each time I run the program I get the following error: GLib-Gobject-CRITICAL ** : g_object_unref : assertion `G_IS_OBJECT(object)` failed I'm running GTK 2.6.4 and Glib 2.6.4 on a Debian woody.Here is the code which repr

how to draw curves

2007-05-28 Thread dashikugua
Hi all: My application is using gtk to design the GUI for an Arbitrary/Function Generator. So I need to draw lots of curves, including sine wave, ramp wave, pulse wave, noise wave..and their modulation waves, e.g. the AM, FM, PM, FSK and so on. My problem is that I haven't found a good met

the button how to receive key presses

2007-05-14 Thread dashikugua
Hi all : Sorry for my English. I want to know the GtkButton how to recieve key presses event in my application. In my app, there are three GtkEntries in the left part of the window and three GtkButtons in the right. I want the buttons to receive only the specific alphabetic key (e.g. GDK_a,GDK

Gtk Curve problem

2007-05-08 Thread dashikugua
Hi all: I'm using the GtkCurce to draw line and each time I run the program I get the following error: GLib-ERROR **: gmem.c: 135: failed to allocate 4294967276 bytes aborting... I'm running GTK 2.6.4 and Glib 2.6.4 on a Debian woody.Here is the code which reproduces the problem: #inclu