Re: [Vala] Help with dialogs



Man, now I feel stupid.

Thank you everyone for your replies. You were of course right. It now works
exactly as I wanted.

Steven N. Oliver

On Wed, Aug 23, 2017 at 6:25 PM, Ben <iofelben gmail com> wrote:

In the glade file you have

Balis*i*ticaPbrDialog

Just a typo

On August 23, 2017 4:53:48 PM EDT, Steven Oliver <oliver steven gmail com>
wrote:

Hello,
I've been trying to create a dialog in my application, and it only seems to
half work for me (at best).

At this point in my code:
https://github.com/steveno/balistica/blob/master/src/DragBox.vala#L153

I attempt to create a new dialog box using a custom glade file.

Vala: https://github.com/steveno/balistica/blob/master/src/PbrDialog.vala
Glade: https://github.com/steveno/balistica/blob/master/ui/pbr.glade

It all compiles fine and even runs without crashing. I do however get the
following messages and my dialog always comes up completely empty.

(balistica:11354): Gtk-CRITICAL **: Error building template class
'BalisticaPbrDialog' for an instance of type 'BalisticaPbrDialog': .:32:1
Parsed template definition for type 'BalisiticaPbrDialog', expected type
'BalisticaPbrDialog'

Gtk-Message: GtkDialog mapped without a transient parent. This is
discouraged.

Can anyone help me figure out what I'm doing wrong?

Steven N. Oliver
------------------------------

vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list




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