How to use 'gdk_pixbuf_get_from_drawable'

2008-03-19 Thread ying lcs
Hi, I am trying to use 'gdk_pixbuf_get_from_drawable' to capture screen shot from a gdk window. Can you please tell me if I need to grab a semphore lock for the window (so that nothing is being painted) before I call that function gdk_pixbuf_get_from_drawable() to capture the pixbuf? Thank you.

GtkEvent Times

2008-03-19 Thread natan yellin
Hello, I'm using xembed in my application, and I'm trying to move the gtksocket's window when the gtkplug recieves a mouse press. The event data is sent over DBUS. The code for the plug looks like this: def button_press (self, widget, event): self.__iface.button_press(None, event.button, ev

Re: Size Requesition of User Defined Widget

2008-03-19 Thread Andreas Stricker
Markus Müller schrieb: > Debugging shows that the error occours when switching from View2 to View1: > The Requisition of View2 > changes at this moment (!?) to x=17110 and y=17106 and the window tries of > course to match these > values when changing to View2. If I understand, you work with a fi

How does one overlay one image on top of another ?

2008-03-19 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I found gdk_draw_drawable(), but don't really understand GdkDrawables. I'd REALLY like to draw an image on a "different layer" such that I can move/remove it w/o having to redraw the original. Failing that, I'll settle for learning how to ov

how to create tray icon using gtk 2.8.20 version

2008-03-19 Thread praveenya kumar
Hai! I want to create a tray icon with a popup menu on click. I wrote a program using GtkStatusIcon which worked well. The same program is giving compilation error saying GtkStatusIcon undeclared. I found that Gtk 2.10 (fc 8) supports GtkStatusIcon, but not Gtk 2.8.20 (fc 5). My system has Gtk 2.

Gtktextview: sharing text tags

2008-03-19 Thread Carlos Pereira
Hi, Is it possible to share text tags between different GtkTextviews? Is it worth the increase in complexity? My Help dialogs are notebooks, each page has a GtkTextview, covering a different topic, but the styles are the same Thanks, Carlos ___ gtk-app-

Updating progress bar-threading related problem

2008-03-19 Thread vijayasarathy
Dear All, I have raised this issue before, but havent been able to use them to make a solution myself, and so I am floating it again: I am developing a GTK interface for my program with the glade development environment. I am looking for the following: I have a main window, which calls another

Re: Can the GtkFileChooser be customized ?

2008-03-19 Thread Emmanuele Bassi
On Wed, 2008-03-19 at 09:10 +0800, Gregory Hosler wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi all, > > Is it possible to change the default gtk_file_chooser UI so that: > > - an extra column is displayed, specifically the file's size ? no, unless you manually patch th