Append the correct number of null bytes to the end of recoded strings
[pspp] / src / ui / gui / psppire-dialog.c
index f3703993b5bbb59e0e64483c69871a732adce7aa..5726cc76a941df4f5751328a08fa41ea29794d59 100644 (file)
@@ -424,7 +424,7 @@ psppire_dialog_run (PsppireDialog *dialog)
     g_warning ("PsppireDialog %s has no title", gtk_widget_get_name (GTK_WIDGET (dialog)));
   
   if ( dialog->contents_are_valid != NULL )
-    gtk_container_foreach (gtk_bin_get_child(GTK_BIN(dialog)),
+    gtk_container_foreach (GTK_CONTAINER (gtk_bin_get_child(GTK_BIN(dialog))),
                           connect_notify_signal,
                           dialog);
 
@@ -437,9 +437,7 @@ psppire_dialog_run (PsppireDialog *dialog)
 
   g_signal_emit (dialog, signals [DIALOG_REFRESH], 0);
 
-  gdk_threads_leave ();
   g_main_loop_run (dialog->loop);
-  gdk_threads_enter ();
 
   g_main_loop_unref (dialog->loop);