|
|
cuikplay_callbacks.cGo to the documentation of this file.00001 #include "cuikplay.h" 00002 00003 #include "cuikplay_callbacks.h" 00004 #include "cuikplay_interface.h" 00005 #include "cuikplay_support.h" 00006 00007 #include <gtk/gtk.h> 00008 00009 #include <unistd.h> 00010 #include <time.h> 00011 00019 void on_button3_clicked(GtkButton *button, 00020 gpointer user_data) 00021 { 00022 TCuikPlayControl *c; 00023 00024 c=(TCuikPlayControl *)user_data; 00025 c->mode=0; 00026 } 00027 00028 00029 void on_button4_clicked(GtkButton *button, 00030 gpointer user_data) 00031 { 00032 TCuikPlayControl *c; 00033 00034 c=(TCuikPlayControl *)user_data; 00035 c->mode=1; 00036 c->time=(double)time(NULL); 00037 } 00038 00039 void on_hscale1_value_changed(GtkRange *range, 00040 gpointer user_data) 00041 { 00042 TCuikPlayControl *c; 00043 gdouble v; 00044 00045 c=(TCuikPlayControl *)user_data; 00046 00047 v=gtk_range_get_value(range); 00048 c->nextFrame=(unsigned int)v; 00049 00050 #if (_DEBUG>1) 00051 fprintf(stderr,"NextFrame is: %u\n",c->nextFrame); 00052 #endif 00053 } 00054 00055 void on_quit(GtkButton *button, 00056 gpointer user_data) 00057 00058 { 00059 TCuikPlayControl *c; 00060 00061 c=(TCuikPlayControl *)user_data; 00062 c->end=TRUE; 00063 } |