gtk_main : event capture



Hi all,
   How can i get an indication, when gtk_main is getting called.
I want to monitor the time when my gtk+ application is launched, as i have
done gdb debugging i came to know that my application is launched when
gtk_main() is called. any clues ?
similarly any help on timer widget(to monitor the time inside gtk application) in gtk+

Thanks.
With regds,

 

Shyjumon N
Mobile: +91-9945006965



-----Original Message-----
From: gtk-list-bounces gnome org on behalf of gtk-list-request gnome org
Sent: Wed 11/8/2006 1:43 PM
To: gtk-list gnome org
Subject: gtk-list Digest, Vol 31, Issue 9
 
Send gtk-list mailing list submissions to
	gtk-list gnome org

To subscribe or unsubscribe via the World Wide Web, visit
	http://mail.gnome.org/mailman/listinfo/gtk-list
or, via email, send a message with subject or body 'help' to
	gtk-list-request gnome org

You can reach the person managing the list at
	gtk-list-owner gnome org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gtk-list digest..."


Today's Topics:

   1. Re: GTK-Config (Claudio Saavedra)
   2. Re: GTK-Config (Sergei Steshenko)
   3. Class initialization process (a dc)
   4. Re: Class initialization process (David Ne?as (Yeti))
   5. Re: Class initialization process (a dc)
   6. gtk.Expander, what to do when going back from expanded mode
      (Morten O. Hansen)
   7. configure problem of GTK for cross compiling (Zhang Long)


----------------------------------------------------------------------

Message: 1
Date: Tue, 07 Nov 2006 14:28:34 -0300
From: Claudio Saavedra <csaavedra alumnos utalca cl>
Subject: Re: GTK-Config
To: aldo camargo und nodak edu
Cc: gtk-list gnome org
Message-ID: <1162920514 4033 2 camel b202a wh8 tu-dresden de>
Content-Type: text/plain

On Sun, 2006-11-05 at 16:22 -0600, aldo camargo und nodak edu wrote:
> Hi GTK people:
> 
> I am trying to compile Carmen Software (software to programm robots) and in the Module Map Editor I found this problem; it seems like the gtk-config is not installed.
> 
> I am using the gtk 2.8.19, that I downloaded from http://ftp.gnome.org/pub/gnome/sources/gtk+/2.8/
> I think that this missing a lot of files, could you send me the complete version of gtk 2.8.19 (including the gtk-config)

gtk-config is no longer used. Now we use pkg-config, which is widely
used by several other projects, too.

The best you can do, is to get gtk+ packaged for your distribution. Then
you will surely have pkg-config installed in your system.

Claudio

-- 
Claudio Saavedra <csaavedra alumnos utalca cl>



------------------------------

Message: 2
Date: Tue, 7 Nov 2006 09:37:09 -0800 (PST)
From: Sergei Steshenko <sergstesh yahoo com>
Subject: Re: GTK-Config
To: Jernej Simon+AQ0-i+AQ0- <jernej listsonly ena si>,
	gtk-list gnome org
Cc: aldo camargo und nodak edu
Message-ID: <20061107173709 94331 qmail web35201 mail mud yahoo com>
Content-Type: text/plain; charset=iso-8859-1



--- Jernej Simon+AQ0-i+AQ0- <jernej listsonly ena si> wrote:

> On Mon, 6 Nov 2006 15:19:29 -0800 (PST), Sergei Steshenko wrote:
> 
> > No, I'm not kidding, and I believe that gtk (and not only) developers should have
> > written such a tool in the first place - to make life easier for end users
> 
> It still doesn't change the fact that using your tool won't give the OP
> gtk-config he needs - since you seem to only support GTK+- 2.
> 
> -- 
> < Jernej Simon+AQ0-i+AQ0- >< http://deepthought.ena.si/ >
> < Contact address: >< jernej simoncic at isg si >
> 
> > _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 

Firstly, Aldo downloaded gtk 2.8.19:

--- aldo camargo und nodak edu wrote:

> Hi GTK people:
> 
> I am trying to compile Carmen Software (software to programm robots) and in the Module Map
> Editor I found this problem; it seems like the gtk-config is not installed.
> 
> I am using the gtk 2.8.19, that I downloaded from
> http://ftp.gnome.org/pub/gnome/sources/gtk+/2.8/
,

so maybe he needs gtk+2.*, not gtk+-1.2.10.


Secondly, I have just added gtk+-1.2.10 - thanks to Rene Rebe's patch for glib-1.2.10:

http://svn.exactcode.de/t2/trunk/package/gnome14/glib12/gcc34.patch

it was easy.

Now I can try to build 'mplayer' which depends on gtk+-1.2.10 :-).

--Sergei.

Applications From Scratch: http://appsfromscratch.berlios.de/



 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail.
http://new.mail.yahoo.com


------------------------------

Message: 3
Date: Tue, 7 Nov 2006 18:56:41 -0500
From: "a dc" <adc999 gmail com>
Subject: Class initialization process
To: gtk-list gnome org
Message-ID:
	<9c9c4b2a0611071556y66cb7915k7c1045ec0f5ec351 mail gmail com>
Content-Type: text/plain; charset="iso-8859-1"

I have a question regarding class initialization process. When we initialize
and create GtkButton, it's class structure,  GtkButtonClass, needs to be
initialized. Also its parent class structures(GtkBinClass, GtkContainerClass
etc.) have to be initialized. Where all this class initialization take place
in gtk+ source code? Thanks.

--DC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /archives/gtk-list/attachments/20061107/4c94eb3e/attachment.htm 

------------------------------

Message: 4
Date: Wed, 8 Nov 2006 01:24:54 +0100
From: David Ne?as (Yeti) <yeti physics muni cz>
Subject: Re: Class initialization process
To: gtk-list gnome org
Message-ID: <20061108002454 GT4244 potato chello upc cz>
Content-Type: text/plain; charset=us-ascii

On Tue, Nov 07, 2006 at 06:56:41PM -0500, a dc wrote:
> I have a question regarding class initialization process. When we initialize
> and create GtkButton, it's class structure,  GtkButtonClass, needs to be
> initialized. Also its parent class structures(GtkBinClass, GtkContainerClass
> etc.) have to be initialized. Where all this class initialization take place
> in gtk+ source code? Thanks.

gtk_foo_new() creates the new object with
g_object_new(GTK_TYPE_FOO, ...);.

  GTK_TYPE_FOO is defined as gtk_foo_get_type().

  So gtk_foo_get_type() is called and it calls
  g_type_register_static() that passes the type information
  (as the class init function) to GObject.

  But before that gtk_foo_get_type() also uses
  GTK_TYPE_FOO_PARENT, so all parent type information is
  recursively registered.

Now we get into g_object_new().  It takes a reference on the
type class with g_type_class_ref().

g_type_class_ref() recursively references parent classes and
calls [an internal function that in turn calls] class_init()
method of the class.

Notes:
- Most of this of course occurs only the first time and
  subsequent uses of the type go the fast code path.
- This is just the typical case.

Yeti


--
Whatever.


------------------------------

Message: 5
Date: Tue, 7 Nov 2006 20:05:40 -0500
From: "a dc" <adc999 gmail com>
Subject: Re: Class initialization process
To: " David Ne?as (Yeti) " <yeti physics muni cz>,	gtk-list gnome org
Message-ID:
	<9c9c4b2a0611071705r17543869v853f92381b208fa0 mail gmail com>
Content-Type: text/plain; charset="iso-8859-2"

