Re: Gio::File missing attribute definitions?
- From: Adam Nielsen <a nielsen shikadi net>
- To: gtkmm-list gnome org
- Subject: Re: Gio::File missing attribute definitions?
- Date: Wed, 27 May 2015 19:53:52 +1000
Unless you're using glib and not glibmm, you probably want
std::string Gio::FileInfo::get_display_name()
Oh indeed - I didn't see that and was using get_attribute_as_string().
Remember the gtkmm docs are parsed from the gtk; sometimes it
requires manually correcting the references to their gtkmm
companion, and things do get missed.
Ah yes, that's where I was getting confused - the reference wasn't gtk
or gtkmm so I wasn't sure what the correction should be. As Marcin
pointed out, adding G_ onto the front of the gtkmm suggestion did work.
I'm guessing I should still call
Gio::File::query_info(G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME) though?
Otherwise it will presumably retrieve a bunch of attributes that I
don't need? Or does Gio::File::get_*() only retrieve attributes on
request?
Thanks,
Adam.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]