How to zoom image using GtkImage Widget?

2006-10-07 Thread raymond-xu
Hi everyone!
 
 I'm trying to write a program using GtkImage widget to show image, I want to 
zoom image in the widget. My solution is :
1 create a GtkImage 
2 add handler for size-allocate signal of GtkImage widget
3 use gdk functions to scale the image
 
The main problem is on the step 2, in the callback of the size-allocate 
signal, I always get width of the request width, it seems not the actual width 
allocated for GtkImage. Is it a bug?
 
If anyone has some solution or can fix problem, let me know.
 
Thanks advance
 
 
 ___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Installing BDF fonts

2006-10-07 Thread Dheeraj V.S.
Hi,
I would like to install some TTF and BDF fonts and use them in my GTK
applications (using DirectFB).

I was successful with installation of TTF fonts. I ran `fc-cache' on the
folder containing TTF fonts and the corresponding cache file got created.
But the same procedure failed in the case of BDF fonts:
[EMAIL PROTECTED]: ./fc-cache -vf ~/fonts/
./fc-cache: /home/dheeraj/fonts: caching, 0 fonts, 0 dirs
Now the font is loaded in my GTK application using
pango_font_description_from_string().

On googling I found that BDF fonts may first have to be converted to PCF
using the command `bdftopcf'. But this also yielded no result.

Any inputs are appreciated.

Cheers,
Dheeraj
-- 



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


event handling

2006-10-07 Thread krithika.sivakumar
Hi,

Is there any way we can post an event and handle the event to change the
GtkWidget.
I want to pass an object while posting the event and use the object to
change the widget.
I'm new to Gtk.
Any information will be of great help.

Thanks,
Krithi.


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


Re: event handling

2006-10-07 Thread Guy Rouillier
[EMAIL PROTECTED] wrote:
 Hi,
 
 Is there any way we can post an event and handle the event to change the
 GtkWidget.
 I want to pass an object while posting the event and use the object to
 change the widget.
 I'm new to Gtk.
 Any information will be of great help.
 

Sure, what you should look at are signals.  Start with the Gtk+
Reference,  Depending on what version you are running, most of the
signal functions have been moved into glib.

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


Re: event handling

2006-10-07 Thread Mohsen Pahlevanzadeh
Guy Rouillier wrote:

 [EMAIL PROTECTED] wrote:
   
 Hi,

 Is there any way we can post an event and handle the event to change the
 GtkWidget.
 I want to pass an object while posting the event and use the object to
 change the widget.
 I'm new to Gtk.
 Any information will be of great help.

 

 Sure, what you should look at are signals.  Start with the Gtk+
 Reference,  Depending on what version you are running, most of the
 signal functions have been moved into glib.

   
Of course,You Events differ with Signals.
However,Both are meaning a concept.
--Mohsen
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list