Gtk+ memory management

2011-04-11 Thread Andrey Maklakov
Hello. Can you help me and answer some questions about memory management in Gtk+? Look at next function: 1 void 2 tbar_makemenu (gint button) 3 { 4 const gchar *sid; 5 GList *list = NULL; 6 7 tbar_widget.menu[button] = gtk_menu_new (); 8 if (button == SID) 9

Using GIO to get a file from a website

2011-04-11 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I have some interesting in using GIO to get a file off a website, but I would like to set the user-agent when I do this. So far I have looked a libcurl and libsoup and they both seem to be able to do that. But since GIO is part of glib, it