Re: Issue with gtk+ 2.8.15 for win32
- From: Elden Armbrust <earmbrust xero-soft com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Issue with gtk+ 2.8.15 for win32
- Date: Sat, 25 Mar 2006 07:11:36 -0500
The whole thing is quite confusing. The code in the tutorial on the gtk
site uses destroy_event, but uses g_signal_connect.
Glade, however, appears to be using gtk_signal_connect. This, I assume,
is why the tutorial code worked while the glade code didn't.
So for future reference:
Use g_signal_connect, rather than gtk_signal_connect.
I may have found out how to specifically use gtk-wimp per application.
When I have I will update this thread with my findings.
Thanks guys.
-Elden Armbrust
David Necas (Yeti) wrote:
On Fri, Mar 24, 2006 at 09:11:26PM -0600, Nickolai Dobrynin wrote:
1. Use "destroy" rather than "destroy_event" as the second argument to your
call. "destroy" is a signal rather than an event.
That was confusing.
"destroy-event" (note the use of underscores was deprecated)
is a signal too. Some signals are emitted as a consequence
of events, others are emitted on other occasions, but that
does not make the former less signalish.
The reason why callbacks connected to "destroy-event" are
almost always useless is different:
http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#GtkWidget-destroy-event
Yeti
--
That's enough.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]