How can I update the gdk-pixbuf raw data?

2009-05-14 Thread zzojaji
Hello, I am new to GTK and have a problem with gdk-pixbuf, How can I update the pixbuf raw data? There is a pixbuf constructed from an image file, I want to change raw data behind it and upload new data back to pixbuf. I am using the gdk_pIxbuf_save_to_buffer for accessing raw data,

gtk_window_parent issues

2009-05-14 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm having some real trouble with gtk_window_parent when running other some other window managers like kwin or blackbox or icewm The first call to gtk_window_reparent works, then I remove the parent so I can fullscreen the window and then after I

Re: Gtk+ problem with time-consuming threads

2009-05-14 Thread Tor Lillqvist
You can't use GTK+ from multiple threads on Windows. That is just how it is. It is a consequence of GTK+ originally being written just for X11. I always thought it was because of how the Windows event model works. Yes, exactly. That is what I mean. With its dichotomy of sending and posting of

Native file chooser dialog on Windows

2009-05-14 Thread David Cantin
Hi all, is there a plan or any activities regarding using the native file chooser on the Windows platform ? Like the print dialog does. There is already an opened bug about this : http://bugzilla.gnome.org/show_bug.cgi?id=319312 Regards, David ___

Re: Native file chooser dialog on Windows

2009-05-14 Thread Owen Taylor
On Thu, 2009-05-14 at 22:46 -0400, David Cantin wrote: Hi all, is there a plan or any activities regarding using the native file chooser on the Windows platform ? Like the print dialog does. There is already an opened bug about this : http://bugzilla.gnome.org/show_bug.cgi?id=319312 I

Re: Native file chooser dialog on Windows

2009-05-14 Thread Tim Evans
David Cantin wrote: Hi all, is there a plan or any activities regarding using the native file chooser on the Windows platform ? Like the print dialog does. There is already an opened bug about this : http://bugzilla.gnome.org/show_bug.cgi?id=319312 If you want to do it yourself, I've found

glist manipulation and reference count

2009-05-14 Thread walty
hi, I am new to GTK and is currently studying the memory management of GTK. The reference count issue has been nicely described in http://www.gtkforums.com/about2412.html However, one thing that surprised me is that, when I do g_list_append or g_list_prepend, it does not automatically add the

Re: glist manipulation and reference count

2009-05-14 Thread Brian J. Tarricone
[Note that your question is probably more appropriate for gtk-app-devel-list or gtk-list; this list is for the development *of* glib/gtk itself, not about developing apps that *use* glib/gtk.] On 05/14/2009 08:47 PM, walty wrote: However, one thing that surprised me is that, when I do

Re: glist manipulation and reference count

2009-05-14 Thread walty
Hi Brian, Thanks for the reply. I think I had some confusion here, I thought GObject is part of GLib, and apparently that's not true. The scenario is that I need to temporary update the screen, and store the old widgets on the list. So if I did not explicitly add the ref count, the objects

Re: glist manipulation and reference count

2009-05-14 Thread Tor Lillqvist
I think I had some confusion here, I thought GObject is part of GLib, and apparently that's not true. You are confusing GLib and libglib. The GLib software consists of five (shared) libraries: libglib, libgmodule, libgthread, libgobject and libgio. Sure, with hindsight, it perhaps would have

How to update Gdk-Pixbuf raw data?

2009-05-14 Thread Z.Z.
Hello, I am using gdk-pixbuf-0.22 and have a problem: How can I update the pixbuf raw data? There Is a pixbuf constructed from an Image file, I want to change raw data behind It and upload new data back to pixbuf. I am using the gdk_pIxbuf_save_to_buffer for accessing raw data, but I don't know

something like system function

2009-05-14 Thread frederico schardong
Hi, I need something like function system of stdlib.h, but I need to get the output of the command... example: gchar *returned; returned = system(pwd); and returned must be the folder of the program... Gtk, or glib have something like that? -- Abraço, Frederico Schardong, SOLIS - O lado

Re: something like system function

2009-05-14 Thread Sergei Steshenko
--- On Thu, 5/14/09, frederico schardong frede@gmail.com wrote: From: frederico schardong frede@gmail.com Subject: something like system function To: gtk-list@gnome.org Date: Thursday, May 14, 2009, 8:47 AM Hi, I need something like function system of stdlib.h, but I need to

Re: something like system function

