[gedit-list] =?windows-1251?q?I_don=27t_understand_the_function_o?= =?windows-1251?q?f_REAL_and_VIRTUAL_document_and_view=85_in_Gedit_=22mult?= =?windows-1251?q?iviews=22_branch?=



Hi,

I study the source code of Gedit "multiviews" branch (http://git.gnome.org/cgit/gedit/?h=multiviews).

I don't understang the function of REAL and VIRTUAL document and view…

Example :

    enum
    {
        REAL,
        VIRTUAL,
        N_STATES
    };

    typedef struct _Binding
    {
        GeditDocument	   *docs[N_STATES];
        GtkWidget	       *views[N_STATES];
        
        gulong		        insert_text_id[N_STATES];
        gulong		        delete_range_id[N_STATES];
        
        GeditDataBinding       *bindings[LAST_PROPERTY];
    } Binding;

    typedef struct _VirtualDocument
    {
        GList		       *bindings; /* List of Binding */
    } VirtualDocument;

    typedef struct _DestroyData
    {
        GtkWidget *view;
        VirtualDocument *vdoc;
    } DestroyData;

Can you write some information about this part ?

Thanks for your help,
Stephane



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]