compile gtk with libcurl

2012-05-24 Thread Rudra Banerjee
Friends, Please check the program: #include stdio.h #include gtk/gtk.h #include gdk/gdk.h #include curl/curl.h GtkWidget *Bar; size_t my_write_func(void *ptr, size_t size, size_t nmemb, FILE *stream) { return fwrite(ptr, size, nmemb, stream); } size_t my_read_func(void *ptr, size_t size,

Re: compile gtk with libcurl

2012-05-24 Thread David Nečas
On Thu, May 24, 2012 at 10:37:01PM +0530, Rudra Banerjee wrote: $ gcc curlgtk.c -o cpan `pkg-config --cflags gtk+-2.0` `pkg-config --libs libcurl gtk+-2.0` /usr/bin/ld: /tmp/ccZN7P8Q.o: undefined reference to symbol 'g_thread_init' If you use gthread you must link with it. Simple. Use

Re: compile gtk with libcurl

2012-05-24 Thread Rudra Banerjee
Thanks ... its working! On Thu, 2012-05-24 at 19:19 +0200, David Nečas wrote: On Thu, May 24, 2012 at 10:37:01PM +0530, Rudra Banerjee wrote: $ gcc curlgtk.c -o cpan `pkg-config --cflags gtk+-2.0` `pkg-config --libs libcurl gtk+-2.0` /usr/bin/ld: /tmp/ccZN7P8Q.o: undefined reference to

Slow combo box when adding 500 rows

2012-05-24 Thread Osmo Antero
Hello, Adding rows to a combo box with a GtkListStore is immensely slow. Is it right that adding 500 rows can take upto 10 seconds and the GUI freezes? I have also tested gtk_combo_box_text_new_with_entry() and it is equally slow. Here is a complete test code based on gtk 3.0:

Re: Slow combo box when adding 500 rows

2012-05-24 Thread Michael Cronenworth
Osmo Antero wrote: Adding rows to a combo box with a GtkListStore is immensely slow. Is it right that adding 500 rows can take upto 10 seconds and the GUI freezes? I have similar hardware but with the NVIDIA driver so it only freezes for about 2 seconds on my system. [snip] What is your

Re:Re: memory lead while using Glib regexp

2012-05-24 Thread Xi Yang
That is the problem. I free once but sometimes the regex is runned twice. Thanks for a lot! At 2012-03-07 02:46:21,Nicola Fontana n...@entidi.it wrote: Il giorno Fri, 2 Mar 2012 11:00:46 +0800 (CST) Xi Yang jianding...@163.com ha scritto: Hi, everyone! I use Glib's regular expression