Re: Embeddied Video Player

2005-06-11 Thread Daniel Campos

Mplayer can be run with a parameter to tell the xid to use, that
is, you can create a window, pass its xid to mplayer, and it will
run showing the images in that window, instead of its own window.

Then you can control the process using stdout and stdin. The MoviePlayer
example from Gambas (http://gambas.sf.net ), can give you a idea, this is
a BASIC interpreter but you can easily understand its work, and it works
both with QT and GTK+ :-))

Regards,

D. Campos



Jerry Stahl escribió:


Hi,

Does any know of a movie player widget (for avi, mpeg,
etc.) that can be embedded within a GTK+ interface? 
Any examples or links would be appreciated.  Thanks in

advance.

J.S.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___

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

 



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


Re: How will cairo influence GTK's performance?

2005-07-18 Thread Daniel Campos

Pango seems to be quite slow, I agree with that...

Clemens Eisserer escribió:


Hello,

First of all please do not interpret this post as a troll post - it is
absolutly not my intention to blame anybody for the great work on gtk
or to spread FUD or whatever.
The following lines are just experiences of mine, so not valid in
general and not ment as troll stuff...

I am using GTK since a long time (both coding gtk applications and
using gtk based application) and I think GTK is a great toolkit -
however I am experiencing performance problems since GTK-2.0 and first
I thought this is just because tons of unoptimized code since so many
functions have been re-implemented.
However now we are at 2.6.? and I still do not see significant
performance improvements.

I also have seen several applications which are cross-toolkit or which
switched from gtk-1.2 to 2.x.y and they all perform better with
gtk-1.2 or the other toolkit.
The GTK2-port of SWT/Eclipse for example is the slowest port of all
swt ports (win32, mac, motif, fox, gtk2) and since mozilla switched to
gtk2 their interface is really sluggish on my Authlon-800 although I
have an 2d accerlated nvidia card.
The bug-report which (among others) mainly adresses GTK2 performance
problems is the report with the second most votes of all eclipse bugs:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=37683
They also profiled GTK and found out that for eclipse the problem
mainly lies in pango.
I already tried recompiling GTK not thread safe but it didn't help a lot :-(

