GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Oct 31, 2014 9:53 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: g_signal_emit_by_name issue
PostPosted: Mon Apr 07, 2008 8:44 pm 
Offline

Joined: Mon Apr 07, 2008 8:37 pm
Posts: 2
Hi,

But I just wrote an GTK+ Application and this warning occures.
I had to emit a signal to an Event-Box by hand.

Code:
// this is my signal connect
g_signal_connect( GTK_OBJECT( button_help_event ), "button_press_event", G_CALLBACK( button_help_fkt ), NULL );

// here i want to call the signal by hand
g_signal_emit_by_name( G_OBJECT(button_help_event),"button_press_event");

// and this is the warning
(test:5862): GLib-GObject-WARNING **: gsignal.c:2217: value location for `gboolean' passed as NULL


Can anyone help me fixing this problem?
Or do I have to emit a signal different as I do now?

Thx,
PCGeil[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 07, 2008 10:25 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
Look at this documentation: http://library.gnome.org/devel/gobject/ ... it-by-name

button-press-event has a return type of gboolean, so you need to provide a place for it!

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group