[Glade-devel] libglade usage
- From: taf2 lehigh edu (todd)
- Subject: [Glade-devel] libglade usage
- Date: Thu, 08 Jan 2004 19:35:23 -0500
This is a multi-part message in MIME format.
--------------020604090008020308070406
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Damon Chaplin wrote:
On Thu, 2004-01-08 at 03:41, James Henstridge wrote:
Libglade's autoconnect function looks up function names in the global
symbol table. By default, functions in the main executable do not
appear there, so would not normally be visible.
The flags returned by "pkg-config --libs libglade-2.0" should include a
linker flag to export the apps symbols for use by things like
autoconnect() (for linux systems, the flag is -Wl,--export-dynamic).
Is the autoconnect stuff known to work across all platforms now? I seem
to remember it was uncertain initially.
(I know we didn't use it in Evolution, but I can't remember why.)
It should work anywhere that supports gmodule.
If it is reliable, are the other glade_xml_connect_* functions really
necessary any more? Why would you use them? I think this needs to be
documented better.
there really should be a glade_xml_signal_autoconnect_with_data
since g_signal_connect expects a user_data parameter it doesn't make
sense to have
the more limited glade_xml_signal_autoconnect. when it could easily be
implemented
with a call to glade_xml_signal_autoconnect_with_data( glade, NULL );
I think Todd's problem is the common one where libglade has already
shown the widget before the signal handlers are connected, so you never
get the signal. The solution is to set the window's 'Visible' property
to FALSE in glade, and call gtk_widget_show() on it after calling
glade_xml_signal_autoconnect(). (But why not just call a function to
initialize the window instead?)
I agree.
-todd
--------------020604090008020308070406
Content-Type: text/x-vcard; charset=utf8;
name="taf2.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="taf2.vcf"
begin:vcard
fn:Todd Fisher
n:Fisher;Todd
email;internet:taf2 lehigh edu
x-mozilla-html:FALSE
version:2.1
end:vcard
--------------020604090008020308070406--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]