I would be really interrested in helping to speed up GTK, however I am
a bit concerned wether tuning the x11 based backend does still make
sence now when GTK is switching to cairo as rendering backend. (are
there any numbers how cairo does influence gtk's performance?)
Are there any know performance problems where man-power is needed?

Thank you in advance, lg Clemens
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list

 



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


[Fwd: Re: GTK+ 2 speed]

2005-07-28 Thread Daniel Campos


--- Begin Message ---

Hi:

Based on my experience with GTK+, widgets drawing could be more slow because
all widgets are double-buffered, however, if you're not interested in 
that feature,

you can always use gtk_widget_set_double_buffered() to disable it.

Pango is very slow, and I don't know any way to improve speed. May be 
the new
Pango libraries with cairo support would help, but I'm not sure at all. 
You could

directly use Xlib font drawing.

However, not all is "slowliness" with GTK+, some operations with glib, 
and some

GTK+ widgets perform better than, for example the equivalent QT ones.

Depending on the kind of project you want to develop, you will find 
advantages or

disadvantages using GTK+.

Regards,

D. Campos


Robert Thorpe escribió:


Users of PCB are attempting to find out why parts of the GTK+ version
gPCB are slower than the Athena version.  Also, I'm beginning to write a
graphical program and deciding which widget set to use, so I'm
interested in the same issue.

To help us both, it would be useful if anyone knowledgable on this list
could answer a couple of questions: -

* Are there any general reasons why GTK is slower than other widget
libraries?
- Is it in fact slower, or is it just common mis-configurations?
- What if Pango is not extensively used?

* Also, is it true that GTK must handle many events by performing long
string comparison operations?  Does this cause a slowdown?

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

 




--- End Message ---
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Gtk screen refresh

2005-08-08 Thread Daniel Campos

Jirka Pirko escribió:


hi

i have following problem:

need to append chars to GTK_ENTRY as they are coming from serial port 
(/dev/ttyS0)
i'm reading chars, appending (gtk_entry_appent_text()) them into 
GTK_ENTRY, but i CANT SEE them. (until i press key or when i put 
cursor into GTK_ENTRY)


i think i must force gtk_main loop to loop once i recieve each char 
but i don't know how to do...


Hi:

gtk_main_iteration_do

Regards,

D. Campos



it must be easy to do this but i can't find solution in documentation.

thanks for any helping

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



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


Re: Gtk screen refresh

2005-08-08 Thread Daniel Campos
What kind of data are you placing in the GtkEntry? I mean GtkEntry can 
show only UTF-8 characters,
and I don't think the serial device uses that encoding. GtkEntry uses to 
do strange things when you
put not UFT-8 data, it seems to work but after a while it can fail, or 
may be you are freeing a string

after a call to gtk_entry_get_text, which make it fail...

Regards,

D. Campos


Jirka Pirko escribió:

look here... www.chobex.cz/entrypok.c i invalidate whole window and 
call main_loop_iteration_do - but it still dont work


Daniel Campos napsal(a):


Try to invalidate the widget so it must redraw again...



Jirka Pirko escribió:

it dont work - im calling gtk_main_iteration_do from different 
pthread than where is running gtk_main... but it makes sense... just 
for sure im not doing anything wrong...


jirka

Daniel Campos napsal(a):


Jirka Pirko escribió:


hi

i have following problem:

need to append chars to GTK_ENTRY as they are coming from serial 
port (/dev/ttyS0)
i'm reading chars, appending (gtk_entry_appent_text()) them into 
GTK_ENTRY, but i CANT SEE them. (until i press key or when i put 
cursor into GTK_ENTRY)


i think i must force gtk_main loop to loop once i recieve each 
char but i don't know how to do...






Hi:

gtk_main_iteration_do

Regards,

D. Campos



it must be easy to do this but i can't find solution in 
documentation.


thanks for any helping

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



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










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


[Fwd: Re: Gtk screen refresh]

2005-08-08 Thread Daniel Campos


--- Begin Message ---

Try to invalidate the widget so it must redraw again...



Jirka Pirko escribió:

it dont work - im calling gtk_main_iteration_do from different pthread 
than where is running gtk_main... but it makes sense... just for sure 
im not doing anything wrong...


jirka

Daniel Campos napsal(a):


Jirka Pirko escribió:


hi

i have following problem:

need to append chars to GTK_ENTRY as they are coming from serial 
port (/dev/ttyS0)
i'm reading chars, appending (gtk_entry_appent_text()) them into 
GTK_ENTRY, but i CANT SEE them. (until i press key or when i put 
cursor into GTK_ENTRY)


i think i must force gtk_main loop to loop once i recieve each char 
but i don't know how to do...




Hi:

gtk_main_iteration_do

Regards,

D. Campos



it must be easy to do this but i can't find solution in documentation.

thanks for any helping

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



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






--- End Message ---
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Uninstalling gtk

2005-08-09 Thread Daniel Campos

Hi:

I've installed GTK+2.7 on a Madriva 2005, and I didn't remove anything:
that way the systems thinks the old GTK+ version is already installed, so
there's no problem with dependencies. The new libraries overwrite the
old ones, provided that you configure the packages with the 
--prefix=/usr option.

And these libraries are binary compatible, so the applications still work.

It worked for me in a transition from GTK+-2.4 to 2.6 in my former Mandrake
system, and now with the change GTK-2.6 to 2.7 (however 2.7 is still a 
testing

release, so some times Firefox and Thunderbird crashes)

Regards,

D. Campos


Giovanni De Maio escribió:


Hi to all,

I have Mandriva and i want to update gtk+.

I've downloaded sources from the web site.

But i need to remove old gtk+. I can't do it from rpmdrake, because rpmdrake
give to me dependencies problems with installed programs.

How can i remove old gtk without uninstalling other programs?

Thanks a lot for the answer.

Giovanni De Maio

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

 



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


Does linux-fb backend compile with GTK+-2.4?

2005-01-17 Thread Daniel Campos
Hi:
I was trying to compile both GTK+2.4 and GTK+2.6 with the option
"--with-gdktarget=linux-fb", and there is always errors at compile time.
Is there any faq about this (any specials options to add to Pango or ATK),
or may be this has been reported before? If not (I could not see 
anything in the
archives) I can report the errors more deeply...

Regards,
D. Campos
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: tiny html reader

2005-01-24 Thread Daniel Campos
[EMAIL PROTECTED] escribió:
Hello everyone,
I'm looking for an html reader that will allow me to simply read the html. No 
editing, no surfing capability, no fancy toolbars, extra panelling, icons etc. 
Don't need mozilla. I think the hand-helds use what I'm after. Is there such 
an app that's pc-friendly?

rgrds,
 

May be dillo : http://www.dillo.org/
Regards,
D. Campos
-Gil

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

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


Re: GTK+, & GLIB Questions

2005-02-24 Thread Daniel Campos
Jim Isom escribió:
To whom it may concern,
 
We received a security issue from Hewlett Packard regarding the 
version GLIB-1.2.10, & GTK+-1.2.10 (Which we currently have 
installed), I went to your site and noticed that you now have version 
2.6.2 available.  This server that currently has the older version 
running is very important to my client.
 
My question is this can I upgrade to 2.6.2 for both GLIB, & GTK 
without any disruption to our system and still know that the product 
will be available for the users that utilize it?  And if not what 
version can we upgrade to to eliminate the security issue and where 
would I find the product at?

In fact all major distributions use to install both 1.2 and 2.x versions 
of glib and gtk, as some old (may be unmantained) free software program 
uses gtk+-1.2. Note however, that old programs load gtk+-1.2 and new 
programs load gtk+-2.0 when executed, that is, both the old and the new 
versions of these libraries must be installed in the system, you can not 
remove gtk+-1.2 and just replace it for gtk+-2.0 in the hope that the 
old programs load and work OK with gtk+-2.x, they are not binary compatible.

Regards,
D. Campos

 
Please let me know.
 
Thanks,
 
Jim Isom


Do you Yahoo!?
Yahoo! Mail 
 
- Helps protect you from nasty viruses.


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

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