Segmentation fault in creating basic app using GTK+ (with C)

2014-07-14 Thread Anoop Neem
This application is intended to convert value entered in Text entry field (in Celcius) to Farenheit in label. I was having hard time in altering the properties of two widgets (other than calling widget) in the same callback, hence created a structure 'struct mulptr' for passing two widgets. But

Re: Segmentation fault in creating basic app using GTK+ (with C)

2014-07-14 Thread David Nečas
On Tue, Jul 01, 2014 at 01:39:03AM -0700, Anoop Neem wrote: p-one = textEntry; p-two = label; Here the unititialised textEntry and label pointers are assigned to the struct fields. textEntry = gtk_entry_new(); calButton = gtk_button_new_with_label(Calculate); And

Re: Segmentation fault in creating basic app using GTK+ (with C)

2014-07-14 Thread zz
On Tuesday 01 July 2014 10:39:03 Anoop Neem wrote: Hi, try: p-two = label = gtk_label_new(a); p-one = textEntry = gtk_entry_new() hope this helps, zz ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Segmentation fault in creating basic app using GTK+ (with C)

2014-07-14 Thread Marcus Karlsson
On Tue, Jul 01, 2014 at 01:39:03AM -0700, Anoop Neem wrote: This application is intended to convert value entered in Text entry field (in Celcius) to Farenheit in label. I was having hard time in altering the properties of two widgets (other than calling widget) in the same callback, hence