GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

g_signal_emit_by_name issue

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
pcgeil



Joined: 07 Apr 2008
Posts: 1

PostPosted: Mon Apr 07, 2008 8:44 pm    Post subject: g_signal_emit_by_name issue Reply with quote

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: (C)
1
2
3
4
5
6
7
8
9
10

// 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]
Back to top
openldev
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 372
Location: State College, Pennsylvania

PostPosted: Mon Apr 07, 2008 10:25 pm    Post subject: Reply with quote

Look at this documentation: http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#g-signal-emit-by-name

button-press-event has a return type of gboolean, so you need to provide a place for it!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP