Re: gtk+-linux-fb-2.0 won't quit.
- From: André Pedralho <asp ufam edu br>
- To: "Miven Dooligan" <mdooligan gawab com>
- Cc: gtk-list gnome org
- Subject: Re: gtk+-linux-fb-2.0 won't quit.
- Date: Mon, 8 Nov 2004 13:01:58 -0200 (BRST)
I think u are talking about this... Did you make a connection signal to
shut it down??
static void destroy( GtkWidget *widget,
gpointer data )
{
gtk_main_quit ();
}
main() {
. . .
/* This will cause the window to be destroyed by calling
* gtk_widget_destroy(window) when "clicked". Again, the destroy
* signal could come from here, or the window manager. */
g_signal_connect_swapped (G_OBJECT (button), "clicked",
G_CALLBACK (gtk_widget_destroy),
G_OBJECT (window));
. . .
/* and the window */
gtk_widget_show (window);
/* All GTK applications must have a gtk_main(). Control ends here
* and waits for an event to occur (like a key press or
* mouse event). */
gtk_main ();
return 0;
}
> When I link to gtk+-linux-fb-2.0 it works fine, except I cannot
> get it to shut down, I have to manually kill the process.
> What am I missing? How do I get it to drop out
> the bottom of gtk_main()?
>
> --
> Peace and Cheer
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
André Pedralho
Nokia Institute of Technology - Linux Embemded Lab
Amazonas Federal University - VoIP Lab
AM - Brazil
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]