comparison command.c @ 33731:81f71d910333

Cosmetic: Change prefix for symbolic constants from GMP to GUI. GMP could be confused with the GNU Multiple Precision Arithmetic Library. Additionally, rename NEW_FILE SET_FILE and PREPARATION PREPARE to phrase requests.
author ib
date Tue, 05 Jul 2011 12:05:06 +0000
parents f3361b27a151
children a93891202051
comparison
equal deleted inserted replaced
33730:b4c64f168b29 33731:81f71d910333
1073 return M_PROPERTY_OK; 1073 return M_PROPERTY_OK;
1074 case M_PROPERTY_STEP_UP: 1074 case M_PROPERTY_STEP_UP:
1075 case M_PROPERTY_STEP_DOWN: 1075 case M_PROPERTY_STEP_DOWN:
1076 #ifdef CONFIG_GUI 1076 #ifdef CONFIG_GUI
1077 if (use_gui) 1077 if (use_gui)
1078 gui(GMP_RUN_COMMAND, (void *) MP_CMD_VO_FULLSCREEN); 1078 gui(GUI_RUN_COMMAND, (void *) MP_CMD_VO_FULLSCREEN);
1079 else 1079 else
1080 #endif 1080 #endif
1081 if (vo_config_count) 1081 if (vo_config_count)
1082 mpctx->video_out->control(VOCTRL_FULLSCREEN, 0); 1082 mpctx->video_out->control(VOCTRL_FULLSCREEN, 0);
1083 return M_PROPERTY_OK; 1083 return M_PROPERTY_OK;
2799 #ifdef CONFIG_GUI 2799 #ifdef CONFIG_GUI
2800 if (use_gui) { 2800 if (use_gui) {
2801 int i = 0; 2801 int i = 0;
2802 if (n > 0) 2802 if (n > 0)
2803 for (i = 0; i < n; i++) 2803 for (i = 0; i < n; i++)
2804 gui(GMP_RUN_COMMAND, (void *)MP_CMD_PLAY_TREE_STEP); 2804 gui(GUI_RUN_COMMAND, (void *)MP_CMD_PLAY_TREE_STEP);
2805 else 2805 else
2806 for (i = 0; i < -1 * n; i++) 2806 for (i = 0; i < -1 * n; i++)
2807 gui(GMP_RUN_COMMAND, (void *)-MP_CMD_PLAY_TREE_STEP); 2807 gui(GUI_RUN_COMMAND, (void *)-MP_CMD_PLAY_TREE_STEP);
2808 } else 2808 } else
2809 #endif 2809 #endif
2810 { 2810 {
2811 if (!force && mpctx->playtree_iter) { 2811 if (!force && mpctx->playtree_iter) {
2812 play_tree_iter_t *i = 2812 play_tree_iter_t *i =
2964 2964
2965 case MP_CMD_STOP: 2965 case MP_CMD_STOP:
2966 #ifdef CONFIG_GUI 2966 #ifdef CONFIG_GUI
2967 // playtree_iter isn't used by the GUI 2967 // playtree_iter isn't used by the GUI
2968 if (use_gui) 2968 if (use_gui)
2969 gui(GMP_RUN_COMMAND, (void *)MP_CMD_STOP); 2969 gui(GUI_RUN_COMMAND, (void *)MP_CMD_STOP);
2970 else 2970 else
2971 #endif 2971 #endif
2972 // Go back to the starting point. 2972 // Go back to the starting point.
2973 while (play_tree_iter_up_step 2973 while (play_tree_iter_up_step
2974 (mpctx->playtree_iter, 0, 1) != PLAY_TREE_ITER_END) 2974 (mpctx->playtree_iter, 0, 1) != PLAY_TREE_ITER_END)