[gnomemm] libglademm2 help
- From: Mark Wittenberg <Mark_Wittenberg schonfeld com>
- To: gnomemm-list gnome org
- Subject: [gnomemm] libglademm2 help
- Date: 27 Jan 2003 18:20:19 -0800
Is this the correct place for help on libglademm2? If not, my
apologies, but the libglademm web site says that libglademm2 is part of
gnomemm.
I'm trying to get started writing a GTK2 app using glade-2 and
libglademm-2.0 on Solaris 2.8/sparc using gcc 3.2 (for external reasons
I'd like to use CC, but that's another story), but I'm stuck trying to
port my one and only libglademm-1.2 app. (I've got *very* little
previous libglade experience).
I can't find doc on the new libglademm2 API, and trying to deduce the
api from the gtk2 and libglade2 doc isn't working for me. The only
examples I've found are the far-too-trivial "basic" and "variablesmap"
ones in the libglademm package.
It seems to me that the libglade2mm api is generated from the libglade2
api via "libglade_methods.defs" and friends, but I haven't figured out
exactly where all the wrappers (and generated code) are. For example,
what is the 2.0 equivalent of "Libglade::XML::connect_all"? And how do
I connect signals to slots now? It appears that the signature of
SigC::slot() has changed, because it doesn't like the (global) function
pointer I pass in
-- its signature is
void
(*action)(
GtkButton *button,
gpointer user_data);
I see hints that the new signature must be
void
(*GladeXMLConnectFunc)(
const gchar *handler_name,
GObject *object,
const gchar *signal_name,
const gchar *signal_data,
GObject *connect_object,
gboolean after,
gpointer user_data);
in the libglade2 doc, but looks like it's really not what I should be
using. I'm not writing an interpreted language binding ...
I'd appreciate any help, but mostly what I need are pointers to the new
libglademm2 doc and examples. That was all I need to learn the previous
version, but I've been banging my head against a brick wall trying to
find the new versions. I'm being optimistic and assuming that there
*are* new versions.
BTW, I haven't managed to install all the gnome-specific libs (ie,
libgnomeuimm, libbonobomm, etc), but I'm assuming that libglademm2 is
usable even without them.
Thanks for any help,
Mark Wittenberg
mark_wittenberg schonfeld com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]