[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtkmm
Subject:    Re: error message from gtk::appchooserdialog
From:       Kjell Ahlstedt <kjell.ahlstedt () bredband ! net>
Date:       2012-06-18 13:00:59
Message-ID: 4FDF268B.3060408 () bredband ! net
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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 <mailto: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..


[Attachment #5 (text/html)]

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    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.<br>
    <br>
    Kjell<br>
    <br>
    2012-06-15 15:51, Dipesh Sudershan skrev:
    <blockquote
cite="mid:CAJV+wBwHfdVosdSxSejOQDWspKujpdSjdxn6QJwgMYPG=JR1zw@mail.gmail.com"
      type="cite"><br>
      <br>
      <div class="gmail_quote">On Fri, Jun 15, 2012 at 6:36 PM, Kjell
        Ahlstedt <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:kjell.ahlstedt@bredband.net" \
target="_blank">kjell.ahlstedt@bredband.net</a>&gt;</span>  wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000"> 2012-06-15 05:26,
            Dipesh Sudershan skrev:
            <div>
              <div class="h5">
                <blockquote type="cite">
                  <div>
                    <p>Here is the code..</p>
                    <pre><code>Glib::RefPtr&lt;Gio::File&gt; file = \
Gio::File::create_for_path(filepath); Gtk::AppChooserDialog *dialog = new \
Gtk::AppChooserDialog(file, *this);

if ( dialog-&gt;run() == Gtk::RESPONSE_OK ) {
    Glib::RefPtr&lt;Gio::AppInfo&gt; appinfo = dialog-&gt;get_app_info();
    appinfo-&gt;launch(file);
}
dialog-&gt;hide();
</code></pre>
                    <p>This is the message i get when the above code is
                      executed..</p>
                    <pre><code>glibmm-WARNING **: \
Glib::ConstructParams::ConstructParams(): object class "gtkmm__GtkAppChooserDialog" \
has no property named "file" </code></pre>
                    <p>I'm probably making a silly mistake here. Can
                      anyone help me with this? Thanks in advance..</p>
                  </div>
                  <br>
                </blockquote>
              </div>
            </div>
            No, it's a silly mistake in <a moz-do-not-send="true"
href="http://git.gnome.org/browse/gtkmm/tree/gtk/src/appchooserdialog.ccg"
              target="_blank">http://git.gnome.org/browse/gtkmm/tree/gtk/src/appchooserdialog.ccg</a>.<br>
  The property is named "gfile", but in appchooserdialog.ccg
            it's mistakenly called "file" in the two constructors that
            take a Gio::File parameter.<span class="HOEnZb"><font
                color="#888888"><br>
                <br>
                Kjell<br>
              </font></span></div>
        </blockquote>
      </div>
      <br>
      I will use content_type instead of Gio::File for now..<br>
    </blockquote>
    <br>
  </body>
</html>



_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic