[Glade-users] signal handler problem under Windows XP
- From: lorenzo.decesare at gmail.com (Lorenzo Decesare)
- Subject: [Glade-users] signal handler problem under Windows XP
- Date: Mon, 2 Jul 2007 16:11:05 +0200
Those are my line for compile:
g++ -c -DXTHREADS -mms-bitfields -IC:/GTK/include/gtk-2.0 -IC:/GTK/lib/gtk-
2.0/include -IC:/GTK/include/atk-1.0 -IC:/GTK/include/cairo
-IC:/GTK/include/pango-1.0 -IC:/GTK/include/glib- 2.0
-IC:/GTK/lib/glib-2.0/include
-IC:/GTK/include/freetype2
-IC:/GTK/include/libglade-2.0-IC:/GTK/include/libxml2
main.cpp
g++ -o Prova.exe main.o -user32 -Wl,-luuid,--export-dynamic -LC:/GTK/lib -
lglade-2.0 -lgtk-win32-2.0 -lxml2 -lgdk-win32-2.0 -limm32 -lshell32 -lole32
-latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lcairo
-lpangoft2-1.0 -lfontconfig -lfreetype -lz -lpango-1.0 -lm -lgobject-2.0 -
lgmodule-2.0 -lglib-2.0 -lintl -liconv
and this is the message that I receive in the command window when I launch
Prova.exe:
(Prova.exe:1300): libglade-WARNING **: could not find signal handler
'openButtonListener'.
This is the simple code associated to the glade UI:
------- main.cpp -------------------------------------------
#include <gtk/gtk.h>
#include <glade/glade.h>
extern "C" void openButtonListener ( GtkButton *button1, gpointer data )
{
gtk_main_quit();
}
int main(int argc, char **argv)
{
GladeXML *xml;
GtkWidget *widget;
gtk_init(&argc, &argv);
xml = glade_xml_new("HMI_Appl.glade", NULL, NULL);
/* get a widget (useful if you want to change something) */
widget = glade_xml_get_widget(xml, "window1");
/* connect signal handlers */
glade_xml_signal_autoconnect(xml);
gtk_widget_show (widget);
gtk_container_set_reallocate_redraws (GTK_CONTAINER (widget), TRUE);
gtk_main();
return 0;
}
---------------------------------------------------------
and this is the piece of glade XML file:
<widget class="GtkButton" id="button1">
<property name="width_request">200</property>
<property name="height_request">34</property>
<property name="visible">True</property>
<property name="label" translatable="yes">BUTTON</property>
<signal name="clicked" handler="openButtonListener"
object="button1"/>
</widget>
What I must do for resolve the issue?
Thanks.
Lorenzo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20070702/bfdfd75e/attachment.html
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]