Please!!

Help..


Às 17:08 de 06/09/2017, Rúben Rodrigues escreveu:
> 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
>
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to