Re: Where do I find the constants?



There are demos here:

https://github.com/dave-theunsub/gtk3-perl-demos

This one has an example of what you're looking for:

https://github.com/dave-theunsub/gtk3-perl-demos/blob/master/dialog_boxes.pl

Thanks,
Dave M


On Mon, Dec 30, 2013 at 11:29 AM, Christian Jaeger <chrjae gmail com> wrote:
Hi

(I'm missing Gtk3 documentation.)

How do I translate constants to Perl? Like:


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.


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




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