How does a gtk application listen a mouse event?

2008-08-13 Thread ying lcs
Hi, How does a gtk application listen a mouse event on linux? Does it register some event listener for some X11 event? Or it is something else. Thank you. ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

how/where does pango read the ttf file to glyph?

2008-06-11 Thread ying lcs
Hi, Can you please which methods in pango which it read the ttf font file into glyphs? Thank you for any tip. ___ gtk-i18n-list mailing list gtk-i18n-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-i18n-list

Where does glyphs's geometry.width get set?

2008-06-10 Thread ying lcs
Hi, Can you please tell me where does this property ' glyphs's geometry.width '? glyphs-glyphs[i].geometry.width I have seen it is been used in a lot of places, but I don't know where it is getting set. e.g. in basic-x.c: basic_engine_shape (PangoEngineShape *engine,

How can I find out what is the gtk development version?

2008-04-10 Thread ying lcs
Hi, How can I find out what is the gtk development version that I am using on linux? Thank you. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How can I find out what is the gtk development version?

2008-04-10 Thread ying lcs
On Thu, Apr 10, 2008 at 11:12 AM, Kevin DeKorte [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ying lcs wrote: | Hi, | | How can I find out what is the gtk development version that I am using on linux? ~ pkg-config --modversion gtk+-2.0 Should give

Re: How can I find out what is the gtk development version?

2008-04-10 Thread ying lcs
On Thu, Apr 10, 2008 at 11:28 AM, Tomas Carnecky [EMAIL PROTECTED] wrote: ying lcs wrote: On Thu, Apr 10, 2008 at 11:12 AM, Kevin DeKorte [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ying lcs wrote: | Hi, | | How can I find out what

Re: Question in using gdk_pixbuf_get_from_drawable()

2008-03-30 Thread ying lcs
, compression, 9, NULL); } ying lcs a écrit : Luis, The 'window' object is from: gtk_window_new(GTK_WINDOW_TOPLEVEL) I do see it works something, while other times, I see the screenshot get out of place (as shown in the image I

Re: Question in using gdk_pixbuf_get_from_drawable()

2008-03-22 Thread ying lcs
please give us the code where you initilized it ? I've tried to adapt your code in a simple example, and it just works... I get a screenshot of what is in the window, without the window decoration. Cheers, Luis ying lcs a écrit : Hi, I have a question of using

Question in using gdk_pixbuf_get_from_drawable()

2008-03-20 Thread ying lcs
Hi, I have a question of using gdk_pixbuf_get_from_drawable(). I have the following code which save the gdk window to a png file. But something I get something which is totally not what is displayed on the window. Can you please tell me what am I missing? GdkWindow *window ; if (window != NULL)

How to use 'gdk_pixbuf_get_from_drawable'

2008-03-19 Thread ying lcs
Hi, I am trying to use 'gdk_pixbuf_get_from_drawable' to capture screen shot from a gdk window. Can you please tell me if I need to grab a semphore lock for the window (so that nothing is being painted) before I call that function gdk_pixbuf_get_from_drawable() to capture the pixbuf? Thank you.

[no subject]

2008-02-29 Thread ying lcs
___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

how can I find out the current font size

2008-01-11 Thread ying lcs
Hi, When I use this function to paint text, can you please tell me how can I find out the font size of the text. voidgdk_draw_layout (GdkDrawable *drawable, GdkGC *gc,

How to setup a timer in gtk

2007-12-12 Thread ying lcs
Hi, Can you please tell me how can I setup a timer in gtk application? It has a 'g_timeout_add()' function, but it 'Sets a function to be called at regular intervals, with the default priority, G_PRIORITY_DEFAULT.' But all I want is it call my function to be called only once when the timer

Create 'gtk.gdk.Event' object

2007-12-12 Thread ying lcs
Hi, Can you please tell me if it is possible for my application to create a 'gtk.gdk.Event' object and send it back to itself in order to simulate a mouse click from user? http://www.moeraki.com/pygtkreference/pygtk2reference/class-gdkevent.html Thank you.

How to scroll my gtk application window programmically

2007-11-14 Thread ying lcs
Hi, I would like to know how can I scroll my gtk application window programmically? I have tried this, but the scroll bar does not make and the content of the window did not get refresh? GtkWidget* topLevelWindow; GdkWindow* win = topLevelWindow-window; gdk_window_scroll (win, 1, 880);

Re: How can I scroll my gtk application window programmically?

2007-11-12 Thread ying lcs
On Nov 11, 2007 9:00 AM, Paul Davis [EMAIL PROTECTED] wrote: On Sat, 2007-11-10 at 20:53 -0600, ying lcs wrote: Hi, I would like to know how can I scroll my gtk application window programmically? I have tried this, but the scroll bar does not make and the content of the window did

How can I tell if a GTKWidget is realized?

2007-11-10 Thread ying lcs
Hi, Can you please tell me how can I tell programmically if a GTKWidget is realized? Thank you. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

How can I scroll my gtk application window programmically?

2007-11-10 Thread ying lcs
Hi, I would like to know how can I scroll my gtk application window programmically? I have tried this, but the scroll bar does not make and the content of the window did not get refresh? GtkWidget* topLevelWindow; GdkWindow* win = topLevelWindow-window; gdk_window_scroll (win, 1, 880);

How can I emulate a mouse click event at a specific location in my code?

2007-11-08 Thread ying lcs
Hi, I have a GTK application? How can I emulate a mouse click event at a specific location (x,y)in my code so that my GTK application will response to it as if a user has clicked at the same location? Thank you. ___ gtk-list mailing list

Re: How can I emulate a mouse click event at a specific location in my code?

2007-11-08 Thread ying lcs
On Nov 8, 2007 11:24 AM, [EMAIL PROTECTED] wrote: Hi, On 11/8/07, ying lcs [EMAIL PROTECTED] wrote: How can I emulate a mouse click event at a specific location (x,y)in my code so that my GTK application will response to it as if a user has clicked at the same location? You can use

Where is the PKG-config files for gtk on Red Hat 4?

2007-03-08 Thread ying lcs
Hi, I have set my PKG_CONFIG_PATH as follow: # echo $PKG_CONFIG_PATH /usr/local/lib/pkgconfig:/usr/local/share/pkgconfig/:/usr/share/pkgconfig But when I try to run 'configure' for a program, it can't find gtk+-2.0.pc. Can you please tell me what should I set the PKG_CONFIG_PATH to be for this

Re: Where is the PKG-config files for gtk on Red Hat 4?

2007-03-08 Thread ying lcs
On 3/8/07, David Nečas (Yeti) [EMAIL PROTECTED] wrote: Hopefully you mean RedHat Enhanced Linux 4 (AKA RHEL4), not the ancient RedHat Linux 4... On Thu, Mar 08, 2007 at 02:33:44PM -0600, ying lcs wrote: Hi, I have set my PKG_CONFIG_PATH as follow: # echo $PKG_CONFIG_PATH /usr/local

Re: Where is the PKG-config files for gtk on Red Hat 4?

2007-03-08 Thread ying lcs
On 3/8/07, David Nečas (Yeti) [EMAIL PROTECTED] wrote: On Thu, Mar 08, 2007 at 03:58:21PM -0600, ying lcs wrote: Let's say I did the step above and install my program correctly. Will the binary of my program (a program build in RHEL4 with 'gtk2-devel') run on a Red Hat Enterprise Linux

Re: GLib 2.9.1 released

2006-01-08 Thread ying lcs
Hi, How can I use yum to update glib and gtk2? == GLib 2.9.1 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.9/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.9/ glib-2.9.1.tar.bz2 md5sum: f4817f7e0546f8d4b37c20b6ceca69ad