Re: FileChooserDialog



On Tue, 2009-02-10 at 05:45 -0500, Damon Register wrote:
> > What is the actual error that you experience?
> When I close the application I get
> 
> (hello.exe:2684): GLib-GObject-CRITICAL **: g_object_unref: assertion
> `G_IS_OBJECT (object)' failed

I have tried with your C test case (attached), built like so:
gcc libglade_filechooserbutton.c `pkg-config libglade-2.0 --cflags
--libs`

I don't see that warning when opening and closing the application.

It looks like you are using MS Windows. Maybe someone else can try to
reproduce this error?

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com
#include <gtk/gtk.h>
#include <glade/glade.h>

int main(int argc, char *argv[])
{
     GladeXML *xml;
     GtkWidget *window;

     gtk_init(&argc, &argv);

     xml = glade_xml_new("hello.glade", NULL, NULL);
     window = glade_xml_get_widget (xml, "hello_main_window");

     g_signal_connect (G_OBJECT (window), "delete-event", G_CALLBACK (gtk_main_quit), NULL);
     gtk_widget_show_all (window);

     gtk_main();
     g_object_unref (G_OBJECT (xml));
     g_print( "it finished !\n" );

     return 0;
}

Attachment: hello.glade
Description: application/glade



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