![]() | ![]() | ![]() | ![]() |
#define GAL_VIEW_COLLECTION_TYPE typedef GalViewCollection; GalViewCollection* gal_view_collection_new (void); void gal_view_collection_set_storage_directories (GalViewCollection *collection, char *system_dir, char *local_dir); void gal_view_collection_add_factory (GalViewCollection *collection, GalViewFactory *factory); void gal_view_collection_display_view (GalViewCollection *collection, GalView *view);
"display-view" void user_function (GalViewCollection *galviewcollection, GtkObject *arg1, gpointer user_data);
typedef struct { GtkObject base; GList *view_list; GList *factory_list; } GalViewCollection;
GalViewCollection* gal_view_collection_new (void);
A collection of views and view factories.
Returns : |
|
void gal_view_collection_set_storage_directories (GalViewCollection *collection, char *system_dir, char *local_dir);
Sets up the GalViewCollection.
collection : | The view collection to initialize |
system_dir : | The location of the system built in views |
local_dir : | The location to store the users set up views |
void gal_view_collection_add_factory (GalViewCollection *collection, GalViewFactory *factory);
Adds the given factory to this collection. This list is used both when loading views from their xml description as well as when the user tries to create a new view.
collection : | The view collection to add a factory to |
factory : | The factory to add. The |
void gal_view_collection_display_view (GalViewCollection *collection, GalView *view);
collection : | The GalViewCollection to send the signal on. |
view : | The view to display. |
void user_function (GalViewCollection *galviewcollection, GtkObject *arg1, gpointer user_data);
galviewcollection : | the object which received the signal. |
arg1 : | |
user_data : | user data set when the signal handler was connected. |
<<< GalView | GalDefineViewsModel >>> |