Re: Why this comportment ? (more precise)



you can use :
gtk_signal_connect_object (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC
(user_func), GTK_OBJECT(window));
user_func()
{
gtk_main_quit();
}
Bye
Amit Jain

----- Original Message -----
From: "lomba" <lomba pressemicro net>
To: <gtk-list gnome org>
Sent: Wednesday, November 20, 2002 5:03 PM
Subject: Why this comportment ? (more precise)


> ----- Original Message -----
> From: "lomba" <lomba pressemicro net>
> To: <gtk-list gnome org>
> Sent: Wednesday, November 20, 2002 12:09 AM
> Subject: Why this comportment ?
>
>
> > Hello,
> >
> > i've a big problem with gtk... I create a window, with many elements and
a
> > simple button which has to destroy the window when I click on it.
> > I use a gtk_signal_connect with the fonction _widget_destroy and the
name
> of
> > the window in parameter. Unfortunately, this is my button which
disappear
> > and not my window. A solution ?
> Hi,
>
> I just want to add that this window is not the main window : I can't do a
> gtk_main_quit.
> And my signal is like :
> gtk_signal_connect_object (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC
> (gtk_widget_destroy), GTK_OBJECT(window));
>
> bye
> --
> lomba
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>




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