On 11/7/06, David Ne?as (Yeti) <yeti physics muni cz> wrote:
>
> On Tue, Nov 07, 2006 at 06:56:41PM -0500, a dc wrote:
> > I have a question regarding class initialization process. When we
> initialize
> > and create GtkButton, it's class structure,  GtkButtonClass, needs to be
> > initialized. Also its parent class structures(GtkBinClass,
> GtkContainerClass
> > etc.) have to be initialized. Where all this class initialization take
> place
> > in gtk+ source code? Thanks.
>
> gtk_foo_new() creates the new object with
> g_object_new(GTK_TYPE_FOO, ...);.
>
>   GTK_TYPE_FOO is defined as gtk_foo_get_type().
>
>   So gtk_foo_get_type() is called and it calls
>   g_type_register_static() that passes the type information
>   (as the class init function) to GObject.
>
>   But before that gtk_foo_get_type() also uses
>   GTK_TYPE_FOO_PARENT, so all parent type information is
>   recursively registered.
>
> Now we get into g_object_new().  It takes a reference on the
> type class with g_type_class_ref().
>
> g_type_class_ref() recursively references parent classes and
> calls [an internal function that in turn calls] class_init()
> method of the class.
>
> Notes:
> - Most of this of course occurs only the first time and
>   subsequent uses of the type go the fast code path.
> - This is just the typical case.
>
> Yeti



Thanks Yeti.

--DC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /archives/gtk-list/attachments/20061107/25fd9440/attachment.htm 

------------------------------

Message: 6
Date: Wed, 08 Nov 2006 03:26:07 +0100
From: "Morten O. Hansen" <morteoh chello no>
Subject: gtk.Expander, what to do when going back from expanded mode
To: gtk-list gnome org
Message-ID: <1162952769 18622 5 camel angeldust>
Content-Type: text/plain


Hi,

I have a small project in pygtk I'm working on, and I'm using an
gtk.Expander to show/hide some widgets. Everything is working OK, but
when the expander is going back from expanded mode, the main widget need
to be resized (since the window initially was a lot smaller), 

What is the common way to do this? I don't want to have resizable=off in
my Widget.

With regards, Morten O. Hansen




------------------------------

Message: 7
Date: Wed, 08 Nov 2006 16:14:01 +0800
From: Zhang Long <llzz2 zhang samsung com>
Subject: configure problem of GTK for cross compiling
To: gtk-list <gtk-list gnome org>
Message-ID: <DreamMail__161401_29660467220 smtp samsung com>
Content-Type: text/plain; charset="gb2312"


I've built Tinyx successfully and then built the followings with this order

glib-2.11.3
atk-1.10.3 
zlib-1.2.3 
libpng-1.2.10
cairo-1.1.6
pango-1.13.1 

and all succeeded.

pango's 5 libraries of pango, pangocairo, pangoft2, pangox, pangoxft all come out??all libraries are put in /usr/local/lib,
I also set "export PKG_CONFIG_PATH=/usr/local/lib"

After I configured GTK v2.9.3 based on Tinyx using the following command

./configure --host=arm-linux \
  --without-libtiff \
  --without-libpng \
  --without-libjpeg \
  --disable-glibtest \
  --disable-modules \
  --disable-largefile \
  --with-gdktarget=linux-fb \
  --with-x  \
  --x-includes=/root/target/gtk/xc/exports/include \
  --x-libraries=/root/target/gtk/xc/exports/lib \
  CC=/usr/local/arm/3.3.2/bin/arm-linux-gcc \

It says:

...
configure: error:
*** Can't link to Pango. Pango is required to build
*** GTK+. For more information see http://www.pango.org 

What's wrong? Is the option "--with-gdktarget=linux-fb" right? Any clues will be appreciated.


                           Zhang Long 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /archives/gtk-list/attachments/20061108/8226d865/attachment.htm 

------------------------------

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


End of gtk-list Digest, Vol 31, Issue 9
***************************************

<<winmail.dat>>

The information contained in this e-mail message and in any annexure is confidential to the  recipient and may contain privileged information. If you are not the intended recipient, please notify the sender and delete the message along with any annexure. You should not disclose, copy or otherwise use the information contained
in the message or any annexure. Any views expressed in this e-mail are those of the individual sender except where the sender specifically states them to be the views of SoCrates Software India Pvt Ltd., Bangalore.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]