Re: [gnomemm] Gnome::FileEntry -- get_full_path causes crash
- From: Murray Cumming <murrayc usa net>
- To: Jeremy Dinsel <jeremy gunix net>
- Cc: Julian Missig <julian jabber org>, gnomemm-list <gnomemm-list gnome org>
- Subject: Re: [gnomemm] Gnome::FileEntry -- get_full_path causes crash
- Date: 22 Jul 2002 17:12:52 +0100
On Mon, 2002-07-22 at 15:26, Jeremy Dinsel wrote:
>
> Thanks for the reply, Julian. However, with the supplied code, I am
> still getting errors:
>
> printf("trans_log_file: %s\n",
> pbox->transaction_log_file->gtk_entry().get_text());
> results in:
>
> propertybox.cc: In method `void Gtivo_Prefs::Set_Configuration(propertybox *)':
> propertybox.cc:500: request for member `get_text' in `pbox->propertybox::transaction_log_file->Gnome::FileEntry::gtk_entry()', which is of non-aggregate type `Gtk::Widget *'
That's telling you that it should be gtk_entry()->get_text(). What it's
not telling you is that it should be get_text().c_str(). That's what you
get for using printf().
But, this shouldn't be necessary anyway.
--
Murray Cumming
murrayc usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]