RE: [gnomemm] How to use persistent history with GnomeEntry?
- From: Christopher Smith <x xman org>
- To: Murray Cumming Comneon com
- Cc: gnomemm-list gnome org
- Subject: RE: [gnomemm] How to use persistent history with GnomeEntry?
- Date: Mon, 20 Oct 2003 02:26:48 -0700
Hmm... so I did come up with hack that addresses the short term problem.
Presumably, you could just make this function a static method and be
done with it. Someone who understood how gnomemm works could probably
figure out how to avoid forcing the Entry object onto the heap and
perhaps make all this work in a constructor:
#include <memory>
#include <glibmm.h>
#include <libgnomeui/libgnomeui.h>
class Gnome::UI::Entry;
std::auto_ptr<Gnome::UI::Entry>
create_entry(const Glib::ustring& aHistoryID) {
GtkWidget* entryTemp = gnome_entry_new(aHistoryID.c_str());
GnomeEntry* gEntryTemp = GNOME_ENTRY(entryTemp);
return std::auto_ptr<Gnome::UI::Entry>(Glib::wrap(gEntryTemp));
}
--
Christopher Smith <x xman org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]