Re: gtk_dialog dead-lock problem
- From: Jose Paulo <paulo sistemasolar com br>
- To: gtk-app-devel-list gnome org
- Subject: Re: gtk_dialog dead-lock problem
- Date: Mon, 28 Apr 2014 13:45:23 -0300
I believe that you wouldn't invoke gtk_widget_show_all() with GtkDialogs.
Try change to gtk_widget_show(datastruct->label).
José Paulo
Le 23/04/2014 05:29, Arkadiusz Krysiak a écrit :
i'm beginner and i have problem with gtk_dialog.
it's my source code:
{
datastruct->flags=GTK_DIALOG_DESTROY_WITH_PARENT;
datastruct->dialog=gtk_dialog_new_with_buttons
(
"Komunikat",
GTK_WINDOW(parent),
datastruct->flags,
message1,GTK_RESPONSE_OK,
message0,GTK_RESPONSE_REJECT,
NULL
);
datastruct->content_area=gtk_dialog_get_content_area
(GTK_DIALOG(datastruct->dialog));
datastruct->label=gtk_label_new(opis);
gtk_container_add (GTK_CONTAINER (datastruct->content_area),
datastruct->label);
gtk_widget_show_all (datastruct->dialog);
datastruct->data=gtk_dialog_run(GTK_DIALOG(datastruct->dialog));
gtk_widget_destroy(datastruct->dialog);
return(datastruct->data);
}
for main window it's ok but for next level windows line:
datastruct->data=gtk_dialog_run(GTK_DIALOG(datastruct->dialog)); cause
dead-lock.
have any idea for reason.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]