Where do I find the constants?



Hi

(I'm missing Gtk3 documentation.)

How do I translate constants to Perl? Like:

https://developer.gnome.org/gtk3/3.0/GtkFileChooserDialog.html

if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT)

would be something like

if ($dialog->run == Gtk::RESPONSE_ACCEPT)

or dunno; the Gtk::RESPONSE_ACCEPT thing is what I'm missing. (Also, is it correct that the run method still translates to such values, and not say a boolean?)

Christian.



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