Re: Help with Glade-3 and gtk.ScrolledWindow

2009-05-15 Thread Tadej Borovšak
Hello. There are two kinds of widgets when it comes to adding them in scrolled window: those that support scrolling natively and those who don't. Widgets with native scrolling ability are only four: GtkTextView, GtkTreeView, GtkIconView and GtkViewport. Those widgets should be added to scrolled w

How can I update the gdk-pixbuf raw data?

2009-05-15 Thread zzojaji
Hello, I am using gdk-pixbuf and have a problem that is: 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 "gd

GTK win32 - g_main_context_iteration during WM_WINDOWPOSCHANGED

2009-05-15 Thread jonathan david
Hello all, I set a timer that calls gtk_window_move on a popup window(*1). while the popup window is moving I move the main application window. This leads to immediate processing of WM_WINDOWPOSCHANGED message, which in turn calls g_main_context_iteration during that iteration, additional call to t

Help with Glade-3 and gtk.ScrolledWindow

2009-05-15 Thread asomers
I'm trying to use a Scrolled Window in my application, but without success. Using a TextView as the child widget works, but for any other child widget I get the following error when I run the program: scrolled-win.py:17: GtkWarning: gtk_scrolled_window_add(): cannot add non scrollable widget use

Re: Gio library on Debian Lenny

2009-05-15 Thread Richard Shann
On Fri, 2009-05-15 at 19:12 +0300, Paul Pogonyshev wrote: > Richard Shann wrote: > > Does anyone know if the gio library is working for getting files from > > the internet in the latest Debian Lenny distribution, x86? > > You probably need GVFS package. GIO itself doesn't contain any > implementa

Re: How can I update the gdk-pixbuf raw data?

2009-05-15 Thread zzojaji
Dear Andrey, Thanks alot for your guidance, but when i change the buffer data, image header is also changed, and when using "gdk_pixbuf_loader_write", an error of "unrecognized image file format" will be arised, this is because that the image format is important for the loader. is it any way

Re: Gio library on Debian Lenny

2009-05-15 Thread Paul Pogonyshev
Richard Shann wrote: > Does anyone know if the gio library is working for getting files from > the internet in the latest Debian Lenny distribution, x86? You probably need GVFS package. GIO itself doesn't contain any implementations for remote access, only interfaces and local access, AFAIK. Pau

Re: How can I update the gdk-pixbuf raw data?

2009-05-15 Thread Andrey Tsyvarev
Hello, Zahra. You can use GdkPixbufLoader for retrieve pixbuf from raw data. Code example: GdkPixbufLoader *loader = gdk_pixbuf_loader_new(); gdk_pixbuf_loader_write(loader, buffer, buffer_size, NULL); gdk_pixbuf_loader_close(loader, NULL); GdkPixbuf* pixbuf = gdk_pixbuf_copy(gdk_pixbuf_loade

Gio library on Debian Lenny

2009-05-15 Thread Richard Shann
Does anyone know if the gio library is working for getting files from the internet in the latest Debian Lenny distribution, x86? I have tried the following code: GError *err = NULL; GFile * file=g_file_new_for_uri ("http://www.rshann.plus.com/denemo.html";); GFileInputStream *stream = g_fil