Re: why???

2006-09-08 Thread Michael L Torrie
On Thu, 2006-09-07 at 19:35 -0700, dagang001 wrote: > #include > > typedef struct { > gchar * name; > gint shoe_size; > gint age; > } Person; > > > int main(int argc, char** argv) { > Person *fred = g_new(Person, 1); > GList *list = NULL; > > gint num,i; > gchar *mi

Re: why???

2006-09-08 Thread Dirk
dagang001 wrote: > #include > > typedef struct { > gchar * name; > gint shoe_size; > gint age; > } Person; > > > int main(int argc, char** argv) { > Person *fred = g_new(Person, 1); > GList *list = NULL; > > gint num,i; > gchar *ming[]={"aaa","bbb","ccc","ddd"}; >

Re: why???

2006-09-08 Thread Yeti
On Thu, Sep 07, 2006 at 07:35:20PM -0700, dagang001 wrote: > > #include > > typedef struct { > gchar * name; > gint shoe_size; > gint age; > } Person; > > > int main(int argc, char** argv) { > Person *fred = g_new(Person, 1); > GList *list = NULL; > > gint num,i; >

Re: why???

2006-09-08 Thread John Cupitt
Hi, On 9/8/06, dagang001 <[EMAIL PROTECTED]> wrote: > for ( i=0 ;i<4 ;i++) > { > fred->name = ming[i]; > fred->shoe_size = i+10; > fred->age=60+i; > list = g_list_append(list, fred); > } You need to make a new Person each time. At the moment you are mak

Re: why???

2006-09-08 Thread Edward Catmur
On Thu, 2006-09-07 at 19:35 -0700, dagang001 wrote: > #include > > typedef struct { > gchar * name; > gint shoe_size; > gint age; > } Person; > > > int main(int argc, char** argv) { > Person *fred = g_new(Person, 1); > GList *list = NULL; > > gint num,i; > gchar *mi

Xft XCompile Warning as "linker path does not have real file for library -lX11"

2006-09-08 Thread harshavardhanreddy mandeepala
Hi All When i try to cross compile Xft-2.1.2 for my ARM it is giving following error. I already have atk,pango.glib,Xserver,zlib in my path. xft didn't display any error while configure ,but when i try to make it is giving following error. arm-none-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I. -I.

why???

2006-09-08 Thread dagang001
#include typedef struct { gchar * name; gint shoe_size; gint age; } Person; int main(int argc, char** argv) { Person *fred = g_new(Person, 1); GList *list = NULL; gint num,i; gchar *ming[]={"aaa","bbb","ccc","ddd"}; for ( i=0 ;i<4 ;i++) { fred->na

Re: Conversion from GdkPixbuf to png

2006-09-08 Thread Lance Dillon
gdk_pixbuf_save() will save a pixbuf to png,jpg,ico,bmp http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-file-saving.html#gdk-pixbuf-save ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listin

Conversion from GdkPixbuf to png

2006-09-08 Thread Colossus
Hi, I used the search facility but I was unable to find any results. Does gdk/gtk have any function to convert a GdkPixbuf or a GtkImage to a png ? Or I have to use libpng instead ? -- Colossus Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org Xscreencast, a DE independent

Viewport out of control (most probably a layout question)

2006-09-08 Thread Thorsten Karrer
Hello everybody, I must admit that I'm a gtk noob (just started to use it yesterday) but I couldn't figure it out by myself... I try to achieve the following: I want to display a smaller part of a bigger image in a window alongside with some buttons. The image part should NOT have scrollbar

Event on attempt to insert to non-editable text

2006-09-08 Thread Vitaly Ostanin
Hello. Is there exist an event for attempt to insert text in TextBuffer at location marked as non-editable ? -- Regards, Vyt mailto: [EMAIL PROTECTED] JID: [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://m

Re: Database connection et al

2006-09-08 Thread Vivien Malerba
On 9/7/06, Andrea Zagli <[EMAIL PROTECTED]> wrote: > Il giorno gio, 07/09/2006 alle 18.55 +0530, Sucheta Ghosh ha scritto: > > Is this possible to connect gtk+ with mysql database or any other > > database? If answer is "yes" then how is this possible? > > for example www.gnome-db.org The website