# Where is Gtk::MessageDialog.set\_secondary\_text defined?

**URL:** <https://www.ruby-forum.com/t/where-is-gtk-messagedialog-set-secondary-text-defined/228344>\
**Category:** Ruby-Gnome 2\
**Created:** [April 18, 2013, 7:42pm UTC](https://www.ruby-forum.com/t/where-is-gtk-messagedialog-set-secondary-text-defined/228344 "2013-04-18T19:42:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [April 18, 2013, 7:42pm UTC](https://www.ruby-forum.com/t/where-is-gtk-messagedialog-set-secondary-text-defined/228344/1 "2013-04-18T19:42:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [April 19, 2013, 3:16pm UTC](https://www.ruby-forum.com/t/where-is-gtk-messagedialog-set-secondary-text-defined/228344/2 "2013-04-19T15:16:40Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“[ruby-gnome2-devel-en] Where is Gtk::MessageDialog.set\_secondary\_text  
defined?” on Thu, 18 Apr 2013 19:41:44 +0200,  
Detlef R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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:  
[Gtk – 3.0](https://developer.gnome.org/gtk3/stable/GtkMessageDialog.html#GtkMessageDialog--secondary-text)

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [April 19, 2013, 3:18pm UTC](https://www.ruby-forum.com/t/where-is-gtk-messagedialog-set-secondary-text-defined/228344/3 "2013-04-19T15:18:28Z")

</div>

If I understand it correctly, it’s there :

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

Simon

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [April 19, 2013, 3:26pm UTC](https://www.ruby-forum.com/t/where-is-gtk-messagedialog-set-secondary-text-defined/228344/4 "2013-04-19T15:26:01Z")

</div>

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] Where is  
Gtk::MessageDialog.set\_secondary\_text defined?” on Fri, 19 Apr 2013  
15:18:28 +0200,  
Simon A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> If I undersnd it correctly, it’s there :

> <https://github.com/ruby-gnome/ruby-gnome/blob/main/glib2/ext/glib2/rbgobject.c#L316>

Right. 🙂

–  
kou

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [April 19, 2013, 5:08pm UTC](https://www.ruby-forum.com/t/where-is-gtk-messagedialog-set-secondary-text-defined/228344/5 "2013-04-19T17:08:52Z")

</div>

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:

> **[Gtk-3.0](https://docs.gtk.org/gtk3/)**
>
> Reference for Gtk-3.0

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