Re: Gio::File missing attribute definitions?



Hi,
Unless you're using glib and not glibmm, you probably want std::string Gio::FileInfo::get_display_name()
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.

Ian.

On 26/05/15 18:57, Marcin Kolny wrote:
Definition of FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME doesn't exist in glibmm, but you should use G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME instead, which is defined in gio/gfileinfo.h (you probably don't have to explicitly include this file).




2015-05-26 7:07 GMT+02:00 Adam Nielsen <a nielsen shikadi net>:
Hi all,

Reading the documentation for Gio::File::get_basename() it says:

  If you want to use filenames in a user interface you should use the
  display name that you can get by requesting the
  FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME attribute with
  g_file_query_info()

I'm assuming this means Gio::File::query_info(), however
FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME is undefined and I can't work out
whether I have to call that something else as well, and if so, what.

There doesn't seem to be any other reference to it in the docs, and
even grepping the include files doesn't show any definitions.

Where is this one defined?

Many thanks,
Adam.


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



--
Pozdrawiam
Marcin Kolny


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



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