Hi all,

This is a question on approach as well as specific problems, it seems to
have come up several times on the list but there doesn't seem to be any
conclusive answers ...

I want to have a full screen mode for my application (so you can use
it with a data projector for presentations)

Is there a prefered way of doing this?

Looking at the code for several gnome apps (eg galeon,eog,qgview ...)
there seems to be two ways of approaching this

1) Galeon approach

Resize and move main window so that the part you want fills the screen
and the window decorations are outside the visible area. 

I would much prefer this approach as it seems less intrusive for the
user since they can still change view portals or change the stacking
order etc with their window manager

Unfortunately we don't seem to have access to the necessary functions,
galeon uses  gdk_window_get_origin(), gdk_window_get_geometry() and
gdk_window_move_resize()

Can anyone get this approach working?

2) eog, gqview

create a separate GtkWindow of type POPUP and copy the data / move the
widgets across as needed.

I've has some limited sucess with this approach: 

  * use reparent() to move the entire GnomeDock widget out of the    
GnomeApp to the full screen window ... mouse actions and the menus etc
work OK but I can't get keyboard focus to work at all. I also cannot
move the GnomeDock back to the GnomeApp successfully with reparent().

  * using libglade put a single item box in both windows say "box_full"
and "box_normal" then 
you can use reparent() to move the main widget of the application from
one window to the other. You can also move the menubar across in a
similar way. Keyboard focus will work with the main widget but not for
any menu key actions (eg cut/paste etc)

With both these approaches the GtkWindow is above all else and any
dialogs that are launched end up underneath and can't be seen.

Any ideas or suggestions on any of these problems would be greatly
appreciated.

cheers

Alexei







_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to