~ella-animation/ella/trunk

« back to all changes in this revision

Viewing changes to src/main.c

  • Committer: xapantu
  • Date: 2011-06-04 11:06:03 UTC
  • Revision ID: xapantu@gmail.com-20110604110603-3fncpk7apmnq9h0l
Remove some globale variable, and update the spinbutton when we load a new file

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
  { NULL }
46
46
};
47
47
 
48
 
/* canvas */
49
 
GtkWidget *canvasEditor;
50
 
 
51
 
gint LayerSelected; /* calque actuellement sélectionné, coordonnées ordinateur 0-max */ 
52
 
gboolean fModifiedDrawing = FALSE;/* flag pour savoir si le dessin a été modifié, et agir en conséquence */
53
 
/* source de la GSList des images-clés de chaque calque */
54
 
/* GSList *keyframes_list=NULL;*/
55
 
GtkWidget *pListViewLayers;/* pointeur sur le magasin (store) contenant les calques (layers) */
56
 
gint LayerCount=0; /* nombre total de calques en cours, comptage humain */
57
 
gboolean SelectedArea=FALSE; /* indique si une sélection est en cours */                                                        
58
 
GList *pSelectedItemsList=NULL; /* liste des items, mais VALIDE, sans le fond et l'origine */ 
59
 
/* fin variables externes */  
60
 
GtkWidget *ScrolledWindowTimeLine;
61
 
GtkWidget *ScrolledWindowLayersList;
62
 
GtkWidget *scrolledWindowRuler;
63
48
/* main window geometry */
64
49
static gint x_fen,y_fen,w_fen,h_fen;
65
50
 
 
51
GtkBuilder* ella_main_builder;
 
52
 
66
53
/****************************/
67
54
GtkBuilder* create_window_ella (void)
68
55
{
747
734
    
748
735
    /* Create the main window! */
749
736
    window_ella = create_window_ella();
 
737
    ella_main_builder = window_ella;
750
738
 
751
739
        /* set editor with THOSE values */
752
740
        editor_set_page_width(ella_config_get_value_double("PAGE_WIDTH"));