bool ets_run(void) { #if USE_ETS_TASK #if SDK_BELOW_1_1_1 ets_isr_attach(10, my_timer_isr, NULL); #endif _ets_run(); #else // ets_timer_init(); *(char*)0x3FFFC6FC = 0; ets_intr_lock(); printf("ets_alt_task: ets_run\n"); #if DEBUG dump_tasks(); #endif ets_intr_unlock(); while (1) { if (!ets_loop_iter()) { //printf("idle\n"); ets_intr_lock(); if (idle_cb) { idle_cb(idle_arg); } asm("waiti 0"); ets_intr_unlock(); } } #endif }
static gboolean show_development_warning(void) { GtkWidget *vbox; GtkWidget *label; GtkWidget *warning_dialog; GtkWidget *checkbox; GtkWidget *alignment; gboolean skip; char *text; warning_dialog = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (warning_dialog), "Evolution " VERSION); gtk_window_set_modal (GTK_WINDOW (warning_dialog), TRUE); gtk_dialog_add_button (GTK_DIALOG (warning_dialog), GTK_STOCK_OK, GTK_RESPONSE_OK); gtk_dialog_set_has_separator (GTK_DIALOG (warning_dialog), FALSE); gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (warning_dialog)->vbox), 0); gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (warning_dialog)->action_area), 12); vbox = gtk_vbox_new (FALSE, 12); gtk_container_set_border_width (GTK_CONTAINER (vbox), 12); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (warning_dialog)->vbox), vbox, TRUE, TRUE, 0); text = g_strdup_printf( /* xgettext:no-c-format */ /* Preview/Alpha/Beta version warning message */ _("Hi. Thanks for taking the time to download this preview release\n" "of the Evolution groupware suite.\n" "\n" "This version of Evolution is not yet complete. It is getting close,\n" "but some features are either unfinished or do not work properly.\n" "\n" "If you want a stable version of Evolution, we urge you to uninstall\n" "this version, and install version %s instead.\n" "\n" "If you find bugs, please report them to us at bugzilla.gnome.org.\n" "This product comes with no warranty and is not intended for\n" "individuals prone to violent fits of anger.\n" "\n" "We hope that you enjoy the results of our hard work, and we\n" "eagerly await your contributions!\n"), "2.22.1"); label = gtk_label_new (text); g_free(text); gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0); gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, TRUE, 0); label = gtk_label_new (_("Thanks\n" "The Evolution Team\n")); gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_RIGHT); gtk_misc_set_alignment(GTK_MISC(label), 1, .5); gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, TRUE, 0); checkbox = gtk_check_button_new_with_label (_("Do not tell me again")); alignment = gtk_alignment_new (0.0, 0.0, 0.0, 0.0); gtk_container_add (GTK_CONTAINER (alignment), checkbox); gtk_box_pack_start (GTK_BOX (vbox), alignment, TRUE, TRUE, 0); gtk_widget_show_all (warning_dialog); gtk_dialog_run (GTK_DIALOG (warning_dialog)); skip = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (checkbox)); gtk_widget_destroy (warning_dialog); idle_cb (NULL); return skip; }