Hi,

trying to use glade_xml_get_widget(...)->allocation.x tells me: Segmentation fault although i followed the documentation.
What I need is the absolute position of the gtk/glade(xml) window and my source looks like:
Code:
int main2( int argc, char **argv )
{
	const gchar *home_path;
	gchar *full_path;
	GladeXML *xml;
	GtkMoz gmoz = { 0, 0, 0 };
	GtkEntryCompletion *comp;

	gtk_set_locale();
	gtk_init( &argc, &argv );

  home_path = g_get_home_dir();

  if( !home_path ){
    g_printerr( "Failed to get HOME\n" );
    return 1;
  }

	full_path = g_build_filename( home_path, ".gtkmoz", NULL );

	gtk_moz_embed_set_profile_path( full_path, "gtkmoz" );

	g_free( full_path );
	
	full_path = g_build_filename( home_path, "mozilla", "dist", "bin", NULL );

	gtk_moz_embed_set_comp_path( full_path );

	g_free( full_path );

	xml = glade_xml_new( "gtkmoz.glade", NULL, NULL );

	gmoz.moz_embed = (GtkMozEmbed*)glade_xml_get_widget( xml, "browser" );
	gmoz.url_entry = (GtkEntry*)glade_xml_get_widget( xml, "url_entry" );
	gmoz.txtUserAgent = (GtkEntry*)glade_xml_get_widget( xml, "txtUserAgent" );
	
	// set up entry completion
	comp = gtk_entry_completion_new();
	gmoz.entry_model = (GtkTreeModel*)gtk_list_store_new( 1, G_TYPE_STRING );
	gtk_entry_set_completion( GTK_ENTRY( gmoz.url_entry ), comp );
	g_object_unref( comp );
	gtk_entry_completion_set_model( comp, gmoz.entry_model );
	g_object_unref( G_OBJECT( gmoz.entry_model ) );
	gtk_entry_completion_set_text_column( comp, 0 );

	// set up signal handlers 
	glade_xml_signal_connect( xml, "on_window1_destroy", gtk_main_quit );
	glade_xml_signal_connect_data( xml, "on_url_entry_activate", G_CALLBACK( load_url ), &gmoz );
	glade_xml_signal_connect_data( xml, "on_back_button_clicked", G_CALLBACK( back_button ), &gmoz );
	glade_xml_signal_connect_data( xml, "on_forward_button_clicked", G_CALLBACK( forward_button ), &gmoz );
	glade_xml_signal_connect_data( xml, "on_refresh_button_clicked", G_CALLBACK( refresh_page ), &gmoz );
	glade_xml_signal_connect_data( xml, "on_stop_button_clicked", G_CALLBACK( stop_button ), &gmoz );

	// connect gtkmozembed signals
	g_signal_connect( gmoz.moz_embed, "location", G_CALLBACK( update_url_entry ), &gmoz );

	g_object_unref( G_OBJECT( xml ) );
	refresh_page( NULL, &gmoz );

	gtk_entry_set_text( GTK_ENTRY( gmoz.url_entry ), "http://www.ipchecker.mb-media.at/sigtux_user.php" );

	
	gint wx, wy;
	//GdkModifierType state = (GdkModifierType)0;
	//gdk_window_get_pointer( NULL, &wx, &wy, &state );
	//std::cout << "\n\t" << wx << "; " << wy << "\n";
	std::cout << glade_xml_get_widget( xml, "browser" )->allocation.x; // => Segmentation fault (core dump)
	
	gtk_main();

	return 0;
}
I use glade_xml_get_widget( xml, "browser" ) two times, but the second time, when i want to get know details about the position of the widget/window, it dies

Hope for help.
Thanks.
Best regards