[Glade-users] How to get the Id or Name or Id (or any other unique identification) from the Widget (window)

Em 30/3/2011 12:47, francesco at promotux.it escreveu:
Il 30/03/2011 17:26, Cleber N. Borges ha scritto:
Hello all,

In my project, I need to get, in runtime, the identification of the

im glade file, appear:
<object class="GtkWindow" id="window_main">
<property name="title" translatable="yes">ChemoMatrix - Easy Tools
Accessing for Chemometrics in R</property>
<property name="window_position">center</property>
<property name="default_width">600</property>
<property name="default_height">500</property>
<signal name="delete_event" handler="on_window_main_delete_event"/>

<object class="GtkWindow" id="window_pca">
<property name="title" translatable="yes">PCA - Principal Components
<property name="window_position">center</property>
<signal name="delete_event" handler="on_window_pca_delete_event"/>

and so...
I woud like to know a manner to get this information on-the-fly...

I thank advanced for some help!

Cleber N. Borges
Glade-users maillist  -  Glade-users at lists.ximian.com
in python i use

widget_name = gtk.Buildable.get_name(widget)

Exactly! Bingo!!!!! { is there the expression (slang): 'bingo' in 
english languague??? heheheh }

obs.:  I use Gtk2 in 'R package' with RGtk2 bindings... my function is:

widget_name = gtkBuildableGetName( widget )

so, is very cold the fact of the diferent programming languages to be 
very similar!!! ;-)

and until the next question, :-)


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