[Glade-users] signal handler problem

Hi, I'm trying to use Glade 3.0.2 on a win32 with no code generation but loading gui dinamically using 
libglade. I want to try the basic widget  in particular my simple application is composed of a window with a 
"Vertical Button Box" the following xml is a fragment from my .glade file.

<widget class="GtkButton" id="openButton">
                <property name="visible">True</property>
                <signal name="clicked" handler="openButtonListener"/>
                  <widget class="GtkImage" id="image1">
                    <property name="visible">True</property>
                    <property name="stock">gtk-open</property>
                    <property name="icon_size">6</property>

...and the following is my application code

#include <gtk/gtk.h>
#include <glade/glade.h>

void openButtonListener( GtkButton *openButton,
                   gpointer   data )
    g_print ("Hello World\n");

int main(int argc, char **argv)
    GladeXML *xml;
    GtkWidget *widget;
    gtk_init(&argc, &argv);
    xml = glade_xml_new("Main.glade", NULL, NULL);

    /* get a widget (useful if you want to change something) */
    widget = glade_xml_get_widget(xml, "window1");

    /* connect signal handlers */

    gtk_widget_show (widget);
    gtk_container_set_reallocate_redraws (GTK_CONTAINER (widget), TRUE);

    return 0;

when I try to execute my .exe i have the following :

(ProvaMMI.exe:1808): libglade-WARNING **: could not find signal handler 'openButtonListener'.
What is wrong in my application ?



 L'email della prossima generazione? Puoi averla con la  nuova Yahoo! Mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20070214/d3651a41/attachment.html 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]