2009-05-14 Thread Tor Lillqvist
I need something like function system of stdlib.h, but I need to get the output of the command... popen()? or g_spawn_command_line_sync(). --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Re: Why there's still ONE element left after g_slist_free () ?

2009-05-14 Thread american . communist . party
Its old hat to C programmers that you set any object to NULL when you're done with it, which returns the memory used to the heap. That's not necessary with languages that have garbage collection like Java, Python, etc. On May 13, 2009 3:56am, PenT pen...@gmail.com wrote: Thanks to Yeti,

Re: Re: Why there's still ONE element left after g_slist_free () ?

2009-05-14 Thread Tor Lillqvist
Its old hat to C programmers that you set any object to NULL when you're done with it, which returns the memory used to the heap. That's not necessary with languages that have garbage collection like Java, Python, etc. Yes and no. One could say that on the contrary, in languages with

Re: Why there's still ONE element left after g_slist_free () ?

2009-05-14 Thread Chris Moller
american.communist.pa...@gmail.com wrote: Its old hat to C programmers that you set any object to NULL when you're done with it, which returns the memory used to the heap. That's specifically /not/ true in C: You have to explicitly free allocated space--setting a pointer to null doesn't

Re: Re: Why there's still ONE element left after g_slist_free () ?

2009-05-14 Thread american . communist . party
You should quote the object of the comment ENTIRELY before commenting, shouldn't you? The actual comment by PenT does state as much: to assign NULL to it after g_slist_free ()... AFTER g_slist_free. I don't see that I was mutually exclusive in my reply. On May 14, 2009 11:51am, Chris Moller

Re: Why there's still ONE element left after g_slist_free () ?

2009-05-14 Thread Robert Pearce
On Thu, 14 May 2009 20:27:18 + american.communist.pa...@gmail.com wrote: You should quote the object of the comment ENTIRELY before commenting, shouldn't you? Nobody misquoted you, nor did they strip any of your comment out. And nobody was objecting to your comment as a result of lack of

Re: something like system function

2009-05-14 Thread Chandra Shekhar
Hi frederico, I suggest you should read about system calls available in C. Visit http://publib.boulder.ibm.com/iseries/v5r2/ic2928/index.htm?info/apis/getcwd.htmfor getting current working directory (pwd). Also visit http://www.softpanorama.org/Internals/unix_system_calls.shtml

Re: Is there anyone out there?

2009-05-14 Thread Dave Howorth
Cowley Harris wrote: I'm just pointing out that the sourceforge site has a ghost-town feel to it. And as it turns up first on a google search, it could be off-putting to people who may be migrating from Perl-Tk who are evaluating the alternatives. I think as I have new eyes I'm going to see

Re: Is there anyone out there?

2009-05-14 Thread muppet
Cowley Harris wrote: 1) Is this project still going? Doesn't seem to be much (any) emails coming through on the mailing list. That strikes me as a rather odd observation. A quick look at the mailing list archives ( http://mail.gnome.org/archives/gtk-perl-list/ ) shows a steady stream of

Re: Can't install on OSX Tiger

2009-05-14 Thread Brian McKee
On Wed, May 13, 2009 at 1:10 AM, Brian Manning elspicyj...@gmail.com wrote: On Tue, May 12, 2009 at 8:08 PM, Brian McKee brian.mc...@gmail.com wrote: I would like to install gtk2 on Tiger, but when I do so thru CPAN it fails the vast majority of the tests. The link you posted in your previous

Re: Is there anyone out there?

2009-05-14 Thread muppet
On May 14, 2009, at 5:49 PM, muppet wrote: Cowley Harris wrote: When I tried to review the archives I got a 404 error. I used the link from the Documents page, not the one on the FAQs page. Oh, dear --- looks like markmail changed the link format. Stranger -- it looks like the file

Re: Function to return Gtk2::Table

2009-05-14 Thread Ryan Niebur
can you please provide your sscce.glade file? On Fri, May 15, 2009 at 02:42:52PM +1000, Peter E Dennis wrote: Hi All, I am trying to create a function that when a button is clicked it will create a table of widgets laid out in 2 rows x 9 columns and add it to a vbox. At the moment I am

Re: Function to return Gtk2::Table

2009-05-14 Thread Peter E Dennis
can you please provide your sscce.glade file? Sure it is attached to this email. Sorry wasn't sure if the list accepted attachments or not. sscce.glade Description: application/glade ___ gtk-perl-list mailing list gtk-perl-list@gnome.org