Re: error message from gtk::appchooserdialog



I have fixed the error in Gtk::AppChooserDialog's constructors in the git repository. Unless someone undoes the fix (which seems really unlikely) it will be included in gtkmm 3.6 when that version is released.

Kjell

2012-06-15 15:51, Dipesh Sudershan skrev:


On Fri, Jun 15, 2012 at 6:36 PM, Kjell Ahlstedt <kjell ahlstedt bredband net> wrote:
2012-06-15 05:26, Dipesh Sudershan skrev:

Here is the code..

Glib::RefPtr<Gio::File> file = Gio::File::create_for_path(filepath);
Gtk::AppChooserDialog *dialog = new Gtk::AppChooserDialog(file, *this);

if ( dialog->run() == Gtk::RESPONSE_OK ) {
    Glib::RefPtr<Gio::AppInfo> appinfo = dialog->get_app_info();
    appinfo->launch(file);
}
dialog->hide();

This is the message i get when the above code is executed..

glibmm-WARNING **: Glib::ConstructParams::ConstructParams(): object class "gtkmm__GtkAppChooserDialog" has no property named "file"

I'm probably making a silly mistake here. Can anyone help me with this? Thanks in advance..


No, it's a silly mistake in http://git.gnome.org/browse/gtkmm/tree/gtk/src/appchooserdialog.ccg.
The property is named "gfile", but in appchooserdialog.ccg it's mistakenly called "file" in the two constructors that take a Gio::File parameter.

Kjell

I will use content_type instead of Gio::File for now..



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