Keyboard Event Focus

2008-04-09 Thread Markus Müller
Hello list,
 
i have a mplayer running in my application. Keyboard events are used to navigate
and to switch between different video sources.
When the player is in a QVGA-mode (just a quarter of the VGA-Screen) the 
keyboard strokes are registered correctly in the application, but when the video
is displayed in VGA (a small border generated by the app is still around and in
the foreground) the events are catched from the mplayer and i can´t navigate no
more. The same problem exists if i display four QVGA videos arranged in the
four quarters of the screen, every seperated by it´s own border.
FYI: The app is running on X, but without Window Manager on an ELinOS-System.
I think it´s a problem of focus, but i do not know how to get the focus on e.g. 
the border
Is there a possibility to solve this with sth like an event box?
 
Best regards
Markus
 
-
Gersys GmbH, Hans-Urmiller-Ring 46c, D-82515 Wolfratshausen, Germany
Geschaeftsfuehrer: Erwin Sterzer, HRB 137 872 Muenchen, Fon: +49(0)8171 9986-6
 
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht 
gestattet.
 
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient or have received this e-mail in error please notify 
the sender immediately and destroy this e-mail. Any unauthorised copying, 
disclosure or distribution of the material in this e-mail is strictly forbidden.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Gtkmm Printing in Ubuntu 7.10

2008-04-09 Thread Garth's KidStuff
Hi,

As covered in some earlier posts, Murry helped point me to the bug report on
Ubuntu 7.10 that showed that gtk+ printing just didn't work there.  I've
upgraded to Ubuntu 8.04 (beta), and Printing now works great for me (yay!).
BUT I'd like to distribute this app to users who are still on Ubuntu 7.10.
Is there a recommended way to solve this?  (Other than, of course, having
the Ubuntu folks upgrade gtk+ so that it's just fixed).

BTW Using the Gtkmm::PrintOperation was an absolute pleasure once I upgraded
to 8.04.  It's a nicely designed bunch of code *grin* .
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Gtk::ProgressBar doesn't work synchronously

2008-04-09 Thread Garth's KidStuff
Hi All,

I'm converting a large Windows/Mac project to run on Ubuntu, and I'm a
little stuck when trying to use a ProgressBar.  We have a cross-platform
class that assumes I can create a Progress Monitor dialog during
time-intensive tasks, and then periodically update the progress as the task
completes.

The problem that I'm having with using Gtk::ProgressBar seems to be a
fundemental one about when dialogs can actually appear in the main window.
For example, what I'd like to do is something along the lines of:

[in my main thread]
...
Start a complex task
Create a Progress Monitor dialog and show it
Update the dialog as the task progresses
Destroy the dialog


When I try this, nothing shows up *grin*.  As far as I can tell, I need to
let the run loop process so that the dialog can be shown. (i.e. if I omit
the destroy step in the above, I see the dialog as soon as I drop out of
my code in the main thread, but that's too late -- the task is already
completed)

One way to solve this is, of course, to rewrite all the places that use the
Progress Monitor so that the work is done in a thread and the main thread
can just be showing the progress bar.  I'd hesitate to try that with this
code base because of the number of places in cross-platform code that would
have to be rewritten.

Do any of you have any thoughts?

Thanks in advance!

-- 
Garth Upshaw
Garth's KidStuff
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Gtk::ProgressBar doesn't work synchronously

2008-04-09 Thread Gabriele Greco
 Start a complex task
 Create a Progress Monitor dialog and show it
 Update the dialog as the task progresses
 Destroy the dialog


Every time you update the dialog (or also more often if you can) you should
do something like:

while (gtk_events_pending())
   gtk_main_iteration();

To let GTK update the interface.

GTK runs only when you give the control to gtk_main() or if you give him
some space with gtk_main_iteration() :)

-- 
Bye,
 Gabry
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


How to add an alpha channel to Gdk::Drawable?

2008-04-09 Thread Magicloud Magiclouds
Hello,
I want to draw something (not with cairo, just gdk) then make a shape 
combine mask from it. But As I tried, there seems no alpha channel by 
default.
Could someone help me?

Thanks.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Gtkmm Printing in Ubuntu 7.10

2008-04-09 Thread Murray Cumming
On Wed, 2008-04-09 at 08:15 -0700, Garth's KidStuff wrote:
 Hi,
 
 As covered in some earlier posts, Murry helped point me to the bug report on
 Ubuntu 7.10 that showed that gtk+ printing just didn't work there.

Specifically, there is a problem with the printing API when used from
gtkmm (not with GTK+ printing in general) and Ubuntu need to take the
upstream fix.

   I've
 upgraded to Ubuntu 8.04 (beta), and Printing now works great for me (yay!).
 BUT I'd like to distribute this app to users who are still on Ubuntu 7.10.
 Is there a recommended way to solve this?  (Other than, of course, having
 the Ubuntu folks upgrade gtk+

gtkmm

  so that it's just fixed).
 
 BTW Using the Gtkmm::PrintOperation was an absolute pleasure once I upgraded
 to 8.04.  It's a nicely designed bunch of code *grin* .

You can always use the C API together with gtkmm, by using the gobj()
and Glib::wrap() functions.

-- 
[EMAIL PROTECTED]
www.murrayc.com
www.openismus.com

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list