Re: [gtkmm] FileSelection selecting directories
- From: Javier Vilarroig <jvilarroig terra es>
- To: Vladislav Grinchenko <vgrinche integ com>
- Cc: Gtkmm e-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] FileSelection selecting directories
- Date: Wed, 23 Jun 2004 10:17:34 +0200
Hi all.
Thanks to everybody for all you help :)
It taked a while to download Gtkmm 2.4 an have it running on my box. But
now I have it runnig.
And now I'm having some problems with FileChooserDialog. :))
This is how I call it
--------
// Gets Dirname
Gtk::FileChooserDialog selector("Source
directory",Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER);
selector.run();
std::cout << selector.get_filename().c_str() << std::endl;
--------
When selector.run() is called I got the following messages:
---------
(fsf:27550): Gtk-CRITICAL **: file gtkfilesystem.c: line 398
(gtk_file_system_volume_get_base_path): assertion `volume != NULL'
failed
(fsf:27550): Gtk-CRITICAL **: file gtkfilesystem.c: line 675
(gtk_file_system_path_is_local): assertion `path != NULL' failed
(fsf:27550): Gtk-CRITICAL **: file gtkfilesystem.c: line 377
(gtk_file_system_volume_free): assertion `volume != NULL' failed
(fsf:27550): Gtk-CRITICAL **: file gtkfilesystem.c: line 461
(gtk_file_system_volume_get_display_name): assertion `volume != NULL'
failed
(fsf:27550): Gtk-CRITICAL **: file gtkfilesystem.c: line 488
(gtk_file_system_volume_render_icon): assertion `volume != NULL' failed
-------
It seems not critical, as the app runs as exected.
Another problem is that I'm unable to go down the filesistem. I can only
go to home, but not deeper. In the shortcut list there are some
shortcuts to some devices (CDROM, FD, etc). I tried to add "/" with
add_shortcut_folder. Then / appears on the shortcut list, but selectin
it gives me "(fsf:27550): Gtk-CRITICAL **: file gtkfilesystem.c: line
398 (gtk_file_system_volume_get_base_path): assertion `volume != NULL'
failed" and after that a segmentation violation.
Could be I'm missing something??
Thanks in advance again.
Javier Vilarroig
El vie, 11-06-2004 a las 22:06, Vladislav Grinchenko escribió:
> Javier,
>
> try hide_fileop_buttons () method.
>
> for details see
>
> DirEntry.h - http://cvs.sourceforge.net/viewcvs.py/gwavmerger/gwavmerger/src/DirEntry.h?rev=1.1&view=auto
> DirEntry.cpp - http://cvs.sourceforge.net/viewcvs.py/gwavmerger/gwavmerger/src/DirEntry.cpp?rev=1.1&view=auto
>
> -Vlad
>
> On Fri, Jun 11, 2004 at 05:31:00PM +0200, Javier Vilarroig wrote:
> > Hi.
> >
> > A simple question.
> >
> > Is posible to instruct a File Selection dialog to only allow tto
> > select directories?
> >
> > Thanks in advance
> > Javier Vilarroig
> >
> > _______________________________________________
> > gtkmm-list mailing list
> > gtkmm-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]