Arguments to gtk_widget_new()



Hello!

When I tried to run the following code, GTK emits this warning:
        
Gtk-WARNING **: gtk_widget_new(): could not find argument "position" in   
the `GtkDialog' class ancestry

Since GtkDialog is dervated from GtkWindow, that warning seems
doesen't make sense to me.

dialog = gtk_widget_new (gtk_dialog_get_type(),
                         "GtkWindow::title",            title,
                         "GtkWindow::allow_shrink",     FALSE,
                         "GtkWindow::allow_grow",       FALSE,
                         "GtkWindow::auto_shrink",      FALSE,
                         "GtkWindow::modal",            modal,
                         "GtkWindow::position", GTK_WIN_POS_MOUSE,
                         NULL);

If I remove the offending line :
        
	"GtkWindow::position", GTK_WIN_POS_MOUSE,

everything works as expected.


Any clues?

-Jens




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