Re: A few drawing questions

2007-02-20 Thread Andreas Stricker
Mark A. Nicolosi wrote: > Hi, I'm working on a game and I was wondering what would be best to use for > drawing? I'm having a hard time figuring out how all the different drawing > APIs fit together. As far as I can tell there is GDK, Cairo, GnomeCanvas > (dead?), and other things like GooCanvas. E

How to capture keystrokes when GTK menu is open?

2007-02-20 Thread Justin Clift
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I've been spending a bunch of time writing a gui application to create learning software for applications. (i.e. tutorials for Firefox, OOo, any other app you can think of) One of the core things this kind of application does is take screenshots

Re: gdk_window_at_pointer and foreign windows

2007-02-20 Thread Kevin O'Riordan
>No. > >How big a problem is this? What are you actually trying to do here? > >Ed Hi Ed, Thanks for the reply. I was helping someone look at a problem they were having with embedding a native application in the Eclipse framework on Linux/GTK. It works fine for the most part (using GtkSocket to r

gtk-charset questions

2007-02-20 Thread rk-list
hi, I've got a few questions about which charset gtk uses. i.e. string = entry.get_text() returns a string, and I would like to know the charset of the string: - which charset does "string" use? is this locale-dependent? does it also depend on something else? - is this the same in C/gtk and

Fwd: A few drawing questions

2007-02-20 Thread Mark A. Nicolosi
Sorry Andreas, I didn't mean to not send this to the list. -- Forwarded message -- From: Andreas Stricker <[EMAIL PROTECTED]> Date: Feb 20, 2007 5:48 AM Subject: Re: A few drawing questions To: "Mark A. Nicolosi" <[EMAIL PROTECTED]> > Thanks for replying. > > I'd rather not have t

Re: gtk-charset questions

2007-02-20 Thread Ed Catmur
On Tue, 2007-02-20 at 13:31 +0100, [EMAIL PROTECTED] wrote: > hi, > > I've got a few questions about which charset gtk uses. > i.e. string = entry.get_text() returns a string, and I would like > to know the charset of the string: > > - which charset does "string" use? > is this locale-dependent

Re: A few drawing questions

2007-02-20 Thread Jim George
Correct me if I'm wrong, but if you're using GDK, I think you should use pixmaps instead of GdkPixBufs. The docs say that pixbufs are client-side, while pixmaps are server side, so redrawing a pixbuf will be more expensive. I also take this to mean that it's possible for an X server to store a pixm

Re: gdk_window_at_pointer and foreign windows

2007-02-20 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 20 Feb 2007 11:37:59 + Kevin O'Riordan wrote: > Thanks for the reply. I was helping someone look at a problem they > were having with embedding a native application in the Eclipse > framework on Linux/GTK. It works fine for the most part (

Re: gdk_window_at_pointer and foreign windows

2007-02-20 Thread Kevin O'Riordan
On 2/20/07, Brian J. Tarricone <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Tue, 20 Feb 2007 11:37:59 + Kevin O'Riordan wrote: > > > Thanks for the reply. I was helping someone look at a problem they > > were having with embedding a native application in t

Re: How to capture keystrokes when GTK menu is open?

2007-02-20 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 20 Feb 2007 22:34:38 +1100 Justin Clift wrote: > Whenever any gtk program has it's menu open, keystrokes don't seem to > be processed for anything other than what's in the menu itself. i.e. > the up, down, and enter keys work (and maybe short

Re: How to capture keystrokes when GTK menu is open?

2007-02-20 Thread Yeti
On Tue, Feb 20, 2007 at 10:30:08AM -0800, Brian J. Tarricone wrote: > On Tue, 20 Feb 2007 22:34:38 +1100 Justin Clift wrote: > > Whenever any gtk program has its menu open, keystrokes don't seem to > > be processed for anything other than what's in the menu itself. i.e. > > the up, down, and enter

Re: How to capture keystrokes when GTK menu is open?

2007-02-20 Thread Tristan Van Berkom
On Tue, 2007-02-20 at 20:10 +0100, David Nečas (Yeti) wrote: > On Tue, Feb 20, 2007 at 10:30:08AM -0800, Brian J. Tarricone wrote: > > On Tue, 20 Feb 2007 22:34:38 +1100 Justin Clift wrote: > > > Whenever any gtk program has its menu open, keystrokes don't seem to > > > be processed for anything ot

Re: How to capture keystrokes when GTK menu is open?

2007-02-20 Thread Yeti
On Tue, Feb 20, 2007 at 02:25:34PM -0500, Tristan Van Berkom wrote: > if your app has a specific need to > trap a key when a popup menu is active - is there any reason > why using a keyboard snooper wouldnt work ? IIUC the displayer of the menu can be an arbitrary application and the program that

Re: How to capture keystrokes when GTK menu is open?

2007-02-20 Thread Justin Clift
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tristan Van Berkom wrote: > I'm not sure what you're looking for, seems normal behaviour > for menus to grab the focus when they're active (at least I'm > used to that behaviour) - if your app has a specific need to > trap a key when a popup menu is a

