Where is Gtk::MessageDialog.set_secondary_text defined?

Hi,

the title says it all. The method is usable, but I don’t find it in the
sources…

Who can enlighten me? Are there some kind of docs, where this magic is
explained?

Cheers, detlef

Hi,

In [email protected]
“[ruby-gnome2-devel-en] Where is Gtk::MessageDialog.set_secondary_text
defined?” on Thu, 18 Apr 2013 19:41:44 +0200,
Detlef R. [email protected] wrote:

the title says it all. The method is usable, but I don’t find it in the
sources…

Who can enlighten me? Are there some kind of docs, where this magic is
explained?

It is automatically defined. Ruby/GLib defines acceessors
for properties
automatically. Gtk::MessageDialog.set_secondary_text is a
getter for secondary-text property:
https://developer.gnome.org/gtk3/stable/GtkMessageDialog.html#GtkMessageDialog--secondary-text

Thanks,

kou

If I understand it correctly, it’s there :
https://github.com/ruby-gnome2/ruby-gnome2/blob/master/glib2/ext/glib2/rbgobject.c#L316

Simon

In [email protected]
“Re: [ruby-gnome2-devel-en] Where is
Gtk::MessageDialog.set_secondary_text defined?” on Fri, 19 Apr 2013
15:18:28 +0200,
Simon A. [email protected] wrote:

If I undersnd it correctly, it’s there :

https://github.com/ruby-gnome2/ruby-gnome2/blob/master/glib2/ext/glib2/rbgobject.c#L316

Right. :slight_smile:


kou

Hi,

Am 19.04.2013 15:15, schrieb Kouhei S.:

explained?

It is automatically defined. Ruby/GLib defines acceessors
for properties
automatically. Gtk::MessageDialog.set_secondary_text is a
getter for secondary-text property:

https://developer.gnome.org/gtk3/stable/GtkMessageDialog.html#GtkMessageDialog--secondary-text

Ok, that is simple to follow. Thank you! detlef