Commit 0216d04dd3ea9867778840cd3271b2971a0b9690

Authored by perry.werneck@gmail.com
1 parent d5364c6b
Exists in master and in 1 other branch develop

Pesquisando erros aleatorios em win64

Showing 1 changed file with 7 additions and 2 deletions   Show diff stats
widget.c
... ... @@ -220,11 +220,14 @@ void v3270_popup_message(GtkWidget *widget, LIB3270_NOTIFY type , const gchar *t
220 220 GtkMessageType msgtype = GTK_MESSAGE_WARNING;
221 221 GtkButtonsType buttons = GTK_BUTTONS_OK;
222 222  
223   - trace("%s: widget=%p",__FUNCTION__,widget);
224   -
225 223 if(widget && GTK_IS_WIDGET(widget))
226 224 toplevel = gtk_widget_get_toplevel(GTK_WIDGET(widget));
227 225  
  226 + if(!GTK_IS_WINDOW(toplevel))
  227 + toplevel = NULL;
  228 +
  229 + trace("%s: widget=%p toplevel=%p",__FUNCTION__,widget,toplevel);
  230 +
228 231 if(type == LIB3270_NOTIFY_CRITICAL)
229 232 {
230 233 msgtype = GTK_MESSAGE_ERROR;
... ... @@ -253,6 +256,8 @@ void v3270_popup_message(GtkWidget *widget, LIB3270_NOTIFY type , const gchar *t
253 256 gtk_widget_show_all(dialog);
254 257 gtk_dialog_run(GTK_DIALOG (dialog));
255 258 gtk_widget_destroy(dialog);
  259 +
  260 + trace("%s ends",__FUNCTION__);
256 261 }
257 262  
258 263 static void v3270_class_init(v3270Class *klass)
... ...