Re: How to capture keystrokes when GTK menu is open?

2007-02-20 Thread Justin Clift
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian J. Tarricone wrote: > Well, you can do what the Gimp's screenshot app does: allow the user to > start the screenshot process, and then have it delay a couple seconds. > So the usage could be: > > 1. Tell the app to do a screenshot in 3 seconds

Re: How to capture keystrokes when GTK menu is open?

2007-02-20 Thread Tristan Van Berkom
On Wed, 2007-02-21 at 08:27 +1100, Justin Clift wrote: [...] > Unsure if it gives keyboard events for the whole window system or not, > but I'll play with it and find out! Heh no it wont, David pointed out one way of getting at "all" keyboard events - basically you need permission from the X serve

Re: How to capture keystrokes when GTK menu is open?

2007-02-20 Thread Justin Clift
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Nečas (Yeti) wrote: >>> So, recommendations on what to do from here? Is there a way to tell >>> GTK to feed keystrokes onwards when a menu is open? >> I don't believe so, no, but someone else may have a better answer. > > I'm afraid the only w

Re: How to capture keystrokes when GTK menu is open?

2007-02-20 Thread Justin Clift
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tristan Van Berkom wrote: > On Wed, 2007-02-21 at 08:27 +1100, Justin Clift wrote: > [...] >> Unsure if it gives keyboard events for the whole window system or not, >> but I'll play with it and find out! > > Heh no it wont, David pointed out one way o

Re: How to capture keystrokes when GTK menu is open?

2007-02-20 Thread Yeti
On Wed, Feb 21, 2007 at 08:41:10AM +1100, Justin Clift wrote: > > Though, the more I think about this, I'm kind of surprised there isn't > some kind of gtk-wide configurable exception list of key's that are > passed through. Just for apps that really do need those keystrokes! As Tristan explaine

Re: How to capture keystrokes when GTK menu is open?

2007-02-20 Thread Justin Clift
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Nečas (Yeti) wrote: > On Wed, Feb 21, 2007 at 08:41:10AM +1100, Justin Clift wrote: >> Though, the more I think about this, I'm kind of surprised there isn't >> some kind of gtk-wide configurable exception list of key's that are >> passed through

GTKWindowForms first release soon...

2007-02-20 Thread Murat Sari
GtkWindowForms is lib for View-Layouting through gtk+/c++. My motivation was to write a system similar to wxAUI for gtk+ to make gtk+ more popular cause it lacks in this region. Features: + Floating/docking Views + Define ur own Views(through Factory pattern) + Save/Load V

Re: How to capture keystrokes when GTK menu is open?

2007-02-20 Thread Yeti
On Wed, Feb 21, 2007 at 08:54:05AM +1100, Justin Clift wrote: > > This is the code for xkey, a very simple X keyboard sniffer Google > turned up last weekend while trying to figure out how to get around this > problem: > > http://wiki.hping.org/135 > > That's able to receive key events... agai

Re: How to capture keystrokes when GTK menu is open?

2007-02-20 Thread Justin Clift
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Nečas (Yeti) wrote: > Add this to ServerFlags section of xorg.conf: > > Option "AllowDeactivateGrabs" "true" > > and then press Ctrl-Alt-KP_Divide when you need to get rid > of the grab. Wow, just tried this, and yep, it works perfectly. S

BGR vs. RGB in GTK/GDK

2007-02-20 Thread Mike Melanson
Hi, I have an app that has been drawing bitmaps to the screen using X11 facilities. I'm trying to convert it to use GTK/GDK. This app has always rendered bitmaps in blue-green-red (BGR) pixel order which, per my understanding, is the native order that the hardware expects. Now, I am using gdk_draw

Re: BGR vs. RGB in GTK/GDK

2007-02-20 Thread John Cupitt
Hi Mike, On 2/21/07, Mike Melanson <[EMAIL PROTECTED]> wrote: > facilities. I'm trying to convert it to use GTK/GDK. This app has always > rendered bitmaps in blue-green-red (BGR) pixel order which, per my > understanding, is the native order that the hardware expects. Now, I am > using gdk_draw_r

Re: libglade frustration redux

2007-02-20 Thread Freddie Unpenstein
> > Especially since glade is pushing the use of libglade as THE > > way to incorporate glade-produced layouts into applications, > > libglade should be packaged so as to encourage just that. Not > > make it hard for application developers to figure out how to use > > it. In any case, this is more