void atras(){ set_date_and_time (); GtkWindow *mainWindow=priv->ventana; GtkWindow *second=priv->ventana1; //g_print(priv->ventana1); switch_window (second,mainWindow); //g_print(priv->ventana1); //priv->ventana1 = GTK_WINDOW (gtk_builder_get_object (builder, "OK")); }
void enviar(){ GtkWindow *mainWindow=priv->window; GtkWindow *second=priv->window1; //gchar *res; //g_stpcpy (res,"Bienvenido "); //gtk_label_set_text (priv->l_result,g_strconcat(res,gtk_entry_get_text(priv->e_nombre),NULL)); char str[80]; sprintf(str,"Bienvenido %s",gtk_entry_get_text(priv->e_nombre)); //gtk_label_set_text (priv->l_result,gtk_entry_get_text(priv->e_nombre)); gtk_label_set_text (priv->l_result,str); switch_window (mainWindow,second); }
void fs_emu_handle_libfsemu_action(int action, int state) { if (g_fs_log_input) fs_log("fs_emu_handle_libfsemu_action %d %d\n", action, state); switch (action) { case FS_EMU_ACTION_FULL_KEYBOARD: if (state) { fs_emu_set_full_keyboard_emulation( !fs_emu_full_keyboard_emulation(), true); } break; case FS_EMU_ACTION_FULLSCREEN: if (state) fs_emu_toggle_fullscreen(); break; case FS_EMU_ACTION_GRAB_INPUT: if (state) { if (g_fs_emu_grab_input_on_mod_release) { /* We had grapped the input, but is holding the modifier * key. So we just don't ungrab on release. */ g_fs_emu_grab_input_on_mod_release = false; fs_emu_show_cursor_msec(FS_EMU_MOUSE_DEFAULT_DURATION); } else { fs_emu_set_input_grab(!fs_emu_input_grab()); } } break; case FS_EMU_ACTION_MENU_ALT: if (state) fs_emu_menu_toggle(); break; case FS_EMU_ACTION_PAUSE: if (state) fs_emu_pause(!fs_emu_is_paused()); break; case FS_EMU_ACTION_QUIT: if (state) fs_emu_quit(); break; case FS_EMU_ACTION_SCREENSHOT: if (state) g_fs_emu_screenshot = 1; break; case FS_EMU_ACTION_SPECIAL: if (state) special_function(); break; case FS_EMU_ACTION_SWITCH_WINDOW: if (state) switch_window(); break; case FS_EMU_ACTION_TAUNT: if (state) taunt(); break; case FS_EMU_ACTION_VOLUME_DOWN: if (state) fs_emu_volume_control(-2); break; case FS_EMU_ACTION_VOLUME_MUTE: if (state) fs_emu_volume_control(-1); break; case FS_EMU_ACTION_VOLUME_UP: if (state) fs_emu_volume_control(-3); break; case FS_EMU_ACTION_WARP: if (state) { /* FIXME: UAE-specific hot key hack for warp function, * should be moved out of libfsemu. */ fs_emu_queue_input_event(0x00010000 | 275); } break; case FS_EMU_ACTION_ZOOM: if (state) { fs_emu_toggle_zoom(0); } break; case FS_EMU_ACTION_ZOOM_BORDER: if (state) { fs_emu_toggle_zoom(1); } break; case FSE_ACTION_CYCLE_STRETCH_MODE: if (state) { fse_cycle_stretch_mode(); } break; } }
void entrar(){ GtkWindow *mainWindow=priv->ventana; GtkWindow *second=priv->ventana1; set_text(); switch_window (mainWindow,second); }