Show dialog after hide another
- From: Rúben Rodrigues <ruben_gr live com pt>
- To: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Show dialog after hide another
- Date: Wed, 6 Sep 2017 16:08:07 +0000
Hi guys,
I have i problem when trying to hide a dialog and show another at the
same moment.
I have a dialog that have an OK button that calls this function:
void on_button_Util_Firmware_Update_clicked(GtkButton *button, gpointer
user_data)
{
GtkLabel *gLabel_Result;
FILE *fp;
gchar pcTmp[BUFSIZ];
// Fecha a janela.
gtk_widget_hide(GTK_WIDGET(gtk_widget_get_toplevel(GTK_WIDGET(button))));
// Mostra a janela de espera.
gtk_widget_show(GTK_WIDGET(gtk_builder_get_object(builder,
"Setup_Wait_dialog")));
sleep(10);
//**Running something inside
// Esconde a janela de espera.
gtk_widget_hide(GTK_WIDGET(gtk_builder_get_object(builder,
"Setup_Wait_dialog")));
}
As you can see this is a Waiting dialog to show the status of the
process, but the problem is that don't show the Setup_Wait_dialog and
don't hides the first dialog. What's wrong?
Thanks
---
Este e-mail foi verificado em termos de vírus pelo software antivírus Avast.
https://www.avast.com/antivirus
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]