G_MODULE_EXPORT void gthumb_extension_activate (void) { gth_main_register_metadata_category (comments_metadata_category); gth_main_register_metadata_info_v (comments_metadata_info); gth_main_register_metadata_provider (GTH_TYPE_METADATA_PROVIDER_COMMENT); gth_main_register_object (GTH_TYPE_TEST, "comment::note", GTH_TYPE_TEST_SIMPLE, "attributes", "comment::note", "display-name", _("Description"), "data-type", GTH_TEST_DATA_TYPE_STRING, "get-data-func", get_comment_for_test, NULL); gth_main_register_object (GTH_TYPE_TEST, "comment::place", GTH_TYPE_TEST_SIMPLE, "attributes", "comment::place", "display-name", _("Place"), "data-type", GTH_TEST_DATA_TYPE_STRING, "get-data-func", get_place_for_test, NULL); gth_main_register_object (GTH_TYPE_TEST, "comment::category", GTH_TYPE_TEST_CATEGORY, "attributes", "comment::categories", "display-name", _("Tag"), NULL); gth_hook_add_callback ("add-sidecars", 10, G_CALLBACK (comments__add_sidecars_cb), NULL); gth_hook_add_callback ("read-metadata-ready", 10, G_CALLBACK (comments__read_metadata_ready_cb), NULL); if (gth_main_extension_is_active ("edit_metadata")) gth_hook_add_callback ("delete-metadata", 10, G_CALLBACK (comments__delete_metadata_cb), NULL); gth_hook_add_callback ("gth-browser-construct", 10, G_CALLBACK (comments__gth_browser_construct_cb), NULL); }
G_MODULE_EXPORT void pix_extension_activate (void) { gth_hook_add_callback ("gth-browser-construct", 10, G_CALLBACK (ip__gth_browser_construct_cb), NULL); gth_hook_add_callback ("gth-browser-update-sensitivity", 10, G_CALLBACK (ip__gth_browser_update_sensitivity_cb), NULL); gth_hook_add_callback ("dlg-preferences-construct", 40, G_CALLBACK (ip__dlg_preferences_construct_cb), NULL); gth_hook_add_callback ("dlg-preferences-apply", 10, G_CALLBACK (ip__dlg_preferences_apply_cb), NULL); }
G_MODULE_EXPORT void gthumb_extension_activate (void) { gth_main_register_type ("edit-metadata-dialog-page", GTH_TYPE_EDIT_COMMENT_PAGE); gth_hook_add_callback ("gth-browser-construct", 5, G_CALLBACK (edit_metadata__gth_browser_construct_cb), NULL); gth_hook_add_callback ("gth-browser-set-current-page", 5, G_CALLBACK (edit_metadata__gth_browser_set_current_page_cb), NULL); gth_hook_add_callback ("gth-browser-update-sensitivity", 10, G_CALLBACK (edit_metadata__gth_browser_update_sensitivity_cb), NULL); }
G_MODULE_EXPORT void gthumb_extension_activate (void) { gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_SAVE); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_SAVE_AS); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_UNDO); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_REDO); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_ADJUST_CONTRAST); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_ADJUST_COLORS); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_SHARPEN); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_EQUALIZE); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_GRAYSCALE); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_NEGATIVE); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_ROTATE_LEFT); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_ROTATE_RIGHT); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_MIRROR); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_FLIP); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_ROTATE); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_RESIZE); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_CROP); gth_hook_add_callback ("gth-browser-file-list-key-press", 10, G_CALLBACK (file_tools__gth_browser_file_list_key_press_cb), NULL); }
G_MODULE_EXPORT void gthumb_extension_activate (void) { /** * Called after successfully rotating a jpeg image * * @out_buffer (void **): pointer to file data * @out_buffer_size (gsize *): pointer to file data size * @tranform (GthTransform *): the transformation applied to the file **/ gth_hook_register ("jpegtran-after", 3); gth_hook_add_callback ("gth-browser-construct", 10, G_CALLBACK (ir__gth_browser_construct_cb), NULL); gth_hook_add_callback ("gth-browser-update-sensitivity", 10, G_CALLBACK (ir__gth_browser_update_sensitivity_cb), NULL); gth_hook_add_callback ("gth-browser-file-list-key-press", 10, G_CALLBACK (ir__gth_browser_file_list_key_press_cb), NULL); }
G_MODULE_EXPORT void gthumb_extension_activate (void) { /** * Called to delete a file metadata * * @file (GFile *): the file * @buffer (void **buffer): the file content * @size (gsize *): the file size **/ gth_hook_register ("delete-metadata", 3); gth_main_register_type ("edit-comment-dialog-page", GTH_TYPE_EDIT_GENERAL_PAGE); gth_hook_add_callback ("gth-browser-construct", 7, G_CALLBACK (edit_metadata__gth_browser_construct_cb), NULL); gth_hook_add_callback ("gth-browser-set-current-page", 5, G_CALLBACK (edit_metadata__gth_browser_set_current_page_cb), NULL); gth_hook_add_callback ("gth-browser-update-sensitivity", 10, G_CALLBACK (edit_metadata__gth_browser_update_sensitivity_cb), NULL); gth_hook_add_callback ("gth-browser-file-list-key-press", 10, G_CALLBACK (edit_metadata__gth_browser_file_list_key_press_cb), NULL); }
G_MODULE_EXPORT void gthumb_extension_activate (void) { gth_hook_add_callback ("gth-catalog-load-from-data", 10, G_CALLBACK (search__gth_catalog_load_from_data_cb), NULL); gth_hook_add_callback ("gth-browser-construct", 10, G_CALLBACK (search__gth_browser_construct_cb), NULL); gth_hook_add_callback ("gth-browser-update-extra-widget", 20, G_CALLBACK (search__gth_browser_update_extra_widget_cb), NULL); gth_hook_add_callback ("dlg-catalog-properties", 10, G_CALLBACK (search__dlg_catalog_properties), NULL); gth_hook_add_callback ("dlg-catalog-properties-save", 10, G_CALLBACK (search__dlg_catalog_properties_save), NULL); gth_hook_add_callback ("dlg-catalog-properties-saved", 10, G_CALLBACK (search__dlg_catalog_properties_saved), NULL); gth_hook_add_callback ("gth-organize-task-create-catalog", 10, G_CALLBACK (search__gth_organize_task_create_catalog), NULL); }
G_MODULE_EXPORT void gthumb_extension_activate (void) { gth_hook_add_callback ("gth-browser-construct", 10, G_CALLBACK (pb__gth_browser_construct_cb), NULL); }
G_MODULE_EXPORT void gthumb_extension_activate (void) { gth_hook_add_callback ("gth-browser-construct", 35, G_CALLBACK (cf__gth_browser_construct_cb), NULL); gth_hook_add_callback ("gth-browser-update-sensitivity", 10, G_CALLBACK (cf__gth_browser_update_sensitivity_cb), NULL); }
G_MODULE_EXPORT void gthumb_extension_activate (void) { gth_hook_add_callback ("gth-browser-construct", 10, G_CALLBACK (bookmarks__gth_browser_construct_cb), NULL); gth_hook_add_callback ("gth-browser-construct-idle-callback", 10, G_CALLBACK (bookmarks__gth_browser_construct_idle_callback_cb), NULL); }
G_MODULE_EXPORT void gthumb_extension_activate (void) { /** * Called to create the catalog class from the given file content. * * @buffer (const char *): the file content. * @return (GthCatalog *): return a pointer to the object that can * handle the catalog data, or NULL if the data type doesn't match. **/ gth_hook_register ("gth-catalog-load-from-data", 1); /** * Called to update the catalog data from a given file data. * * @catalog (GthCatalog *): the catalog to update * @file_data (GthFileData *): the file data **/ gth_hook_register ("gth-catalog-read-metadata", 2); /** * Called to update the file metadata from a catalog. * * @catalog (GthCatalog *): the catalog * @file_data (GthFileData *): the file data to update **/ gth_hook_register ("gth-catalog-write-metadata", 2); /** * Called to update the catalog from a xml file. * * @catalog (GthCatalog *): * @root (DomElement *): */ gth_hook_register ("gth-catalog-read-from-doc", 2); /** * Called to update a xml file from a catalog. * * @catalog (GthCatalog *): * @doc (DomDocument *): * @root (DomElement *): */ gth_hook_register ("gth-catalog-write-to-doc", 3); /** * Called to add sections to the catalog properties dialog. * * @builder (GtkBuilder *): the builder relative to the window * @file_data (GthFileData *): the catalog file * @catalog (GthCatalog *): the catalog data **/ gth_hook_register ("dlg-catalog-properties", 3); /** * Called to save the properties dialog changes. * * @builder (GtkBuilder *): the builder relative to the window * @file_data (GthFileData *): the catalog file * @catalog (GthCatalog *): the catalog data **/ gth_hook_register ("dlg-catalog-properties-save", 3); /** * Called after saving the catalog properties. * * @browser (GthBrowser *): the main window * @file_data (GthFileData *): the catalog file * @catalog (GthCatalog *): the catalog data **/ gth_hook_register ("dlg-catalog-properties-saved", 3); /** * Called to create a catalog when organizing files in catalogs. * * @data (GthGroupPolicyData *): a structure that contains in and out * parameters, as described in gth-organize-task.h **/ gth_hook_register ("gth-organize-task-create-catalog", 1); gth_hook_add_callback ("command-line-files", 10, G_CALLBACK (catalogs__command_line_files_cb), NULL); gth_hook_add_callback ("gth-catalog-load-from-data", 10, G_CALLBACK (catalogs__gth_catalog_load_from_data_cb), NULL); gth_main_register_file_source (GTH_TYPE_FILE_SOURCE_CATALOGS); gth_hook_add_callback ("initialize", 10, G_CALLBACK (catalogs__initialize_cb), NULL); gth_hook_add_callback ("gth-browser-construct", 10, G_CALLBACK (catalogs__gth_browser_construct_cb), NULL); gth_hook_add_callback ("gth-browser-update-sensitivity", 10, G_CALLBACK (catalogs__gth_browser_update_sensitivity_cb), NULL); gth_hook_add_callback ("gth-browser-folder-tree-popup-before", 10, G_CALLBACK (catalogs__gth_browser_folder_tree_popup_before_cb), NULL); gth_hook_add_callback ("gth-browser-load-location-after", 10, G_CALLBACK (catalogs__gth_browser_load_location_after_cb), NULL); gth_hook_add_callback ("gth-browser-update-extra-widget", 10, G_CALLBACK (catalogs__gth_browser_update_extra_widget_cb), NULL); gth_hook_add_callback ("gth-browser-file-renamed", 10, G_CALLBACK (catalogs__gth_browser_file_renamed_cb), NULL); }
G_MODULE_EXPORT void gthumb_extension_activate (void) { int p; gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_SAVE); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_SAVE_AS); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_UNDO); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_REDO); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_ADJUST_CONTRAST); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_ADJUST_COLORS); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_SHARPEN); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_GRAYSCALE); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_CURVES); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_EFFECTS); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_COLOR_PICKER); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_ROTATE_LEFT); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_ROTATE_RIGHT); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_MIRROR); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_FLIP); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_ROTATE); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_RESIZE); gth_main_register_type ("file-tools", GTH_TYPE_FILE_TOOL_CROP); gth_hook_add_callback ("gth-browser-file-list-key-press", 10, G_CALLBACK (file_tools__gth_browser_file_list_key_press_cb), NULL); /** * Add a filter to the filter list shown in the Effects tool * * @filter_grid (GthFilterGrid*): the filter grid to add the effect to. **/ gth_hook_register ("add-special-effect", 1); p = 10; gth_hook_add_callback ("add-special-effect", p++, G_CALLBACK (desert_add_to_special_effects), NULL); gth_hook_add_callback ("add-special-effect", p++, G_CALLBACK (cherry_add_to_special_effects), NULL); gth_hook_add_callback ("add-special-effect", p++, G_CALLBACK (soil_add_to_special_effects), NULL); gth_hook_add_callback ("add-special-effect", p++, G_CALLBACK (artic_add_to_special_effects), NULL); gth_hook_add_callback ("add-special-effect", p++, G_CALLBACK (fresh_blue_add_to_special_effects), NULL); gth_hook_add_callback ("add-special-effect", p++, G_CALLBACK (mangos_add_to_special_effects), NULL); gth_hook_add_callback ("add-special-effect", p++, G_CALLBACK (warmer_add_to_special_effects), NULL); gth_hook_add_callback ("add-special-effect", p++, G_CALLBACK (cooler_add_to_special_effects), NULL); gth_hook_add_callback ("add-special-effect", p++, G_CALLBACK (vintage_add_to_special_effects), NULL); gth_hook_add_callback ("add-special-effect", p++, G_CALLBACK (lomo_add_to_special_effects), NULL); gth_hook_add_callback ("add-special-effect", p++, G_CALLBACK (vignette_add_to_special_effects), NULL); gth_hook_add_callback ("add-special-effect", p++, G_CALLBACK (blurred_edges_add_to_special_effects), NULL); gth_hook_add_callback ("add-special-effect", p++, G_CALLBACK (negative_add_to_special_effects), NULL); }