Re: gtk+-linux-fb-2.0 won't quit.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-list
>


André Pedralho
Nokia Institute of Technology - Linux Embemded Lab
Amazonas Federal University - VoIP Lab
AM - Brazil
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux