[Vala] Problem adding gstreamer option group to context?



Hi,

The following excerpt fails because of context.add_group
(Gst.init_get_option_group ());

var context = new OptionContext (_("foo"));
context.set_help_enabled (true);
context.add_main_entries (options, null);
context.add_group (Gtk.get_option_group (true));
context.add_group (Gst.init_get_option_group ());
context.parse (ref args);

The error I get is

/opt/gnome2/share/vala/vapi/gstreamer-0.10.vapi:1978.21-1978.36:
error: duplicating OptionGroup instance, use weak variable or
explicitly invoke copy method

Is this a bug or am I doing something wrong?

Jaap



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