Re[2]: GtkDialog Usage
- From: jan jakon <janjakon mail ru>
- To: Harring Figueiredo <harringf yahoo com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re[2]: GtkDialog Usage
- Date: Sat, 25 Dec 2004 18:49:21 +0300
The main idea: didn't create dialog each time, because it required too much time,
create it once.
But in any way it didn't help.
I try this code:
#if 0
if(dialog){
gint res=gtk_dialog_run(dialog);
return res;
}
#endif
dialog = gtk_dialog_new();
//fill dialog with widgest
gint res=gtk_dialog_run(dilog);
gtk_widget_destroy(GTK_WINDOW(dialog));
dialog=NULL;
return res;
But it DIDN'T solve the problem.
-----Original Message-----
From: Harring Figueiredo <harringf yahoo com>
To: jan jakon <janjakon mail ru>
Date: Sat, 25 Dec 2004 07:34:30 -0800 (PST)
Subject: Re: GtkDialog Usage
--- jan jakon <janjakon mail ru> wrote:
Hello.
I have problem with GtkDialog.
In my application there is main window, on main window there is button wich
activate
the follow code:
if(dialog){
gint res=gtk_dialog_run(GTK_DIALOG(window));
return res;
}
dialog = gtk_dialog_new();
//fill dialog with widgest
gint res=gtk_dialog_run(GTK_DIALOG(window));
return res;
If I didn't click on button which show dialog all right.
But if I click, then after close main window program still alive,
and only Ctrl+C help to close it.
You are not destroying the dialog.
try gtk_widget_destroy(dialog);
once you are done with it.
Harring
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
___________________________________________________________
Mail.ru напоминает что у отправителя этого письма скоро день рождения:)
___________________________________________________________
Путешествие - безупречный подарок ко Дню Рождения!
Теперь его можно подарить красиво.
http://r.mail.ru/cln2625/www.Puteshestvie.ru
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]