gtk_dialog dead-lock problem
- From: Arkadiusz Krysiak <arkadiusz krysiak wroclaw gmail com>
- To: gtk-app-devel-list gnome org
- Subject: gtk_dialog dead-lock problem
- Date: Wed, 23 Apr 2014 10:29:12 +0200
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]