/* MediaPage.c generated by valac 0.34.4, the Vala compiler * generated from MediaPage.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. * * This software is licensed under the GNU LGPL (version 2.1 or later). * See the COPYING file in this distribution. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define TYPE_DATA_OBJECT (data_object_get_type ()) #define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) #define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) #define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) #define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) #define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) typedef struct _DataObject DataObject; typedef struct _DataObjectClass DataObjectClass; typedef struct _DataObjectPrivate DataObjectPrivate; #define TYPE_ALTERATION (alteration_get_type ()) #define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) #define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) #define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) #define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) #define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) typedef struct _Alteration Alteration; typedef struct _AlterationClass AlterationClass; #define TYPE_DATA_COLLECTION (data_collection_get_type ()) #define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) #define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) #define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) #define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) #define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) typedef struct _DataCollection DataCollection; typedef struct _DataCollectionClass DataCollectionClass; #define TYPE_DATA_VIEW (data_view_get_type ()) #define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) #define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) #define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) #define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) #define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) typedef struct _DataView DataView; typedef struct _DataViewClass DataViewClass; typedef struct _DataViewPrivate DataViewPrivate; #define TYPE_DATA_SOURCE (data_source_get_type ()) #define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) #define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) #define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) #define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) #define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) typedef struct _DataSource DataSource; typedef struct _DataSourceClass DataSourceClass; #define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) #define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) #define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) #define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) #define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) #define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) typedef struct _ThumbnailView ThumbnailView; typedef struct _ThumbnailViewClass ThumbnailViewClass; typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate; #define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) #define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) #define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) #define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) #define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) #define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) typedef struct _CheckerboardItem CheckerboardItem; typedef struct _CheckerboardItemClass CheckerboardItemClass; typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate; #define TYPE_DIMENSIONS (dimensions_get_type ()) typedef struct _Dimensions Dimensions; #define TYPE_MEDIA_SOURCE_ITEM (media_source_item_get_type ()) #define MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem)) #define MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) #define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM)) #define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM)) #define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) typedef struct _MediaSourceItem MediaSourceItem; typedef struct _MediaSourceItemClass MediaSourceItemClass; typedef struct _MediaSourceItemPrivate MediaSourceItemPrivate; #define _g_free0(var) (var = (g_free (var), NULL)) #define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) #define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) #define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) #define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) #define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) #define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) typedef struct _ThumbnailSource ThumbnailSource; typedef struct _ThumbnailSourceClass ThumbnailSourceClass; #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) #define THUMBNAIL_CACHE_TYPE_SIZE (thumbnail_cache_size_get_type ()) #define TYPE_PAGE (page_get_type ()) #define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) #define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) #define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) #define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) #define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) typedef struct _Page Page; typedef struct _PageClass PageClass; typedef struct _PagePrivate PagePrivate; #define TYPE_PAGE_WINDOW (page_window_get_type ()) #define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) #define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) #define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) #define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) #define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) typedef struct _PageWindow PageWindow; typedef struct _PageWindowClass PageWindowClass; #define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) #define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) #define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) #define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) #define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) #define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) typedef struct _FullscreenWindow FullscreenWindow; typedef struct _FullscreenWindowClass FullscreenWindowClass; #define TYPE_INJECTION_GROUP (injection_group_get_type ()) #define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) #define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) #define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) #define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) #define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) typedef struct _InjectionGroup InjectionGroup; typedef struct _InjectionGroupClass InjectionGroupClass; #define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) #define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) #define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) #define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) #define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) #define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) typedef struct _CheckerboardPage CheckerboardPage; typedef struct _CheckerboardPageClass CheckerboardPageClass; typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate; #define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ()) #define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ()) typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers; #define TYPE_VIEW_FILTER (view_filter_get_type ()) #define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) #define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) #define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) #define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) #define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) typedef struct _ViewFilter ViewFilter; typedef struct _ViewFilterClass ViewFilterClass; #define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ()) #define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)) #define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) #define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER)) #define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER)) #define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) typedef struct _SearchViewFilter SearchViewFilter; typedef struct _SearchViewFilterClass SearchViewFilterClass; #define CORE_TYPE_TRACKER (core_tracker_get_type ()) #define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) #define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) #define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) #define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) #define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) typedef struct _CoreTracker CoreTracker; typedef struct _CoreTrackerClass CoreTrackerClass; #define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) #define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) #define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) #define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) #define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) #define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) typedef struct _CoreViewTracker CoreViewTracker; typedef struct _CoreViewTrackerClass CoreViewTrackerClass; #define TYPE_MEDIA_PAGE (media_page_get_type ()) #define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) #define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) #define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) #define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) #define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) typedef struct _MediaPage MediaPage; typedef struct _MediaPageClass MediaPageClass; typedef struct _MediaPagePrivate MediaPagePrivate; #define TYPE_RATING (rating_get_type ()) #define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) #define MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY (media_page_zoom_slider_assembly_get_type ()) #define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssembly)) #define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssemblyClass)) #define MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY)) #define MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY)) #define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssemblyClass)) typedef struct _MediaPageZoomSliderAssembly MediaPageZoomSliderAssembly; typedef struct _MediaPageZoomSliderAssemblyClass MediaPageZoomSliderAssemblyClass; #define TYPE_DRAG_AND_DROP_HANDLER (drag_and_drop_handler_get_type ()) #define DRAG_AND_DROP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandler)) #define DRAG_AND_DROP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandlerClass)) #define IS_DRAG_AND_DROP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DRAG_AND_DROP_HANDLER)) #define IS_DRAG_AND_DROP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DRAG_AND_DROP_HANDLER)) #define DRAG_AND_DROP_HANDLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandlerClass)) typedef struct _DragAndDropHandler DragAndDropHandler; typedef struct _DragAndDropHandlerClass DragAndDropHandlerClass; #define TYPE_MEDIA_VIEW_TRACKER (media_view_tracker_get_type ()) #define MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTracker)) #define MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass)) #define IS_MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_VIEW_TRACKER)) #define IS_MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_VIEW_TRACKER)) #define MEDIA_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass)) typedef struct _MediaViewTracker MediaViewTracker; typedef struct _MediaViewTrackerClass MediaViewTrackerClass; #define MEDIA_PAGE_TYPE_SORT_BY (media_page_sort_by_get_type ()) #define _drag_and_drop_handler_unref0(var) ((var == NULL) ? NULL : (var = (drag_and_drop_handler_unref (var), NULL))) #define _core_tracker_unref0(var) ((var == NULL) ? NULL : (var = (core_tracker_unref (var), NULL))) #define TYPE_VIEW_COLLECTION (view_collection_get_type ()) #define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) #define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) #define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) #define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) #define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) typedef struct _ViewCollection ViewCollection; typedef struct _ViewCollectionClass ViewCollectionClass; #define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) #define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) #define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) #define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) #define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) #define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) #define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) typedef struct _ConfigurationFacade ConfigurationFacade; typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; #define CONFIG_TYPE_FACADE (config_facade_get_type ()) #define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) #define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) #define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) #define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) #define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) typedef struct _ConfigFacade ConfigFacade; typedef struct _ConfigFacadeClass ConfigFacadeClass; #define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) #define TYPE_MEDIA_SOURCE (media_source_get_type ()) #define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) #define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) #define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) #define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) #define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) typedef struct _MediaSource MediaSource; typedef struct _MediaSourceClass MediaSourceClass; #define TYPE_VIDEO_SOURCE (video_source_get_type ()) #define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) #define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) #define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) #define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) #define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) typedef struct _VideoSource VideoSource; typedef struct _VideoSourceClass VideoSourceClass; #define TYPE_VIDEO (video_get_type ()) #define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) #define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) #define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) #define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) #define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) typedef struct _Video Video; typedef struct _VideoClass VideoClass; #define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) #define TYPE_PHOTO_SOURCE (photo_source_get_type ()) #define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) #define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) #define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) #define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) #define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) typedef struct _PhotoSource PhotoSource; typedef struct _PhotoSourceClass PhotoSourceClass; #define TYPE_PHOTO (photo_get_type ()) #define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) #define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) #define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) #define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) #define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) typedef struct _Photo Photo; typedef struct _PhotoClass PhotoClass; #define TYPE_THUMBNAIL (thumbnail_get_type ()) #define THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL, Thumbnail)) #define THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL, ThumbnailClass)) #define IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL)) #define IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL)) #define THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL, ThumbnailClass)) typedef struct _Thumbnail Thumbnail; typedef struct _ThumbnailClass ThumbnailClass; #define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) #define TYPE_RATING_FILTER (rating_filter_get_type ()) #define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL))) #define TYPE_TEXT_ENTRY_DIALOG_MEDIATOR (text_entry_dialog_mediator_get_type ()) #define TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator)) #define TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass)) #define IS_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR)) #define IS_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR)) #define TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass)) typedef struct _TextEntryDialogMediator TextEntryDialogMediator; typedef struct _TextEntryDialogMediatorClass TextEntryDialogMediatorClass; #define TYPE_TAGS_DIALOG (tags_dialog_get_type ()) #define TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAGS_DIALOG, TagsDialog)) #define TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAGS_DIALOG, TagsDialogClass)) #define IS_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAGS_DIALOG)) #define IS_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAGS_DIALOG)) #define TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAGS_DIALOG, TagsDialogClass)) typedef struct _TagsDialog TagsDialog; typedef struct _TagsDialogClass TagsDialogClass; #define TYPE_ADD_TAGS_DIALOG (add_tags_dialog_get_type ()) #define ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialog)) #define ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass)) #define IS_ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_DIALOG)) #define IS_ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_DIALOG)) #define ADD_TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass)) typedef struct _AddTagsDialog AddTagsDialog; typedef struct _AddTagsDialogClass AddTagsDialogClass; #define TYPE_COMMAND_MANAGER (command_manager_get_type ()) #define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) #define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) #define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) #define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) #define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) typedef struct _CommandManager CommandManager; typedef struct _CommandManagerClass CommandManagerClass; #define TYPE_COMMAND (command_get_type ()) #define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) #define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) #define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) #define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) #define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) typedef struct _Command Command; typedef struct _CommandClass CommandClass; #define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ()) #define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex)) #define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) #define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX)) #define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX)) #define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) typedef struct _HierarchicalTagIndex HierarchicalTagIndex; typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass; #define TYPE_PAGE_COMMAND (page_command_get_type ()) #define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) #define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) #define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) #define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) #define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) typedef struct _PageCommand PageCommand; typedef struct _PageCommandClass PageCommandClass; #define TYPE_ADD_TAGS_COMMAND (add_tags_command_get_type ()) #define ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommand)) #define ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass)) #define IS_ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_COMMAND)) #define IS_ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_COMMAND)) #define ADD_TAGS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass)) typedef struct _AddTagsCommand AddTagsCommand; typedef struct _AddTagsCommandClass AddTagsCommandClass; #define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL))) #define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) #define _text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (text_entry_dialog_mediator_unref (var), NULL))) #define TYPE_MODIFY_TAGS_DIALOG (modify_tags_dialog_get_type ()) #define MODIFY_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialog)) #define MODIFY_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialogClass)) #define IS_MODIFY_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MODIFY_TAGS_DIALOG)) #define IS_MODIFY_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MODIFY_TAGS_DIALOG)) #define MODIFY_TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialogClass)) typedef struct _ModifyTagsDialog ModifyTagsDialog; typedef struct _ModifyTagsDialogClass ModifyTagsDialogClass; #define TYPE_TAG (tag_get_type ()) #define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) #define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) #define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) #define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) #define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) typedef struct _Tag Tag; typedef struct _TagClass TagClass; #define TYPE_SINGLE_DATA_SOURCE_COMMAND (single_data_source_command_get_type ()) #define SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)) #define SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) #define IS_SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND)) #define IS_SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND)) #define SINGLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) typedef struct _SingleDataSourceCommand SingleDataSourceCommand; typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass; #define TYPE_MODIFY_TAGS_COMMAND (modify_tags_command_get_type ()) #define MODIFY_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommand)) #define MODIFY_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommandClass)) #define IS_MODIFY_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MODIFY_TAGS_COMMAND)) #define IS_MODIFY_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MODIFY_TAGS_COMMAND)) #define MODIFY_TAGS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommandClass)) typedef struct _ModifyTagsCommand ModifyTagsCommand; typedef struct _ModifyTagsCommandClass ModifyTagsCommandClass; #define TYPE_MOVE_PHOTOS_COMMAND (move_photos_command_get_type ()) #define MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)) #define MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass)) #define IS_MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MOVE_PHOTOS_COMMAND)) #define IS_MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MOVE_PHOTOS_COMMAND)) #define MOVE_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass)) typedef struct _MovePhotosCommand MovePhotosCommand; typedef struct _MovePhotosCommandClass MovePhotosCommandClass; #define TYPE_NEW_EVENT_COMMAND (new_event_command_get_type ()) #define NEW_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NEW_EVENT_COMMAND, NewEventCommand)) #define NEW_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NEW_EVENT_COMMAND, NewEventCommandClass)) #define IS_NEW_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NEW_EVENT_COMMAND)) #define IS_NEW_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NEW_EVENT_COMMAND)) #define NEW_EVENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NEW_EVENT_COMMAND, NewEventCommandClass)) typedef struct _NewEventCommand NewEventCommand; typedef struct _NewEventCommandClass NewEventCommandClass; #define TYPE_FLAGGABLE (flaggable_get_type ()) #define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable)) #define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE)) #define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface)) typedef struct _Flaggable Flaggable; typedef struct _FlaggableIface FlaggableIface; #define TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (multiple_data_source_at_once_command_get_type ()) #define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommand)) #define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass)) #define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND)) #define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND)) #define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass)) typedef struct _MultipleDataSourceAtOnceCommand MultipleDataSourceAtOnceCommand; typedef struct _MultipleDataSourceAtOnceCommandClass MultipleDataSourceAtOnceCommandClass; #define TYPE_FLAG_UNFLAG_COMMAND (flag_unflag_command_get_type ()) #define FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand)) #define FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass)) #define IS_FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAG_UNFLAG_COMMAND)) #define IS_FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLAG_UNFLAG_COMMAND)) #define FLAG_UNFLAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass)) typedef struct _FlagUnflagCommand FlagUnflagCommand; typedef struct _FlagUnflagCommandClass FlagUnflagCommandClass; #define TYPE_MULTIPLE_DATA_SOURCE_COMMAND (multiple_data_source_command_get_type ()) #define MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)) #define MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass)) #define IS_MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND)) #define IS_MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND)) #define MULTIPLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass)) typedef struct _MultipleDataSourceCommand MultipleDataSourceCommand; typedef struct _MultipleDataSourceCommandClass MultipleDataSourceCommandClass; #define TYPE_SET_RATING_COMMAND (set_rating_command_get_type ()) #define SET_RATING_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RATING_COMMAND, SetRatingCommand)) #define SET_RATING_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_RATING_COMMAND, SetRatingCommandClass)) #define IS_SET_RATING_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_RATING_COMMAND)) #define IS_SET_RATING_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_RATING_COMMAND)) #define SET_RATING_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_RATING_COMMAND, SetRatingCommandClass)) typedef struct _SetRatingCommand SetRatingCommand; typedef struct _SetRatingCommandClass SetRatingCommandClass; #define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) #define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) #define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) #define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) #define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) #define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) typedef struct _LibraryPhoto LibraryPhoto; typedef struct _LibraryPhotoClass LibraryPhotoClass; #define TYPE_TRASH_UNTRASH_PHOTOS_COMMAND (trash_untrash_photos_command_get_type ()) #define TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommand)) #define TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass)) #define IS_TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND)) #define IS_TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND)) #define TRASH_UNTRASH_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass)) typedef struct _TrashUntrashPhotosCommand TrashUntrashPhotosCommand; typedef struct _TrashUntrashPhotosCommandClass TrashUntrashPhotosCommandClass; #define TYPE_EDIT_TITLE_DIALOG (edit_title_dialog_get_type ()) #define EDIT_TITLE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_TITLE_DIALOG, EditTitleDialog)) #define EDIT_TITLE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_TITLE_DIALOG, EditTitleDialogClass)) #define IS_EDIT_TITLE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_TITLE_DIALOG)) #define IS_EDIT_TITLE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_TITLE_DIALOG)) #define EDIT_TITLE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_TITLE_DIALOG, EditTitleDialogClass)) typedef struct _EditTitleDialog EditTitleDialog; typedef struct _EditTitleDialogClass EditTitleDialogClass; #define TYPE_EDIT_MULTIPLE_TITLES_COMMAND (edit_multiple_titles_command_get_type ()) #define EDIT_MULTIPLE_TITLES_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommand)) #define EDIT_MULTIPLE_TITLES_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommandClass)) #define IS_EDIT_MULTIPLE_TITLES_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_MULTIPLE_TITLES_COMMAND)) #define IS_EDIT_MULTIPLE_TITLES_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_MULTIPLE_TITLES_COMMAND)) #define EDIT_MULTIPLE_TITLES_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommandClass)) typedef struct _EditMultipleTitlesCommand EditMultipleTitlesCommand; typedef struct _EditMultipleTitlesCommandClass EditMultipleTitlesCommandClass; #define TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR (multi_text_entry_dialog_mediator_get_type ()) #define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediator)) #define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass)) #define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR)) #define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR)) #define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass)) typedef struct _MultiTextEntryDialogMediator MultiTextEntryDialogMediator; typedef struct _MultiTextEntryDialogMediatorClass MultiTextEntryDialogMediatorClass; #define TYPE_EDIT_COMMENT_DIALOG (edit_comment_dialog_get_type ()) #define EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialog)) #define EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass)) #define IS_EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_COMMENT_DIALOG)) #define IS_EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_COMMENT_DIALOG)) #define EDIT_COMMENT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass)) typedef struct _EditCommentDialog EditCommentDialog; typedef struct _EditCommentDialogClass EditCommentDialogClass; #define TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND (edit_multiple_comments_command_get_type ()) #define EDIT_MULTIPLE_COMMENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommand)) #define EDIT_MULTIPLE_COMMENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommandClass)) #define IS_EDIT_MULTIPLE_COMMENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND)) #define IS_EDIT_MULTIPLE_COMMENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND)) #define EDIT_MULTIPLE_COMMENTS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommandClass)) typedef struct _EditMultipleCommentsCommand EditMultipleCommentsCommand; typedef struct _EditMultipleCommentsCommandClass EditMultipleCommentsCommandClass; #define _multi_text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (multi_text_entry_dialog_mediator_unref (var), NULL))) #define TYPE_SET_RAW_DEVELOPER_COMMAND (set_raw_developer_command_get_type ()) #define SET_RAW_DEVELOPER_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand)) #define SET_RAW_DEVELOPER_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommandClass)) #define IS_SET_RAW_DEVELOPER_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND)) #define IS_SET_RAW_DEVELOPER_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_RAW_DEVELOPER_COMMAND)) #define SET_RAW_DEVELOPER_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommandClass)) typedef struct _SetRawDeveloperCommand SetRawDeveloperCommand; typedef struct _SetRawDeveloperCommandClass SetRawDeveloperCommandClass; #define TYPE_CHECKERBOARD_LAYOUT (checkerboard_layout_get_type ()) #define CHECKERBOARD_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout)) #define CHECKERBOARD_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayoutClass)) #define IS_CHECKERBOARD_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_LAYOUT)) #define IS_CHECKERBOARD_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_LAYOUT)) #define CHECKERBOARD_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayoutClass)) typedef struct _CheckerboardLayout CheckerboardLayout; typedef struct _CheckerboardLayoutClass CheckerboardLayoutClass; typedef struct _MediaPageZoomSliderAssemblyPrivate MediaPageZoomSliderAssemblyPrivate; #define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); #define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } #define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } #define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); struct _DataObject { GObject parent_instance; DataObjectPrivate * priv; }; struct _DataObjectClass { GObjectClass parent_class; void (*notify_altered) (DataObject* self, Alteration* alteration); void (*notify_membership_changed) (DataObject* self, DataCollection* collection); void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); gchar* (*get_name) (DataObject* self); gchar* (*to_string) (DataObject* self); }; struct _DataView { DataObject parent_instance; DataViewPrivate * priv; }; struct _DataViewClass { DataObjectClass parent_class; void (*notify_view_altered) (DataView* self); void (*notify_geometry_altered) (DataView* self); void (*notify_unsubscribed) (DataView* self, DataSource* source); void (*state_changed) (DataView* self, gboolean selected); void (*visibility_changed) (DataView* self, gboolean visible); void (*view_altered) (DataView* self); void (*geometry_altered) (DataView* self); void (*unsubscribed) (DataView* self, DataSource* source); }; struct _ThumbnailView { DataView parent_instance; ThumbnailViewPrivate * priv; }; struct _ThumbnailViewClass { DataViewClass parent_class; void (*notify_thumbnail_altered) (ThumbnailView* self); void (*thumbnail_altered) (ThumbnailView* self); }; struct _Dimensions { gint width; gint height; }; struct _CheckerboardItem { ThumbnailView parent_instance; CheckerboardItemPrivate * priv; Dimensions requisition; GdkRectangle allocation; }; struct _CheckerboardItemClass { ThumbnailViewClass parent_class; void (*exposed) (CheckerboardItem* self); void (*unexposed) (CheckerboardItem* self); gboolean (*is_exposed) (CheckerboardItem* self); void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha); void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width); void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin); GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale); GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale); GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale); GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale); }; struct _MediaSourceItem { CheckerboardItem parent_instance; MediaSourceItemPrivate * priv; }; struct _MediaSourceItemClass { CheckerboardItemClass parent_class; }; struct _MediaSourceItemPrivate { gboolean enable_sprockets; gchar* natural_collation_key; }; typedef enum { THUMBNAIL_CACHE_SIZE_LARGEST = 360, THUMBNAIL_CACHE_SIZE_BIG = 360, THUMBNAIL_CACHE_SIZE_MEDIUM = 128, THUMBNAIL_CACHE_SIZE_SMALLEST = 128 } ThumbnailCacheSize; struct _Page { GtkScrolledWindow parent_instance; PagePrivate * priv; GtkBuilder* builder; GtkToolbar* toolbar; gboolean in_view; }; struct _PageClass { GtkScrolledWindowClass parent_class; void (*set_page_name) (Page* self, const gchar* page_name); void (*set_container) (Page* self, GtkWindow* container); void (*clear_container) (Page* self); GtkToolbar* (*get_toolbar) (Page* self); GtkMenu* (*get_page_context_menu) (Page* self); void (*switching_from) (Page* self); void (*switched_to) (Page* self); void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); void (*add_actions) (Page* self, GActionMap* map); void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); void (*update_actions) (Page* self, gint selected_count, gint count); gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); gboolean (*on_left_click) (Page* self, GdkEventButton* event); gboolean (*on_middle_click) (Page* self, GdkEventButton* event); gboolean (*on_right_click) (Page* self, GdkEventButton* event); gboolean (*on_left_released) (Page* self, GdkEventButton* event); gboolean (*on_middle_released) (Page* self, GdkEventButton* event); gboolean (*on_right_released) (Page* self, GdkEventButton* event); gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); gboolean (*on_alt_released) (Page* self, GdkEventKey* event); gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); gboolean (*on_shift_released) (Page* self, GdkEventKey* event); gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); gboolean (*on_super_released) (Page* self, GdkEventKey* event); gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); void (*on_move) (Page* self, GdkRectangle* rect); void (*on_move_start) (Page* self, GdkRectangle* rect); void (*on_move_finished) (Page* self, GdkRectangle* rect); void (*on_resize) (Page* self, GdkRectangle* rect); void (*on_resize_start) (Page* self, GdkRectangle* rect); void (*on_resize_finished) (Page* self, GdkRectangle* rect); gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); gboolean (*on_leave_notify_event) (Page* self); gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); gboolean (*on_context_keypress) (Page* self); gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); gboolean (*on_context_invoked) (Page* self); void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); }; typedef enum { CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, CHECKERBOARD_PAGE_ACTIVATOR_MOUSE } CheckerboardPageActivator; struct _CheckerboardPageKeyboardModifiers { gboolean ctrl_pressed; gboolean alt_pressed; gboolean shift_pressed; gboolean super_pressed; }; struct _CheckerboardPage { Page parent_instance; CheckerboardPagePrivate * priv; CheckerboardItem* anchor; CheckerboardItem* cursor; }; struct _CheckerboardPageClass { PageClass parent_class; GtkMenu* (*get_item_context_menu) (CheckerboardPage* self); gchar* (*get_view_empty_message) (CheckerboardPage* self); gchar* (*get_filter_no_match_message) (CheckerboardPage* self); void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers); SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self); CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self); gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask); void (*set_display_titles) (CheckerboardPage* self, gboolean display); void (*set_display_comments) (CheckerboardPage* self, gboolean display); }; typedef enum { RATING_REJECTED = -1, RATING_UNRATED = 0, RATING_ONE = 1, RATING_TWO = 2, RATING_THREE = 3, RATING_FOUR = 4, RATING_FIVE = 5 } Rating; typedef enum { RAW_DEVELOPER_SHOTWELL = 0, RAW_DEVELOPER_CAMERA, RAW_DEVELOPER_EMBEDDED } RawDeveloper; struct _MediaPage { CheckerboardPage parent_instance; MediaPagePrivate * priv; }; struct _MediaPageClass { CheckerboardPageClass parent_class; void (*on_zoom_changed) (MediaPage* self); void (*on_export) (MediaPage* self); void (*on_increase_size) (MediaPage* self); void (*on_decrease_size) (MediaPage* self); void (*on_increase_rating) (MediaPage* self); void (*on_decrease_rating) (MediaPage* self); void (*on_set_rating) (MediaPage* self, Rating rating); void (*on_rate_rejected) (MediaPage* self); void (*on_rate_unrated) (MediaPage* self); void (*on_rate_one) (MediaPage* self); void (*on_rate_two) (MediaPage* self); void (*on_rate_three) (MediaPage* self); void (*on_rate_four) (MediaPage* self); void (*on_rate_five) (MediaPage* self); void (*on_move_to_trash) (MediaPage* self); void (*on_edit_title) (MediaPage* self); void (*on_edit_comment) (MediaPage* self); void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value); void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value); void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value); void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value); void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by); void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by); void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value); void (*developer_changed) (MediaPage* self, RawDeveloper rd); DataView* (*create_thumbnail) (MediaPage* self, DataSource* source); }; struct _MediaPagePrivate { MediaPageZoomSliderAssembly* connected_slider; DragAndDropHandler* dnd_handler; MediaViewTracker* tracker; }; typedef enum { MEDIA_PAGE_SORT_BY_MIN = 1, MEDIA_PAGE_SORT_BY_TITLE = 1, MEDIA_PAGE_SORT_BY_EXPOSURE_DATE = 2, MEDIA_PAGE_SORT_BY_RATING = 3, MEDIA_PAGE_SORT_BY_FILENAME = 4, MEDIA_PAGE_SORT_BY_MAX = 4 } MediaPageSortBy; typedef gboolean (*ValueEqualFunc) (GValue* a, GValue* b, void* user_data); typedef enum { PHOTO_FILE_FORMAT_JFIF, PHOTO_FILE_FORMAT_RAW, PHOTO_FILE_FORMAT_PNG, PHOTO_FILE_FORMAT_TIFF, PHOTO_FILE_FORMAT_BMP, PHOTO_FILE_FORMAT_UNKNOWN } PhotoFileFormat; typedef enum { RATING_FILTER_NO_FILTER = 0, RATING_FILTER_REJECTED_OR_HIGHER = 1, RATING_FILTER_UNRATED_OR_HIGHER = 2, RATING_FILTER_ONE_OR_HIGHER = 3, RATING_FILTER_TWO_OR_HIGHER = 4, RATING_FILTER_THREE_OR_HIGHER = 5, RATING_FILTER_FOUR_OR_HIGHER = 6, RATING_FILTER_FIVE_OR_HIGHER = 7, RATING_FILTER_REJECTED_ONLY = 8, RATING_FILTER_UNRATED_ONLY = 9, RATING_FILTER_ONE_ONLY = 10, RATING_FILTER_TWO_ONLY = 11, RATING_FILTER_THREE_ONLY = 12, RATING_FILTER_FOUR_ONLY = 13, RATING_FILTER_FIVE_ONLY = 14 } RatingFilter; struct _FlaggableIface { GTypeInterface parent_iface; gboolean (*is_flagged) (Flaggable* self); void (*mark_flagged) (Flaggable* self); void (*mark_unflagged) (Flaggable* self); }; typedef gint64 (*Comparator) (void* a, void* b, void* user_data); typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); struct _MediaPageZoomSliderAssembly { GtkToolItem parent_instance; MediaPageZoomSliderAssemblyPrivate * priv; }; struct _MediaPageZoomSliderAssemblyClass { GtkToolItemClass parent_class; }; struct _MediaPageZoomSliderAssemblyPrivate { GtkScale* slider; GtkAdjustment* adjustment; }; static gpointer media_source_item_parent_class = NULL; static GdkPixbuf* media_source_item_basis_sprocket_pixbuf; static GdkPixbuf* media_source_item_basis_sprocket_pixbuf = NULL; static GdkPixbuf* media_source_item_current_sprocket_pixbuf; static GdkPixbuf* media_source_item_current_sprocket_pixbuf = NULL; static gpointer media_page_parent_class = NULL; static gpointer media_page_zoom_slider_assembly_parent_class = NULL; GType data_object_get_type (void) G_GNUC_CONST; gpointer alteration_ref (gpointer instance); void alteration_unref (gpointer instance); GParamSpec* param_spec_alteration (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); void value_set_alteration (GValue* value, gpointer v_object); void value_take_alteration (GValue* value, gpointer v_object); gpointer value_get_alteration (const GValue* value); GType alteration_get_type (void) G_GNUC_CONST; gpointer data_collection_ref (gpointer instance); void data_collection_unref (gpointer instance); GParamSpec* param_spec_data_collection (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); void value_set_data_collection (GValue* value, gpointer v_object); void value_take_data_collection (GValue* value, gpointer v_object); gpointer value_get_data_collection (const GValue* value); GType data_collection_get_type (void) G_GNUC_CONST; GType data_view_get_type (void) G_GNUC_CONST; GType data_source_get_type (void) G_GNUC_CONST; GType thumbnail_view_get_type (void) G_GNUC_CONST; GType checkerboard_item_get_type (void) G_GNUC_CONST; GType dimensions_get_type (void) G_GNUC_CONST; Dimensions* dimensions_dup (const Dimensions* self); void dimensions_free (Dimensions* self); GType media_source_item_get_type (void) G_GNUC_CONST; #define MEDIA_SOURCE_ITEM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemPrivate)) enum { MEDIA_SOURCE_ITEM_DUMMY_PROPERTY }; GType thumbnail_source_get_type (void) G_GNUC_CONST; MediaSourceItem* media_source_item_new (ThumbnailSource* source, Dimensions* initial_pixbuf_dim, const gchar* title, const gchar* comment, gboolean marked_up, PangoAlignment alignment); MediaSourceItem* media_source_item_construct (GType object_type, ThumbnailSource* source, Dimensions* initial_pixbuf_dim, const gchar* title, const gchar* comment, gboolean marked_up, PangoAlignment alignment); CheckerboardItem* checkerboard_item_construct (GType object_type, ThumbnailSource* source, Dimensions* initial_pixbuf_dim, const gchar* title, const gchar* comment, gboolean marked_up, PangoAlignment alignment); GdkPixbuf* resources_load_icon (const gchar* name, gint scale); static void media_source_item_real_paint_image (CheckerboardItem* base, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin); void dimensions_for_pixbuf (GdkPixbuf* pixbuf, Dimensions* result); void checkerboard_item_set_horizontal_trinket_offset (CheckerboardItem* self, gint horizontal_trinket_offset); gint dimensions_major_axis (Dimensions *self); GType thumbnail_cache_size_get_type (void) G_GNUC_CONST; void checkerboard_item_paint_image (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin); void media_source_item_paint_sprockets (MediaSourceItem* self, cairo_t* ctx, GdkPoint* item_origin, Dimensions* item_dimensions); void media_source_item_paint_one_sprocket (MediaSourceItem* self, cairo_t* ctx, GdkPoint* origin); void media_source_item_set_enable_sprockets (MediaSourceItem* self, gboolean enable_sprockets); void media_source_item_set_title (MediaSourceItem* self, const gchar* text, gboolean marked_up, PangoAlignment alignment); void checkerboard_item_set_title (CheckerboardItem* self, const gchar* text, gboolean marked_up, PangoAlignment alignment); gchar* media_source_item_get_natural_collation_key (MediaSourceItem* self); gchar* natural_collate_collate_key (gchar* str); gchar* checkerboard_item_get_title (CheckerboardItem* self); static void media_source_item_finalize (GObject* obj); GType page_get_type (void) G_GNUC_CONST; GType page_window_get_type (void) G_GNUC_CONST; GType fullscreen_window_get_type (void) G_GNUC_CONST; gpointer injection_group_ref (gpointer instance); void injection_group_unref (gpointer instance); GParamSpec* param_spec_injection_group (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); void value_set_injection_group (GValue* value, gpointer v_object); void value_take_injection_group (GValue* value, gpointer v_object); gpointer value_get_injection_group (const GValue* value); GType injection_group_get_type (void) G_GNUC_CONST; GType checkerboard_page_get_type (void) G_GNUC_CONST; GType checkerboard_page_activator_get_type (void) G_GNUC_CONST; GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST; CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self); void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self); gpointer view_filter_ref (gpointer instance); void view_filter_unref (gpointer instance); GParamSpec* param_spec_view_filter (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); void value_set_view_filter (GValue* value, gpointer v_object); void value_take_view_filter (GValue* value, gpointer v_object); gpointer value_get_view_filter (const GValue* value); GType view_filter_get_type (void) G_GNUC_CONST; GType search_view_filter_get_type (void) G_GNUC_CONST; gpointer core_tracker_ref (gpointer instance); void core_tracker_unref (gpointer instance); GParamSpec* core_param_spec_tracker (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); void core_value_set_tracker (GValue* value, gpointer v_object); void core_value_take_tracker (GValue* value, gpointer v_object); gpointer core_value_get_tracker (const GValue* value); GType core_tracker_get_type (void) G_GNUC_CONST; GType core_view_tracker_get_type (void) G_GNUC_CONST; GType media_page_get_type (void) G_GNUC_CONST; GType rating_get_type (void) G_GNUC_CONST; GType raw_developer_get_type (void) G_GNUC_CONST; GType media_page_zoom_slider_assembly_get_type (void) G_GNUC_CONST; gpointer drag_and_drop_handler_ref (gpointer instance); void drag_and_drop_handler_unref (gpointer instance); GParamSpec* param_spec_drag_and_drop_handler (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); void value_set_drag_and_drop_handler (GValue* value, gpointer v_object); void value_take_drag_and_drop_handler (GValue* value, gpointer v_object); gpointer value_get_drag_and_drop_handler (const GValue* value); GType drag_and_drop_handler_get_type (void) G_GNUC_CONST; GType media_view_tracker_get_type (void) G_GNUC_CONST; #define MEDIA_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_PAGE, MediaPagePrivate)) enum { MEDIA_PAGE_DUMMY_PROPERTY }; GType media_page_sort_by_get_type (void) G_GNUC_CONST; #define MEDIA_PAGE_SORT_ORDER_ASCENDING 0 #define MEDIA_PAGE_SORT_ORDER_DESCENDING 1 #define MEDIA_PAGE_MANUAL_STEPPING 16 #define MEDIA_PAGE_SLIDER_STEPPING 4 void media_page_on_export (MediaPage* self); static void _media_page_on_export_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); static void media_page_on_send_to (MediaPage* self); static void _media_page_on_send_to_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); static void media_page_on_remove_from_library (MediaPage* self); static void _media_page_on_remove_from_library_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_move_to_trash (MediaPage* self); static void _media_page_on_move_to_trash_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); static void media_page_on_new_event (MediaPage* self); static void _media_page_on_new_event_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); static void media_page_on_add_tags (MediaPage* self); static void _media_page_on_add_tags_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); static void media_page_on_modify_tags (MediaPage* self); static void _media_page_on_modify_tags_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_increase_size (MediaPage* self); static void _media_page_on_increase_size_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_decrease_size (MediaPage* self); static void _media_page_on_decrease_size_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); static void media_page_on_flag_unflag (MediaPage* self); static void _media_page_on_flag_unflag_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_increase_rating (MediaPage* self); static void _media_page_on_increase_rating_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_decrease_rating (MediaPage* self); static void _media_page_on_decrease_rating_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_rate_rejected (MediaPage* self); static void _media_page_on_rate_rejected_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_rate_unrated (MediaPage* self); static void _media_page_on_rate_unrated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_rate_one (MediaPage* self); static void _media_page_on_rate_one_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_rate_two (MediaPage* self); static void _media_page_on_rate_two_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_rate_three (MediaPage* self); static void _media_page_on_rate_three_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_rate_four (MediaPage* self); static void _media_page_on_rate_four_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_rate_five (MediaPage* self); static void _media_page_on_rate_five_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_edit_title (MediaPage* self); static void _media_page_on_edit_title_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_edit_comment (MediaPage* self); static void _media_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_play_video (MediaPage* self); static void _media_page_on_play_video_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void page_on_action_toggle (Page* self, GAction* action, GVariant* value); static void _page_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_display_titles (MediaPage* self, GSimpleAction* action, GVariant* value); static void _media_page_on_display_titles_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self); void media_page_on_display_comments (MediaPage* self, GSimpleAction* action, GVariant* value); static void _media_page_on_display_comments_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self); void media_page_on_display_ratings (MediaPage* self, GSimpleAction* action, GVariant* value); static void _media_page_on_display_ratings_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self); void media_page_on_display_tags (MediaPage* self, GSimpleAction* action, GVariant* value); static void _media_page_on_display_tags_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self); void page_on_action_radio (Page* self, GAction* action, GVariant* value); static void _page_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_sort_changed (MediaPage* self, GSimpleAction* action, GVariant* value); static void _media_page_on_sort_changed_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self); MediaPage* media_page_construct (GType object_type, const gchar* page_name); CheckerboardPage* checkerboard_page_construct (GType object_type, const gchar* page_name); GType view_collection_get_type (void) G_GNUC_CONST; ViewCollection* page_get_view (Page* self); MediaViewTracker* media_view_tracker_new (ViewCollection* collection); MediaViewTracker* media_view_tracker_construct (GType object_type, ViewCollection* collection); static void media_page_on_media_altered (MediaPage* self, GeeMap* altered); static void _media_page_on_media_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self); void data_collection_freeze_notifications (DataCollection* self); void data_collection_set_property (DataCollection* self, const gchar* name, GValue* val, ValueEqualFunc value_equals, void* value_equals_target); #define CHECKERBOARD_ITEM_PROP_SHOW_TITLES "show-titles" GType configuration_facade_get_type (void) G_GNUC_CONST; GType config_facade_get_type (void) G_GNUC_CONST; ConfigFacade* config_facade_get_instance (void); gboolean configuration_facade_get_display_photo_titles (ConfigurationFacade* self); #define CHECKERBOARD_ITEM_PROP_SHOW_COMMENTS "show-comments" gboolean configuration_facade_get_display_photo_comments (ConfigurationFacade* self); #define CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES "show-subtitles" #define THUMBNAIL_PROP_SHOW_TAGS CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES gboolean configuration_facade_get_display_photo_tags (ConfigurationFacade* self); #define THUMBNAIL_PROP_SIZE "thumbnail-size" gint media_page_get_thumb_size (MediaPage* self); #define THUMBNAIL_PROP_SHOW_RATINGS "show-ratings" gboolean configuration_facade_get_display_photo_ratings (ConfigurationFacade* self); void data_collection_thaw_notifications (DataCollection* self); DragAndDropHandler* drag_and_drop_handler_new (Page* page); DragAndDropHandler* drag_and_drop_handler_construct (GType object_type, Page* page); static gint media_page_compute_zoom_scale_increase (gint current_scale); gint thumbnail_get_MIN_SCALE (void); gint thumbnail_get_MAX_SCALE (void); static gint media_page_compute_zoom_scale_decrease (gint current_scale); static void media_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames); void page_init_collect_ui_filenames (Page* self, GeeList* ui_filenames); static void media_page_real_add_actions (Page* base, GActionMap* map); void page_add_actions (Page* self, GActionMap* map); void media_page_get_config_photos_sort (MediaPage* self, gboolean* sort_order, gint* sort_by); GAction* page_get_action (Page* self, const gchar* name); static GVariant* _variant_new23 (gboolean value); static GVariant* _variant_new24 (gboolean value); static GVariant* _variant_new25 (gboolean value); static GVariant* _variant_new26 (gboolean value); static GVariant* _variant_new27 (gchar* value); static GVariant* _variant_new28 (const gchar* value); RawDeveloper configuration_facade_get_default_raw_developer (ConfigurationFacade* self); static GVariant* _variant_new29 (const gchar* value); static void media_page_on_raw_developer_changed (MediaPage* self, GSimpleAction* action, GVariant* value); static void _media_page_on_raw_developer_changed_g_simple_action_change_state (GSimpleAction* _sender, GVariant* value, gpointer self); static void media_page_real_remove_actions (Page* base, GActionMap* map); void page_remove_actions (Page* self, GActionMap* map); static void media_page_real_update_actions (Page* base, gint selected_count, gint count); void page_set_action_sensitive (Page* self, const gchar* name, gboolean sensitive); gboolean desktop_integration_is_send_to_installed (void); void page_set_action_visible (Page* self, const gchar* name, gboolean visible); static void media_page_update_rating_sensitivities (MediaPage* self); static void media_page_update_development_menu_item_sensitivity (MediaPage* self); DataSource* view_collection_get_selected_source_at (ViewCollection* self, gint index); GType media_source_get_type (void) G_GNUC_CONST; GType video_source_get_type (void) G_GNUC_CONST; GType video_get_type (void) G_GNUC_CONST; static void media_page_update_flag_action (MediaPage* self, gint selected_count); void page_update_actions (Page* self, gint selected_count, gint count); gboolean alteration_has_detail (Alteration* self, const gchar* subject, const gchar* detail); gint view_collection_get_selected_count (ViewCollection* self); static gboolean media_page_can_rate_selected (MediaPage* self, Rating rating); static gboolean media_page_can_increase_selected_rating (MediaPage* self); static gboolean media_page_can_decrease_selected_rating (MediaPage* self); GeeList* view_collection_get_selected (ViewCollection* self); GType photo_source_get_type (void) G_GNUC_CONST; GType photo_get_type (void) G_GNUC_CONST; GType thumbnail_get_type (void) G_GNUC_CONST; MediaSource* thumbnail_get_media_source (Thumbnail* self); GType photo_file_format_get_type (void) G_GNUC_CONST; PhotoFileFormat photo_get_master_file_format (Photo* self); static CoreViewTracker* media_page_real_get_view_tracker (CheckerboardPage* base); void media_page_set_display_ratings (MediaPage* self, gboolean display); void page_set_action_active (Page* self, const gchar* name, gboolean active); Rating media_source_get_rating (MediaSource* self); gboolean rating_can_increase (Rating self); gboolean rating_can_decrease (Rating self); MediaPageZoomSliderAssembly* media_page_create_zoom_slider_assembly (MediaPage* self); MediaPageZoomSliderAssembly* media_page_zoom_slider_assembly_new (void); MediaPageZoomSliderAssembly* media_page_zoom_slider_assembly_construct (GType object_type); static gboolean media_page_real_on_mousewheel_up (Page* base, GdkEventScroll* event); void media_page_increase_zoom_level (MediaPage* self); gboolean page_on_mousewheel_up (Page* self, GdkEventScroll* event); static gboolean media_page_real_on_mousewheel_down (Page* base, GdkEventScroll* event); void media_page_decrease_zoom_level (MediaPage* self); gboolean page_on_mousewheel_down (Page* self, GdkEventScroll* event); void desktop_integration_send_to (GeeCollection* media); GeeList* view_collection_get_selected_sources (ViewCollection* self); DataView* view_collection_get_selected_at (ViewCollection* self, gint index); DataSource* data_view_get_source (DataView* self); GFile* media_source_get_file (MediaSource* self); void app_window_error_message (const gchar* message, GtkWindow* parent); static gboolean media_page_real_on_app_key_pressed (Page* base, GdkEventKey* event); void page_activate_action (Page* self, const gchar* name); gboolean page_get_ctrl_pressed (Page* self); SearchViewFilter* checkerboard_page_get_search_view_filter (CheckerboardPage* self); GType rating_filter_get_type (void) G_GNUC_CONST; void search_view_filter_set_rating_filter (SearchViewFilter* self, RatingFilter rf); gboolean page_on_app_key_pressed (Page* self, GdkEventKey* event); static void media_page_real_switched_to (Page* base); void page_switched_to (Page* self); void checkerboard_page_set_display_titles (CheckerboardPage* self, gboolean display); void checkerboard_page_set_display_comments (CheckerboardPage* self, gboolean display); static void media_page_set_display_tags (MediaPage* self, gboolean display); void checkerboard_page_cursor_to_item (CheckerboardPage* self, CheckerboardItem* item); void media_page_sync_sort (MediaPage* self); static void media_page_real_switching_from (Page* base); void media_page_disconnect_slider (MediaPage* self); void page_switching_from (Page* self); void media_page_connect_slider (MediaPage* self, MediaPageZoomSliderAssembly* slider); void media_page_on_zoom_changed (MediaPage* self); static void _media_page_on_zoom_changed_media_page_zoom_slider_assembly_zoom_changed (MediaPageZoomSliderAssembly* _sender, gpointer self); static void media_page_load_persistent_thumbnail_scale (MediaPage* self); static void media_page_save_persistent_thumbnail_scale (MediaPage* self); void configuration_facade_set_photo_thumbnail_scale (ConfigurationFacade* self, gint scale); gint media_page_zoom_slider_assembly_get_scale (MediaPageZoomSliderAssembly* self); gint configuration_facade_get_photo_thumbnail_scale (ConfigurationFacade* self); void media_page_zoom_slider_assembly_set_scale (MediaPageZoomSliderAssembly* self, gint scale); void media_page_set_thumb_size (MediaPage* self, gint new_scale); static void media_page_real_on_zoom_changed (MediaPage* self); static void media_page_real_on_export (MediaPage* self); static void media_page_real_on_increase_size (MediaPage* self); static void media_page_real_on_decrease_size (MediaPage* self); gpointer text_entry_dialog_mediator_ref (gpointer instance); void text_entry_dialog_mediator_unref (gpointer instance); GParamSpec* param_spec_text_entry_dialog_mediator (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); void value_set_text_entry_dialog_mediator (GValue* value, gpointer v_object); void value_take_text_entry_dialog_mediator (GValue* value, gpointer v_object); gpointer value_get_text_entry_dialog_mediator (const GValue* value); GType text_entry_dialog_mediator_get_type (void) G_GNUC_CONST; GType tags_dialog_get_type (void) G_GNUC_CONST; GType add_tags_dialog_get_type (void) G_GNUC_CONST; AddTagsDialog* add_tags_dialog_new (void); AddTagsDialog* add_tags_dialog_construct (GType object_type); gchar** add_tags_dialog_execute (AddTagsDialog* self, int* result_length1); gpointer command_manager_ref (gpointer instance); void command_manager_unref (gpointer instance); GParamSpec* param_spec_command_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); void value_set_command_manager (GValue* value, gpointer v_object); void value_take_command_manager (GValue* value, gpointer v_object); gpointer value_get_command_manager (const GValue* value); GType command_manager_get_type (void) G_GNUC_CONST; CommandManager* page_get_command_manager (Page* self); GType command_get_type (void) G_GNUC_CONST; void command_manager_execute (CommandManager* self, Command* command); gpointer hierarchical_tag_index_ref (gpointer instance); void hierarchical_tag_index_unref (gpointer instance); GParamSpec* param_spec_hierarchical_tag_index (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); void value_set_hierarchical_tag_index (GValue* value, gpointer v_object); void value_take_hierarchical_tag_index (GValue* value, gpointer v_object); gpointer value_get_hierarchical_tag_index (const GValue* value); GType hierarchical_tag_index_get_type (void) G_GNUC_CONST; HierarchicalTagIndex* hierarchical_tag_index_get_global_index (void); gchar** hierarchical_tag_index_get_paths_for_names_array (HierarchicalTagIndex* self, gchar** names, int names_length1, int* result_length1); AddTagsCommand* add_tags_command_new (gchar** paths, int paths_length1, GeeCollection* sources); AddTagsCommand* add_tags_command_construct (GType object_type, gchar** paths, int paths_length1, GeeCollection* sources); GType page_command_get_type (void) G_GNUC_CONST; GType add_tags_command_get_type (void) G_GNUC_CONST; GType modify_tags_dialog_get_type (void) G_GNUC_CONST; ModifyTagsDialog* modify_tags_dialog_new (MediaSource* source); ModifyTagsDialog* modify_tags_dialog_construct (GType object_type, MediaSource* source); GType tag_get_type (void) G_GNUC_CONST; GeeArrayList* modify_tags_dialog_execute (ModifyTagsDialog* self); ModifyTagsCommand* modify_tags_command_new (MediaSource* media, GeeCollection* new_tag_list); ModifyTagsCommand* modify_tags_command_construct (GType object_type, MediaSource* media, GeeCollection* new_tag_list); GType single_data_source_command_get_type (void) G_GNUC_CONST; GType modify_tags_command_get_type (void) G_GNUC_CONST; NewEventCommand* new_event_command_new (GeeIterable* iter); NewEventCommand* new_event_command_construct (GType object_type, GeeIterable* iter); GType move_photos_command_get_type (void) G_GNUC_CONST; GType new_event_command_get_type (void) G_GNUC_CONST; GeeList* view_collection_get_selected_sources_of_type (ViewCollection* self, GType t); GType flaggable_get_type (void) G_GNUC_CONST; gboolean flaggable_is_flagged (Flaggable* self); FlagUnflagCommand* flag_unflag_command_new (GeeCollection* sources, gboolean flag); FlagUnflagCommand* flag_unflag_command_construct (GType object_type, GeeCollection* sources, gboolean flag); GType multiple_data_source_at_once_command_get_type (void) G_GNUC_CONST; GType flag_unflag_command_get_type (void) G_GNUC_CONST; static void media_page_real_on_increase_rating (MediaPage* self); GType multiple_data_source_command_get_type (void) G_GNUC_CONST; GType set_rating_command_get_type (void) G_GNUC_CONST; SetRatingCommand* set_rating_command_new_inc_dec (GeeIterable* iter, gboolean is_incrementing); SetRatingCommand* set_rating_command_construct_inc_dec (GType object_type, GeeIterable* iter, gboolean is_incrementing); static void media_page_real_on_decrease_rating (MediaPage* self); void media_page_on_set_rating (MediaPage* self, Rating rating); static void media_page_real_on_set_rating (MediaPage* self, Rating rating); SetRatingCommand* set_rating_command_new (GeeIterable* iter, Rating rating); SetRatingCommand* set_rating_command_construct (GType object_type, GeeIterable* iter, Rating rating); static void media_page_real_on_rate_rejected (MediaPage* self); static void media_page_real_on_rate_unrated (MediaPage* self); static void media_page_real_on_rate_one (MediaPage* self); static void media_page_real_on_rate_two (MediaPage* self); static void media_page_real_on_rate_three (MediaPage* self); static void media_page_real_on_rate_four (MediaPage* self); static void media_page_real_on_rate_five (MediaPage* self); GType library_photo_get_type (void) G_GNUC_CONST; void remove_photos_from_library (GeeCollection* photos); static void media_page_real_on_move_to_trash (MediaPage* self); DataView* view_collection_get_next (ViewCollection* self, DataView* view); TrashUntrashPhotosCommand* trash_untrash_photos_command_new (GeeCollection* sources, gboolean to_trash); TrashUntrashPhotosCommand* trash_untrash_photos_command_construct (GType object_type, GeeCollection* sources, gboolean to_trash); GType trash_untrash_photos_command_get_type (void) G_GNUC_CONST; gboolean data_collection_contains (DataCollection* self, DataObject* object); void checkerboard_page_set_cursor (CheckerboardPage* self, CheckerboardItem* item); static void media_page_real_on_edit_title (MediaPage* self); GType edit_title_dialog_get_type (void) G_GNUC_CONST; gchar* media_source_get_title (MediaSource* self); EditTitleDialog* edit_title_dialog_new (const gchar* photo_title); EditTitleDialog* edit_title_dialog_construct (GType object_type, const gchar* photo_title); gchar* edit_title_dialog_execute (EditTitleDialog* self); EditMultipleTitlesCommand* edit_multiple_titles_command_new (GeeCollection* media_sources, const gchar* new_title); EditMultipleTitlesCommand* edit_multiple_titles_command_construct (GType object_type, GeeCollection* media_sources, const gchar* new_title); GType edit_multiple_titles_command_get_type (void) G_GNUC_CONST; static void media_page_real_on_edit_comment (MediaPage* self); gpointer multi_text_entry_dialog_mediator_ref (gpointer instance); void multi_text_entry_dialog_mediator_unref (gpointer instance); GParamSpec* param_spec_multi_text_entry_dialog_mediator (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); void value_set_multi_text_entry_dialog_mediator (GValue* value, gpointer v_object); void value_take_multi_text_entry_dialog_mediator (GValue* value, gpointer v_object); gpointer value_get_multi_text_entry_dialog_mediator (const GValue* value); GType multi_text_entry_dialog_mediator_get_type (void) G_GNUC_CONST; GType edit_comment_dialog_get_type (void) G_GNUC_CONST; gchar* media_source_get_comment (MediaSource* self); EditCommentDialog* edit_comment_dialog_new (const gchar* comment, gboolean is_event); EditCommentDialog* edit_comment_dialog_construct (GType object_type, const gchar* comment, gboolean is_event); gchar* edit_comment_dialog_execute (EditCommentDialog* self); EditMultipleCommentsCommand* edit_multiple_comments_command_new (GeeCollection* media_sources, const gchar* new_comment); EditMultipleCommentsCommand* edit_multiple_comments_command_construct (GType object_type, GeeCollection* media_sources, const gchar* new_comment); GType edit_multiple_comments_command_get_type (void) G_GNUC_CONST; static void media_page_real_on_display_titles (MediaPage* self, GSimpleAction* action, GVariant* value); void configuration_facade_set_display_photo_titles (ConfigurationFacade* self, gboolean display); static void media_page_real_on_display_comments (MediaPage* self, GSimpleAction* action, GVariant* value); void configuration_facade_set_display_photo_comments (ConfigurationFacade* self, gboolean display); static void media_page_real_on_display_ratings (MediaPage* self, GSimpleAction* action, GVariant* value); void configuration_facade_set_display_photo_ratings (ConfigurationFacade* self, gboolean display); static void media_page_real_on_display_tags (MediaPage* self, GSimpleAction* action, GVariant* value); void configuration_facade_set_display_photo_tags (ConfigurationFacade* self, gboolean display); static void media_page_real_get_config_photos_sort (MediaPage* self, gboolean* sort_order, gint* sort_by); void media_page_set_config_photos_sort (MediaPage* self, gboolean sort_order, gint sort_by); static void media_page_real_set_config_photos_sort (MediaPage* self, gboolean sort_order, gint sort_by); static void media_page_real_on_sort_changed (MediaPage* self, GSimpleAction* action, GVariant* value); gint media_page_get_menu_sort_by (MediaPage* self); gboolean media_page_get_menu_sort_order (MediaPage* self); static void media_page_set_view_comparator (MediaPage* self, gint sort_by, gboolean ascending); void media_page_developer_changed (MediaPage* self, RawDeveloper rd); static void media_page_real_developer_changed (MediaPage* self, RawDeveloper rd); gboolean raw_developer_is_equivalent (RawDeveloper self, RawDeveloper d); RawDeveloper photo_get_raw_developer (Photo* self); gboolean photo_has_transformations (Photo* self); gboolean dialogs_confirm_warn_developer_changed (gint number); GType set_raw_developer_command_get_type (void) G_GNUC_CONST; SetRawDeveloperCommand* set_raw_developer_command_new (GeeIterable* iter, RawDeveloper developer); SetRawDeveloperCommand* set_raw_developer_command_construct (GType object_type, GeeIterable* iter, RawDeveloper developer); static void media_page_real_set_display_titles (CheckerboardPage* base, gboolean display); static void media_page_real_set_display_comments (CheckerboardPage* base, gboolean display); static GAction* media_page_sort_by_title_action (MediaPage* self); static GAction* media_page_sort_ascending_action (MediaPage* self); void media_page_set_menu_sort_by (MediaPage* self, gint val); static GVariant* _variant_new30 (const gchar* value); void media_page_set_menu_sort_order (MediaPage* self, gboolean ascending); static GVariant* _variant_new31 (const gchar* value); gint64 thumbnail_title_ascending_comparator (void* a, void* b); static gint64 _thumbnail_title_ascending_comparator_comparator (void* a, void* b, gpointer self); gint64 thumbnail_title_descending_comparator (void* a, void* b); static gint64 _thumbnail_title_descending_comparator_comparator (void* a, void* b, gpointer self); gboolean thumbnail_title_comparator_predicate (DataObject* object, Alteration* alteration); static gboolean _thumbnail_title_comparator_predicate_comparator_predicate (DataObject* object, Alteration* alteration, gpointer self); gint64 thumbnail_exposure_time_ascending_comparator (void* a, void* b); static gint64 _thumbnail_exposure_time_ascending_comparator_comparator (void* a, void* b, gpointer self); gint64 thumbnail_exposure_time_desending_comparator (void* a, void* b); static gint64 _thumbnail_exposure_time_desending_comparator_comparator (void* a, void* b, gpointer self); gboolean thumbnail_exposure_time_comparator_predicate (DataObject* object, Alteration* alteration); static gboolean _thumbnail_exposure_time_comparator_predicate_comparator_predicate (DataObject* object, Alteration* alteration, gpointer self); gint64 thumbnail_rating_ascending_comparator (void* a, void* b); static gint64 _thumbnail_rating_ascending_comparator_comparator (void* a, void* b, gpointer self); gint64 thumbnail_rating_descending_comparator (void* a, void* b); static gint64 _thumbnail_rating_descending_comparator_comparator (void* a, void* b, gpointer self); gboolean thumbnail_rating_comparator_predicate (DataObject* object, Alteration* alteration); static gboolean _thumbnail_rating_comparator_predicate_comparator_predicate (DataObject* object, Alteration* alteration, gpointer self); gint64 thumbnail_filename_ascending_comparator (void* a, void* b); static gint64 _thumbnail_filename_ascending_comparator_comparator (void* a, void* b, gpointer self); gint64 thumbnail_filename_descending_comparator (void* a, void* b); static gint64 _thumbnail_filename_descending_comparator_comparator (void* a, void* b, gpointer self); gboolean thumbnail_filename_comparator_predicate (DataObject* object, Alteration* alteration); static gboolean _thumbnail_filename_comparator_predicate_comparator_predicate (DataObject* object, Alteration* alteration, gpointer self); void data_collection_set_comparator (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target); static void media_page_real_destroy (GtkWidget* base); void media_page_zoom_slider_assembly_increase_step (MediaPageZoomSliderAssembly* self); void media_page_zoom_slider_assembly_decrease_step (MediaPageZoomSliderAssembly* self); DataView* media_page_create_thumbnail (MediaPage* self, DataSource* source); static DataView* media_page_real_create_thumbnail (MediaPage* self, DataSource* source); Thumbnail* thumbnail_new (MediaSource* media, gint scale); Thumbnail* thumbnail_construct (GType object_type, MediaSource* media, gint scale); gboolean page_is_in_view (Page* self); GType checkerboard_layout_get_type (void) G_GNUC_CONST; CheckerboardLayout* checkerboard_page_get_checkerboard_layout (CheckerboardPage* self); void checkerboard_layout_set_scale (CheckerboardLayout* self, gint scale); gint checkerboard_layout_get_scale (CheckerboardLayout* self); #define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssemblyPrivate)) enum { MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_DUMMY_PROPERTY }; #define RESOURCES_ICON_ZOOM_OUT "zoom-out.png" #define RESOURCES_ICON_ZOOM_SCALE 16 static gboolean media_page_zoom_slider_assembly_on_zoom_out_pressed (MediaPageZoomSliderAssembly* self, GdkEventButton* event); static gboolean _media_page_zoom_slider_assembly_on_zoom_out_pressed_gtk_widget_button_press_event (GtkWidget* _sender, GdkEventButton* event, gpointer self); gdouble media_page_zoom_slider_assembly_scale_to_slider (gint value); static void media_page_zoom_slider_assembly_on_slider_changed (MediaPageZoomSliderAssembly* self); static void _media_page_zoom_slider_assembly_on_slider_changed_gtk_range_value_changed (GtkRange* _sender, gpointer self); #define RESOURCES_ICON_ZOOM_IN "zoom-in.png" static gboolean media_page_zoom_slider_assembly_on_zoom_in_pressed (MediaPageZoomSliderAssembly* self, GdkEventButton* event); static gboolean _media_page_zoom_slider_assembly_on_zoom_in_pressed_gtk_widget_button_press_event (GtkWidget* _sender, GdkEventButton* event, gpointer self); gint media_page_zoom_slider_assembly_slider_to_scale (gdouble value); void media_page_zoom_slider_assembly_snap_to_min (MediaPageZoomSliderAssembly* self); void media_page_zoom_slider_assembly_snap_to_max (MediaPageZoomSliderAssembly* self); static void media_page_zoom_slider_assembly_finalize (GObject* obj); static void media_page_finalize (GObject* obj); static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func); static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func); static const GActionEntry MEDIA_PAGE_entries[30] = {{"Export", _media_page_on_export_gsimple_action_activate_callback}, {"SendTo", _media_page_on_send_to_gsimple_action_activate_callback}, {"SendToContextMenu", _media_page_on_send_to_gsimple_action_activate_callback}, {"RemoveFromLibrary", _media_page_on_remove_from_library_gsimple_action_activate_callback}, {"MoveToTrash", _media_page_on_move_to_trash_gsimple_action_activate_callback}, {"NewEvent", _media_page_on_new_event_gsimple_action_activate_callback}, {"AddTags", _media_page_on_add_tags_gsimple_action_activate_callback}, {"AddTagsContextMenu", _media_page_on_add_tags_gsimple_action_activate_callback}, {"ModifyTags", _media_page_on_modify_tags_gsimple_action_activate_callback}, {"IncreaseSize", _media_page_on_increase_size_gsimple_action_activate_callback}, {"DecreaseSize", _media_page_on_decrease_size_gsimple_action_activate_callback}, {"Flag", _media_page_on_flag_unflag_gsimple_action_activate_callback}, {"IncreaseRating", _media_page_on_increase_rating_gsimple_action_activate_callback}, {"DecreaseRating", _media_page_on_decrease_rating_gsimple_action_activate_callback}, {"RateRejected", _media_page_on_rate_rejected_gsimple_action_activate_callback}, {"RateUnrated", _media_page_on_rate_unrated_gsimple_action_activate_callback}, {"RateOne", _media_page_on_rate_one_gsimple_action_activate_callback}, {"RateTwo", _media_page_on_rate_two_gsimple_action_activate_callback}, {"RateThree", _media_page_on_rate_three_gsimple_action_activate_callback}, {"RateFour", _media_page_on_rate_four_gsimple_action_activate_callback}, {"RateFive", _media_page_on_rate_five_gsimple_action_activate_callback}, {"EditTitle", _media_page_on_edit_title_gsimple_action_activate_callback}, {"EditComment", _media_page_on_edit_comment_gsimple_action_activate_callback}, {"PlayVideo", _media_page_on_play_video_gsimple_action_activate_callback}, {"ViewTitle", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _media_page_on_display_titles_gsimple_action_change_state_callback}, {"ViewComment", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _media_page_on_display_comments_gsimple_action_change_state_callback}, {"ViewRatings", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _media_page_on_display_ratings_gsimple_action_change_state_callback}, {"ViewTags", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _media_page_on_display_tags_gsimple_action_change_state_callback}, {"SortBy", _page_on_action_radio_gsimple_action_activate_callback, "s", "'1'", _media_page_on_sort_changed_gsimple_action_change_state_callback}, {"Sort", _page_on_action_radio_gsimple_action_activate_callback, "s", "'ascending'", _media_page_on_sort_changed_gsimple_action_change_state_callback}}; MediaSourceItem* media_source_item_construct (GType object_type, ThumbnailSource* source, Dimensions* initial_pixbuf_dim, const gchar* title, const gchar* comment, gboolean marked_up, PangoAlignment alignment) { MediaSourceItem * self = NULL; ThumbnailSource* _tmp0_ = NULL; Dimensions _tmp1_ = {0}; const gchar* _tmp2_ = NULL; const gchar* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; PangoAlignment _tmp5_ = 0; GdkPixbuf* _tmp6_ = NULL; #line 16 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), NULL); #line 16 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (initial_pixbuf_dim != NULL, NULL); #line 16 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (title != NULL, NULL); #line 18 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = source; #line 18 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = *initial_pixbuf_dim; #line 18 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = title; #line 18 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = comment; #line 18 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = marked_up; #line 18 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = alignment; #line 18 "/home/jens/Source/shotwell/src/MediaPage.vala" self = (MediaSourceItem*) checkerboard_item_construct (object_type, _tmp0_, &_tmp1_, _tmp2_, _tmp3_, _tmp4_, _tmp5_); #line 19 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = media_source_item_basis_sprocket_pixbuf; #line 19 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp6_ == NULL) { #line 1485 "MediaPage.c" GdkPixbuf* _tmp7_ = NULL; #line 20 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = resources_load_icon ("sprocket.png", 0); #line 20 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (media_source_item_basis_sprocket_pixbuf); #line 20 "/home/jens/Source/shotwell/src/MediaPage.vala" media_source_item_basis_sprocket_pixbuf = _tmp7_; #line 1493 "MediaPage.c" } #line 16 "/home/jens/Source/shotwell/src/MediaPage.vala" return self; #line 1497 "MediaPage.c" } MediaSourceItem* media_source_item_new (ThumbnailSource* source, Dimensions* initial_pixbuf_dim, const gchar* title, const gchar* comment, gboolean marked_up, PangoAlignment alignment) { #line 16 "/home/jens/Source/shotwell/src/MediaPage.vala" return media_source_item_construct (TYPE_MEDIA_SOURCE_ITEM, source, initial_pixbuf_dim, title, comment, marked_up, alignment); #line 1504 "MediaPage.c" } static void media_source_item_real_paint_image (CheckerboardItem* base, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin) { MediaSourceItem * self; Dimensions pixbuf_dim = {0}; GdkPixbuf* _tmp0_ = NULL; Dimensions _tmp1_ = {0}; gboolean _tmp2_ = FALSE; cairo_t* _tmp21_ = NULL; GdkPixbuf* _tmp22_ = NULL; GdkPoint _tmp23_ = {0}; gboolean _tmp24_ = FALSE; #line 23 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem); #line 23 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (ctx != NULL); #line 23 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); #line 23 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (origin != NULL); #line 25 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = pixbuf; #line 25 "/home/jens/Source/shotwell/src/MediaPage.vala" dimensions_for_pixbuf (_tmp0_, &_tmp1_); #line 25 "/home/jens/Source/shotwell/src/MediaPage.vala" pixbuf_dim = _tmp1_; #line 30 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = self->priv->enable_sprockets; #line 30 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!_tmp2_) { #line 31 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_item_set_horizontal_trinket_offset (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), 0); #line 1538 "MediaPage.c" } else { gdouble reduction_factor = 0.0; gint _tmp3_ = 0; gint reduced_size = 0; gdouble _tmp4_ = 0.0; GdkPixbuf* _tmp5_ = NULL; gint _tmp6_ = 0; gint _tmp7_ = 0; gboolean _tmp8_ = FALSE; GdkPixbuf* _tmp9_ = NULL; GdkPixbuf* _tmp18_ = NULL; gint _tmp19_ = 0; gint _tmp20_ = 0; #line 33 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = dimensions_major_axis (&pixbuf_dim); #line 33 "/home/jens/Source/shotwell/src/MediaPage.vala" reduction_factor = ((gdouble) _tmp3_) / ((gdouble) THUMBNAIL_CACHE_SIZE_LARGEST); #line 35 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = reduction_factor; #line 35 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = media_source_item_basis_sprocket_pixbuf; #line 35 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = gdk_pixbuf_get_width (_tmp5_); #line 35 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; #line 35 "/home/jens/Source/shotwell/src/MediaPage.vala" reduced_size = (gint) (_tmp4_ * _tmp7_); #line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = media_source_item_current_sprocket_pixbuf; #line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp9_ == NULL) { #line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = TRUE; #line 1572 "MediaPage.c" } else { gint _tmp10_ = 0; GdkPixbuf* _tmp11_ = NULL; gint _tmp12_ = 0; gint _tmp13_ = 0; #line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = reduced_size; #line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = media_source_item_current_sprocket_pixbuf; #line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = gdk_pixbuf_get_width (_tmp11_); #line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = _tmp12_; #line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _tmp10_ != _tmp13_; #line 1588 "MediaPage.c" } #line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp8_) { #line 1592 "MediaPage.c" GdkPixbuf* _tmp14_ = NULL; gint _tmp15_ = 0; gint _tmp16_ = 0; GdkPixbuf* _tmp17_ = NULL; #line 38 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = media_source_item_basis_sprocket_pixbuf; #line 38 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = reduced_size; #line 38 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = reduced_size; #line 38 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = gdk_pixbuf_scale_simple (_tmp14_, _tmp15_, _tmp16_, GDK_INTERP_HYPER); #line 38 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (media_source_item_current_sprocket_pixbuf); #line 38 "/home/jens/Source/shotwell/src/MediaPage.vala" media_source_item_current_sprocket_pixbuf = _tmp17_; #line 1609 "MediaPage.c" } #line 42 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = media_source_item_current_sprocket_pixbuf; #line 42 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = gdk_pixbuf_get_width (_tmp18_); #line 42 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = _tmp19_; #line 42 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_item_set_horizontal_trinket_offset (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp20_); #line 1619 "MediaPage.c" } #line 45 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = ctx; #line 45 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = pixbuf; #line 45 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = *origin; #line 45 "/home/jens/Source/shotwell/src/MediaPage.vala" CHECKERBOARD_ITEM_CLASS (media_source_item_parent_class)->paint_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp21_, _tmp22_, &_tmp23_); #line 47 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = self->priv->enable_sprockets; #line 47 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp24_) { #line 1633 "MediaPage.c" cairo_t* _tmp25_ = NULL; GdkPoint _tmp26_ = {0}; Dimensions _tmp27_ = {0}; #line 48 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp25_ = ctx; #line 48 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp26_ = *origin; #line 48 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp27_ = pixbuf_dim; #line 48 "/home/jens/Source/shotwell/src/MediaPage.vala" media_source_item_paint_sprockets (self, _tmp25_, &_tmp26_, &_tmp27_); #line 1645 "MediaPage.c" } } void media_source_item_paint_one_sprocket (MediaSourceItem* self, cairo_t* ctx, GdkPoint* origin) { cairo_t* _tmp0_ = NULL; cairo_t* _tmp1_ = NULL; GdkPixbuf* _tmp2_ = NULL; GdkPoint _tmp3_ = {0}; gint _tmp4_ = 0; GdkPoint _tmp5_ = {0}; gint _tmp6_ = 0; cairo_t* _tmp7_ = NULL; cairo_t* _tmp8_ = NULL; #line 52 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_SOURCE_ITEM (self)); #line 52 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (ctx != NULL); #line 52 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (origin != NULL); #line 53 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = ctx; #line 53 "/home/jens/Source/shotwell/src/MediaPage.vala" cairo_save (_tmp0_); #line 54 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = ctx; #line 54 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_source_item_current_sprocket_pixbuf; #line 54 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = *origin; #line 54 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _tmp3_.x; #line 54 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = *origin; #line 54 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_.y; #line 54 "/home/jens/Source/shotwell/src/MediaPage.vala" gdk_cairo_set_source_pixbuf (_tmp1_, _tmp2_, (gdouble) _tmp4_, (gdouble) _tmp6_); #line 55 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = ctx; #line 55 "/home/jens/Source/shotwell/src/MediaPage.vala" cairo_paint (_tmp7_); #line 56 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = ctx; #line 56 "/home/jens/Source/shotwell/src/MediaPage.vala" cairo_restore (_tmp8_); #line 1692 "MediaPage.c" } void media_source_item_paint_sprockets (MediaSourceItem* self, cairo_t* ctx, GdkPoint* item_origin, Dimensions* item_dimensions) { gint num_sprockets = 0; Dimensions _tmp0_ = {0}; gint _tmp1_ = 0; GdkPixbuf* _tmp2_ = NULL; gint _tmp3_ = 0; gint _tmp4_ = 0; GdkPoint left_paint_location = {0}; GdkPoint _tmp5_ = {0}; GdkPoint right_paint_location = {0}; GdkPoint _tmp6_ = {0}; gint _tmp7_ = 0; Dimensions _tmp8_ = {0}; gint _tmp9_ = 0; GdkPixbuf* _tmp10_ = NULL; gint _tmp11_ = 0; gint _tmp12_ = 0; gint straggler_pixels = 0; Dimensions _tmp29_ = {0}; gint _tmp30_ = 0; GdkPixbuf* _tmp31_ = NULL; gint _tmp32_ = 0; gint _tmp33_ = 0; gint _tmp34_ = 0; #line 59 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_SOURCE_ITEM (self)); #line 59 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (ctx != NULL); #line 59 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (item_origin != NULL); #line 59 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (item_dimensions != NULL); #line 61 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = *item_dimensions; #line 61 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_.height; #line 61 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_source_item_current_sprocket_pixbuf; #line 61 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = gdk_pixbuf_get_height (_tmp2_); #line 61 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _tmp3_; #line 61 "/home/jens/Source/shotwell/src/MediaPage.vala" num_sprockets = _tmp1_ / _tmp4_; #line 63 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = *item_origin; #line 63 "/home/jens/Source/shotwell/src/MediaPage.vala" left_paint_location = _tmp5_; #line 64 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = *item_origin; #line 64 "/home/jens/Source/shotwell/src/MediaPage.vala" right_paint_location = _tmp6_; #line 65 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = right_paint_location.x; #line 65 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = *item_dimensions; #line 65 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _tmp8_.width; #line 65 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = media_source_item_current_sprocket_pixbuf; #line 65 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = gdk_pixbuf_get_width (_tmp10_); #line 65 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _tmp11_; #line 65 "/home/jens/Source/shotwell/src/MediaPage.vala" right_paint_location.x = _tmp7_ + (_tmp9_ - _tmp12_); #line 1762 "MediaPage.c" { gint i = 0; #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" i = 0; #line 1767 "MediaPage.c" { gboolean _tmp13_ = FALSE; #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = TRUE; #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" while (TRUE) { #line 1774 "MediaPage.c" gint _tmp15_ = 0; gint _tmp16_ = 0; cairo_t* _tmp17_ = NULL; GdkPoint _tmp18_ = {0}; cairo_t* _tmp19_ = NULL; GdkPoint _tmp20_ = {0}; gint _tmp21_ = 0; GdkPixbuf* _tmp22_ = NULL; gint _tmp23_ = 0; gint _tmp24_ = 0; gint _tmp25_ = 0; GdkPixbuf* _tmp26_ = NULL; gint _tmp27_ = 0; gint _tmp28_ = 0; #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!_tmp13_) { #line 1791 "MediaPage.c" gint _tmp14_ = 0; #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = i; #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" i = _tmp14_ + 1; #line 1797 "MediaPage.c" } #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = FALSE; #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = i; #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = num_sprockets; #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!(_tmp15_ < _tmp16_)) { #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 1809 "MediaPage.c" } #line 67 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = ctx; #line 67 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = left_paint_location; #line 67 "/home/jens/Source/shotwell/src/MediaPage.vala" media_source_item_paint_one_sprocket (self, _tmp17_, &_tmp18_); #line 68 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = ctx; #line 68 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = right_paint_location; #line 68 "/home/jens/Source/shotwell/src/MediaPage.vala" media_source_item_paint_one_sprocket (self, _tmp19_, &_tmp20_); #line 70 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = left_paint_location.y; #line 70 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = media_source_item_current_sprocket_pixbuf; #line 70 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = gdk_pixbuf_get_height (_tmp22_); #line 70 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = _tmp23_; #line 70 "/home/jens/Source/shotwell/src/MediaPage.vala" left_paint_location.y = _tmp21_ + _tmp24_; #line 71 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp25_ = right_paint_location.y; #line 71 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp26_ = media_source_item_current_sprocket_pixbuf; #line 71 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp27_ = gdk_pixbuf_get_height (_tmp26_); #line 71 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp28_ = _tmp27_; #line 71 "/home/jens/Source/shotwell/src/MediaPage.vala" right_paint_location.y = _tmp25_ + _tmp28_; #line 1843 "MediaPage.c" } } } #line 74 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp29_ = *item_dimensions; #line 74 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp30_ = _tmp29_.height; #line 74 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp31_ = media_source_item_current_sprocket_pixbuf; #line 74 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp32_ = gdk_pixbuf_get_height (_tmp31_); #line 74 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp33_ = _tmp32_; #line 74 "/home/jens/Source/shotwell/src/MediaPage.vala" straggler_pixels = _tmp30_ % _tmp33_; #line 75 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp34_ = straggler_pixels; #line 75 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp34_ > 0) { #line 1863 "MediaPage.c" cairo_t* _tmp35_ = NULL; cairo_t* _tmp36_ = NULL; GdkPixbuf* _tmp37_ = NULL; GdkPoint _tmp38_ = {0}; gint _tmp39_ = 0; GdkPoint _tmp40_ = {0}; gint _tmp41_ = 0; cairo_t* _tmp42_ = NULL; GdkPoint _tmp43_ = {0}; gint _tmp44_ = 0; GdkPoint _tmp45_ = {0}; gint _tmp46_ = 0; GdkPixbuf* _tmp47_ = NULL; gint _tmp48_ = 0; gint _tmp49_ = 0; cairo_t* _tmp50_ = NULL; cairo_t* _tmp51_ = NULL; GdkPixbuf* _tmp52_ = NULL; GdkPoint _tmp53_ = {0}; gint _tmp54_ = 0; GdkPoint _tmp55_ = {0}; gint _tmp56_ = 0; cairo_t* _tmp57_ = NULL; GdkPoint _tmp58_ = {0}; gint _tmp59_ = 0; GdkPoint _tmp60_ = {0}; gint _tmp61_ = 0; GdkPixbuf* _tmp62_ = NULL; gint _tmp63_ = 0; gint _tmp64_ = 0; cairo_t* _tmp65_ = NULL; cairo_t* _tmp66_ = NULL; #line 76 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp35_ = ctx; #line 76 "/home/jens/Source/shotwell/src/MediaPage.vala" cairo_save (_tmp35_); #line 78 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp36_ = ctx; #line 78 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp37_ = media_source_item_current_sprocket_pixbuf; #line 78 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp38_ = left_paint_location; #line 78 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp39_ = _tmp38_.x; #line 78 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp40_ = left_paint_location; #line 78 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp41_ = _tmp40_.y; #line 78 "/home/jens/Source/shotwell/src/MediaPage.vala" gdk_cairo_set_source_pixbuf (_tmp36_, _tmp37_, (gdouble) _tmp39_, (gdouble) _tmp41_); #line 80 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp42_ = ctx; #line 80 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp43_ = left_paint_location; #line 80 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp44_ = _tmp43_.x; #line 80 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp45_ = left_paint_location; #line 80 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp46_ = _tmp45_.y; #line 80 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp47_ = media_source_item_current_sprocket_pixbuf; #line 80 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp48_ = gdk_pixbuf_get_width (_tmp47_); #line 80 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp49_ = straggler_pixels; #line 80 "/home/jens/Source/shotwell/src/MediaPage.vala" cairo_rectangle (_tmp42_, (gdouble) _tmp44_, (gdouble) _tmp46_, (gdouble) _tmp48_, (gdouble) _tmp49_); #line 82 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp50_ = ctx; #line 82 "/home/jens/Source/shotwell/src/MediaPage.vala" cairo_fill (_tmp50_); #line 84 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp51_ = ctx; #line 84 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp52_ = media_source_item_current_sprocket_pixbuf; #line 84 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp53_ = right_paint_location; #line 84 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp54_ = _tmp53_.x; #line 84 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp55_ = right_paint_location; #line 84 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp56_ = _tmp55_.y; #line 84 "/home/jens/Source/shotwell/src/MediaPage.vala" gdk_cairo_set_source_pixbuf (_tmp51_, _tmp52_, (gdouble) _tmp54_, (gdouble) _tmp56_); #line 86 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp57_ = ctx; #line 86 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp58_ = right_paint_location; #line 86 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp59_ = _tmp58_.x; #line 86 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp60_ = right_paint_location; #line 86 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp61_ = _tmp60_.y; #line 86 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp62_ = media_source_item_current_sprocket_pixbuf; #line 86 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp63_ = gdk_pixbuf_get_width (_tmp62_); #line 86 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp64_ = straggler_pixels; #line 86 "/home/jens/Source/shotwell/src/MediaPage.vala" cairo_rectangle (_tmp57_, (gdouble) _tmp59_, (gdouble) _tmp61_, (gdouble) _tmp63_, (gdouble) _tmp64_); #line 88 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp65_ = ctx; #line 88 "/home/jens/Source/shotwell/src/MediaPage.vala" cairo_fill (_tmp65_); #line 90 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp66_ = ctx; #line 90 "/home/jens/Source/shotwell/src/MediaPage.vala" cairo_restore (_tmp66_); #line 1976 "MediaPage.c" } } void media_source_item_set_enable_sprockets (MediaSourceItem* self, gboolean enable_sprockets) { gboolean _tmp0_ = FALSE; #line 94 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_SOURCE_ITEM (self)); #line 95 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = enable_sprockets; #line 95 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->enable_sprockets = _tmp0_; #line 1989 "MediaPage.c" } void media_source_item_set_title (MediaSourceItem* self, const gchar* text, gboolean marked_up, PangoAlignment alignment) { const gchar* _tmp0_ = NULL; gboolean _tmp1_ = FALSE; PangoAlignment _tmp2_ = 0; #line 98 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_SOURCE_ITEM (self)); #line 98 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (text != NULL); #line 100 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = text; #line 100 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = marked_up; #line 100 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = alignment; #line 100 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_item_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp0_, _tmp1_, _tmp2_); #line 101 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (self->priv->natural_collation_key); #line 101 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->natural_collation_key = NULL; #line 2013 "MediaPage.c" } gchar* media_source_item_get_natural_collation_key (MediaSourceItem* self) { gchar* result = NULL; const gchar* _tmp0_ = NULL; const gchar* _tmp3_ = NULL; gchar* _tmp4_ = NULL; #line 104 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_SOURCE_ITEM (self), NULL); #line 105 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->natural_collation_key; #line 105 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_ == NULL) { #line 2028 "MediaPage.c" gchar* _tmp1_ = NULL; gchar* _tmp2_ = NULL; #line 106 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = checkerboard_item_get_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); #line 106 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = natural_collate_collate_key (_tmp1_); #line 106 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (self->priv->natural_collation_key); #line 106 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->natural_collation_key = _tmp2_; #line 2039 "MediaPage.c" } #line 108 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = self->priv->natural_collation_key; #line 108 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = g_strdup (_tmp3_); #line 108 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp4_; #line 108 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 2049 "MediaPage.c" } static void media_source_item_class_init (MediaSourceItemClass * klass) { #line 7 "/home/jens/Source/shotwell/src/MediaPage.vala" media_source_item_parent_class = g_type_class_peek_parent (klass); #line 7 "/home/jens/Source/shotwell/src/MediaPage.vala" g_type_class_add_private (klass, sizeof (MediaSourceItemPrivate)); #line 7 "/home/jens/Source/shotwell/src/MediaPage.vala" ((CheckerboardItemClass *) klass)->paint_image = media_source_item_real_paint_image; #line 7 "/home/jens/Source/shotwell/src/MediaPage.vala" G_OBJECT_CLASS (klass)->finalize = media_source_item_finalize; #line 2062 "MediaPage.c" } static void media_source_item_instance_init (MediaSourceItem * self) { #line 7 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv = MEDIA_SOURCE_ITEM_GET_PRIVATE (self); #line 11 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->enable_sprockets = FALSE; #line 12 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->natural_collation_key = NULL; #line 2073 "MediaPage.c" } static void media_source_item_finalize (GObject* obj) { MediaSourceItem * self; #line 7 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem); #line 12 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (self->priv->natural_collation_key); #line 7 "/home/jens/Source/shotwell/src/MediaPage.vala" G_OBJECT_CLASS (media_source_item_parent_class)->finalize (obj); #line 2085 "MediaPage.c" } GType media_source_item_get_type (void) { static volatile gsize media_source_item_type_id__volatile = 0; if (g_once_init_enter (&media_source_item_type_id__volatile)) { static const GTypeInfo g_define_type_info = { sizeof (MediaSourceItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_source_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaSourceItem), 0, (GInstanceInitFunc) media_source_item_instance_init, NULL }; GType media_source_item_type_id; media_source_item_type_id = g_type_register_static (TYPE_CHECKERBOARD_ITEM, "MediaSourceItem", &g_define_type_info, 0); g_once_init_leave (&media_source_item_type_id__volatile, media_source_item_type_id); } return media_source_item_type_id__volatile; } GType media_page_sort_by_get_type (void) { static volatile gsize media_page_sort_by_type_id__volatile = 0; if (g_once_init_enter (&media_page_sort_by_type_id__volatile)) { static const GEnumValue values[] = {{MEDIA_PAGE_SORT_BY_MIN, "MEDIA_PAGE_SORT_BY_MIN", "min"}, {MEDIA_PAGE_SORT_BY_TITLE, "MEDIA_PAGE_SORT_BY_TITLE", "title"}, {MEDIA_PAGE_SORT_BY_EXPOSURE_DATE, "MEDIA_PAGE_SORT_BY_EXPOSURE_DATE", "exposure-date"}, {MEDIA_PAGE_SORT_BY_RATING, "MEDIA_PAGE_SORT_BY_RATING", "rating"}, {MEDIA_PAGE_SORT_BY_FILENAME, "MEDIA_PAGE_SORT_BY_FILENAME", "filename"}, {MEDIA_PAGE_SORT_BY_MAX, "MEDIA_PAGE_SORT_BY_MAX", "max"}, {0, NULL, NULL}}; GType media_page_sort_by_type_id; media_page_sort_by_type_id = g_enum_register_static ("MediaPageSortBy", values); g_once_init_leave (&media_page_sort_by_type_id__volatile, media_page_sort_by_type_id); } return media_page_sort_by_type_id__volatile; } static void _media_page_on_export_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_export ((MediaPage*) self); #line 2116 "MediaPage.c" } static void _media_page_on_send_to_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_send_to ((MediaPage*) self); #line 2123 "MediaPage.c" } static void _media_page_on_remove_from_library_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_remove_from_library ((MediaPage*) self); #line 2130 "MediaPage.c" } static void _media_page_on_move_to_trash_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_move_to_trash ((MediaPage*) self); #line 2137 "MediaPage.c" } static void _media_page_on_new_event_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_new_event ((MediaPage*) self); #line 2144 "MediaPage.c" } static void _media_page_on_add_tags_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_add_tags ((MediaPage*) self); #line 2151 "MediaPage.c" } static void _media_page_on_modify_tags_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_modify_tags ((MediaPage*) self); #line 2158 "MediaPage.c" } static void _media_page_on_increase_size_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_increase_size ((MediaPage*) self); #line 2165 "MediaPage.c" } static void _media_page_on_decrease_size_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_decrease_size ((MediaPage*) self); #line 2172 "MediaPage.c" } static void _media_page_on_flag_unflag_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_flag_unflag ((MediaPage*) self); #line 2179 "MediaPage.c" } static void _media_page_on_increase_rating_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_increase_rating ((MediaPage*) self); #line 2186 "MediaPage.c" } static void _media_page_on_decrease_rating_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_decrease_rating ((MediaPage*) self); #line 2193 "MediaPage.c" } static void _media_page_on_rate_rejected_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_rate_rejected ((MediaPage*) self); #line 2200 "MediaPage.c" } static void _media_page_on_rate_unrated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_rate_unrated ((MediaPage*) self); #line 2207 "MediaPage.c" } static void _media_page_on_rate_one_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_rate_one ((MediaPage*) self); #line 2214 "MediaPage.c" } static void _media_page_on_rate_two_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_rate_two ((MediaPage*) self); #line 2221 "MediaPage.c" } static void _media_page_on_rate_three_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_rate_three ((MediaPage*) self); #line 2228 "MediaPage.c" } static void _media_page_on_rate_four_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_rate_four ((MediaPage*) self); #line 2235 "MediaPage.c" } static void _media_page_on_rate_five_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_rate_five ((MediaPage*) self); #line 2242 "MediaPage.c" } static void _media_page_on_edit_title_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_edit_title ((MediaPage*) self); #line 2249 "MediaPage.c" } static void _media_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_edit_comment ((MediaPage*) self); #line 2256 "MediaPage.c" } static void _media_page_on_play_video_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_play_video ((MediaPage*) self); #line 2263 "MediaPage.c" } static void _page_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" page_on_action_toggle ((Page*) self, action, parameter); #line 2270 "MediaPage.c" } static void _media_page_on_display_titles_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_display_titles ((MediaPage*) self, action, value); #line 2277 "MediaPage.c" } static void _media_page_on_display_comments_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_display_comments ((MediaPage*) self, action, value); #line 2284 "MediaPage.c" } static void _media_page_on_display_ratings_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_display_ratings ((MediaPage*) self, action, value); #line 2291 "MediaPage.c" } static void _media_page_on_display_tags_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_display_tags ((MediaPage*) self, action, value); #line 2298 "MediaPage.c" } static void _page_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" page_on_action_radio ((Page*) self, action, parameter); #line 2305 "MediaPage.c" } static void _media_page_on_sort_changed_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_sort_changed ((MediaPage*) self, action, value); #line 2312 "MediaPage.c" } static void _media_page_on_media_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) { #line 252 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_media_altered ((MediaPage*) self, items); #line 2319 "MediaPage.c" } MediaPage* media_page_construct (GType object_type, const gchar* page_name) { MediaPage * self = NULL; const gchar* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; ViewCollection* _tmp2_ = NULL; MediaViewTracker* _tmp3_ = NULL; ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; ViewCollection* _tmp6_ = NULL; ViewCollection* _tmp7_ = NULL; ViewCollection* _tmp8_ = NULL; ViewCollection* _tmp9_ = NULL; ConfigFacade* _tmp10_ = NULL; ConfigFacade* _tmp11_ = NULL; gboolean _tmp12_ = FALSE; GValue _tmp13_ = {0}; ViewCollection* _tmp14_ = NULL; ViewCollection* _tmp15_ = NULL; ConfigFacade* _tmp16_ = NULL; ConfigFacade* _tmp17_ = NULL; gboolean _tmp18_ = FALSE; GValue _tmp19_ = {0}; ViewCollection* _tmp20_ = NULL; ViewCollection* _tmp21_ = NULL; ConfigFacade* _tmp22_ = NULL; ConfigFacade* _tmp23_ = NULL; gboolean _tmp24_ = FALSE; GValue _tmp25_ = {0}; ViewCollection* _tmp26_ = NULL; ViewCollection* _tmp27_ = NULL; gint _tmp28_ = 0; GValue _tmp29_ = {0}; ViewCollection* _tmp30_ = NULL; ViewCollection* _tmp31_ = NULL; ConfigFacade* _tmp32_ = NULL; ConfigFacade* _tmp33_ = NULL; gboolean _tmp34_ = FALSE; GValue _tmp35_ = {0}; ViewCollection* _tmp36_ = NULL; ViewCollection* _tmp37_ = NULL; DragAndDropHandler* _tmp38_ = NULL; #line 247 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (page_name != NULL, NULL); #line 248 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_name; #line 248 "/home/jens/Source/shotwell/src/MediaPage.vala" self = (MediaPage*) checkerboard_page_construct (object_type, _tmp0_); #line 250 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 250 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; #line 250 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = media_view_tracker_new (_tmp2_); #line 250 "/home/jens/Source/shotwell/src/MediaPage.vala" _core_tracker_unref0 (self->priv->tracker); #line 250 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->tracker = _tmp3_; #line 250 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp2_); #line 252 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 252 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; #line 252 "/home/jens/Source/shotwell/src/MediaPage.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _media_page_on_media_altered_data_collection_items_altered, self, 0); #line 252 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp5_); #line 254 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 254 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; #line 254 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection)); #line 254 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp7_); #line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _tmp8_; #line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = config_facade_get_instance (); #line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _tmp10_; #line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = configuration_facade_get_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); #line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_init (&_tmp13_, G_TYPE_BOOLEAN); #line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_set_boolean (&_tmp13_, _tmp12_); #line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_COLLECTION, DataCollection), CHECKERBOARD_ITEM_PROP_SHOW_TITLES, &_tmp13_, NULL, NULL); #line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" G_IS_VALUE (&_tmp13_) ? (g_value_unset (&_tmp13_), NULL) : NULL; #line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp11_); #line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp9_); #line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _tmp14_; #line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = config_facade_get_instance (); #line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = _tmp16_; #line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = configuration_facade_get_display_photo_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); #line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_init (&_tmp19_, G_TYPE_BOOLEAN); #line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_set_boolean (&_tmp19_, _tmp18_); #line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_COLLECTION, DataCollection), CHECKERBOARD_ITEM_PROP_SHOW_COMMENTS, &_tmp19_, NULL, NULL); #line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" G_IS_VALUE (&_tmp19_) ? (g_value_unset (&_tmp19_), NULL) : NULL; #line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp17_); #line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp15_); #line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = _tmp20_; #line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = config_facade_get_instance (); #line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = _tmp22_; #line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = configuration_facade_get_display_photo_tags (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); #line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_init (&_tmp25_, G_TYPE_BOOLEAN); #line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_set_boolean (&_tmp25_, _tmp24_); #line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SHOW_TAGS, &_tmp25_, NULL, NULL); #line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" G_IS_VALUE (&_tmp25_) ? (g_value_unset (&_tmp25_), NULL) : NULL; #line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp23_); #line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp21_); #line 261 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp26_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 261 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp27_ = _tmp26_; #line 261 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp28_ = media_page_get_thumb_size (self); #line 261 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_init (&_tmp29_, G_TYPE_INT); #line 261 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_set_int (&_tmp29_, _tmp28_); #line 261 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SIZE, &_tmp29_, NULL, NULL); #line 261 "/home/jens/Source/shotwell/src/MediaPage.vala" G_IS_VALUE (&_tmp29_) ? (g_value_unset (&_tmp29_), NULL) : NULL; #line 261 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp27_); #line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp30_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp31_ = _tmp30_; #line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp32_ = config_facade_get_instance (); #line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp33_ = _tmp32_; #line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp34_ = configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); #line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_init (&_tmp35_, G_TYPE_BOOLEAN); #line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_set_boolean (&_tmp35_, _tmp34_); #line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SHOW_RATINGS, &_tmp35_, NULL, NULL); #line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" G_IS_VALUE (&_tmp35_) ? (g_value_unset (&_tmp35_), NULL) : NULL; #line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp33_); #line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp31_); #line 264 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp36_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 264 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp37_ = _tmp36_; #line 264 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, TYPE_DATA_COLLECTION, DataCollection)); #line 264 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp37_); #line 267 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp38_ = drag_and_drop_handler_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 267 "/home/jens/Source/shotwell/src/MediaPage.vala" _drag_and_drop_handler_unref0 (self->priv->dnd_handler); #line 267 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->dnd_handler = _tmp38_; #line 247 "/home/jens/Source/shotwell/src/MediaPage.vala" return self; #line 2518 "MediaPage.c" } static gint media_page_compute_zoom_scale_increase (gint current_scale) { gint result = 0; gint new_scale = 0; gint _tmp0_ = 0; gint _tmp1_ = 0; gint _tmp2_ = 0; gint _tmp3_ = 0; gint _tmp4_ = 0; gint _tmp5_ = 0; #line 271 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = current_scale; #line 271 "/home/jens/Source/shotwell/src/MediaPage.vala" new_scale = _tmp0_ + MEDIA_PAGE_MANUAL_STEPPING; #line 272 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = thumbnail_get_MIN_SCALE (); #line 272 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; #line 272 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = thumbnail_get_MAX_SCALE (); #line 272 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _tmp3_; #line 272 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = CLAMP (new_scale, _tmp2_, _tmp4_); #line 272 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp5_; #line 272 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 2549 "MediaPage.c" } static gint media_page_compute_zoom_scale_decrease (gint current_scale) { gint result = 0; gint new_scale = 0; gint _tmp0_ = 0; gint _tmp1_ = 0; gint _tmp2_ = 0; gint _tmp3_ = 0; gint _tmp4_ = 0; gint _tmp5_ = 0; #line 276 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = current_scale; #line 276 "/home/jens/Source/shotwell/src/MediaPage.vala" new_scale = _tmp0_ - MEDIA_PAGE_MANUAL_STEPPING; #line 277 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = thumbnail_get_MIN_SCALE (); #line 277 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; #line 277 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = thumbnail_get_MAX_SCALE (); #line 277 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _tmp3_; #line 277 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = CLAMP (new_scale, _tmp2_, _tmp4_); #line 277 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp5_; #line 277 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 2580 "MediaPage.c" } static void media_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames) { MediaPage * self; GeeList* _tmp0_ = NULL; GeeList* _tmp1_ = NULL; #line 280 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); #line 280 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (GEE_IS_LIST (ui_filenames)); #line 281 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = ui_filenames; #line 281 "/home/jens/Source/shotwell/src/MediaPage.vala" PAGE_CLASS (media_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp0_); #line 283 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = ui_filenames; #line 283 "/home/jens/Source/shotwell/src/MediaPage.vala" gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), "media.ui"); #line 2600 "MediaPage.c" } static GVariant* _variant_new23 (gboolean value) { #line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); #line 2607 "MediaPage.c" } static GVariant* _variant_new24 (gboolean value) { #line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); #line 2614 "MediaPage.c" } static GVariant* _variant_new25 (gboolean value) { #line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); #line 2621 "MediaPage.c" } static GVariant* _variant_new26 (gboolean value) { #line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); #line 2628 "MediaPage.c" } static GVariant* _variant_new27 (gchar* value) { #line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_string (value)); #line 2635 "MediaPage.c" } static GVariant* _variant_new28 (const gchar* value) { #line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_string (value)); #line 2642 "MediaPage.c" } static GVariant* _variant_new29 (const gchar* value) { #line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_string (value)); #line 2649 "MediaPage.c" } static void _media_page_on_raw_developer_changed_g_simple_action_change_state (GSimpleAction* _sender, GVariant* value, gpointer self) { #line 341 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_raw_developer_changed ((MediaPage*) self, _sender, value); #line 2656 "MediaPage.c" } static void media_page_real_add_actions (Page* base, GActionMap* map) { MediaPage * self; GActionMap* _tmp0_ = NULL; gboolean sort_order = FALSE; gint sort_by = 0; gboolean _tmp1_ = FALSE; gint _tmp2_ = 0; GActionMap* _tmp3_ = NULL; GAction* _tmp4_ = NULL; GAction* _tmp5_ = NULL; ConfigFacade* _tmp6_ = NULL; ConfigFacade* _tmp7_ = NULL; gboolean _tmp8_ = FALSE; GVariant* _tmp9_ = NULL; GAction* _tmp10_ = NULL; GAction* _tmp11_ = NULL; ConfigFacade* _tmp12_ = NULL; ConfigFacade* _tmp13_ = NULL; gboolean _tmp14_ = FALSE; GVariant* _tmp15_ = NULL; GAction* _tmp16_ = NULL; GAction* _tmp17_ = NULL; ConfigFacade* _tmp18_ = NULL; ConfigFacade* _tmp19_ = NULL; gboolean _tmp20_ = FALSE; GVariant* _tmp21_ = NULL; GAction* _tmp22_ = NULL; GAction* _tmp23_ = NULL; ConfigFacade* _tmp24_ = NULL; ConfigFacade* _tmp25_ = NULL; gboolean _tmp26_ = FALSE; GVariant* _tmp27_ = NULL; GAction* _tmp28_ = NULL; GAction* _tmp29_ = NULL; gint _tmp30_ = 0; gchar* _tmp31_ = NULL; gchar* _tmp32_ = NULL; GVariant* _tmp33_ = NULL; const gchar* _tmp34_ = NULL; gboolean _tmp35_ = FALSE; GAction* _tmp36_ = NULL; GAction* _tmp37_ = NULL; GVariant* _tmp38_ = NULL; RawDeveloper d = 0; ConfigFacade* _tmp39_ = NULL; ConfigFacade* _tmp40_ = NULL; RawDeveloper _tmp41_ = 0; RawDeveloper _tmp42_ = 0; const gchar* _tmp43_ = NULL; RawDeveloper _tmp44_ = 0; GSimpleAction* action = NULL; const GVariantType* _tmp45_ = NULL; GVariant* _tmp46_ = NULL; GSimpleAction* _tmp47_ = NULL; GSimpleAction* _tmp48_ = NULL; GActionMap* _tmp49_ = NULL; #line 323 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); #line 323 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (G_IS_ACTION_MAP (map)); #line 324 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = map; #line 324 "/home/jens/Source/shotwell/src/MediaPage.vala" PAGE_CLASS (media_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp0_); #line 328 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_get_config_photos_sort (self, &_tmp1_, &_tmp2_); #line 328 "/home/jens/Source/shotwell/src/MediaPage.vala" sort_order = _tmp1_; #line 328 "/home/jens/Source/shotwell/src/MediaPage.vala" sort_by = _tmp2_; #line 330 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = map; #line 330 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_map_add_action_entries (_tmp3_, MEDIA_PAGE_entries, G_N_ELEMENTS (MEDIA_PAGE_entries), self); #line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTitle"); #line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; #line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = config_facade_get_instance (); #line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; #line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = configuration_facade_get_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); #line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _variant_new23 (_tmp8_); #line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_change_state (_tmp5_, _tmp9_); #line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp9_); #line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp7_); #line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp5_); #line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewComment"); #line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _tmp10_; #line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = config_facade_get_instance (); #line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = _tmp12_; #line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = configuration_facade_get_display_photo_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); #line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _variant_new24 (_tmp14_); #line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_change_state (_tmp11_, _tmp15_); #line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp15_); #line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp13_); #line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp11_); #line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewRatings"); #line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = _tmp16_; #line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = config_facade_get_instance (); #line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = _tmp18_; #line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); #line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = _variant_new25 (_tmp20_); #line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_change_state (_tmp17_, _tmp21_); #line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp21_); #line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp19_); #line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp17_); #line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTags"); #line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = _tmp22_; #line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = config_facade_get_instance (); #line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp25_ = _tmp24_; #line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp26_ = configuration_facade_get_display_photo_tags (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); #line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp27_ = _variant_new26 (_tmp26_); #line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_change_state (_tmp23_, _tmp27_); #line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp27_); #line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp25_); #line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp23_); #line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp28_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SortBy"); #line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp29_ = _tmp28_; #line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp30_ = sort_by; #line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp31_ = g_strdup_printf ("%d", _tmp30_); #line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp32_ = _tmp31_; #line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp33_ = _variant_new27 (_tmp32_); #line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_change_state (_tmp29_, _tmp33_); #line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp33_); #line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (_tmp32_); #line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp29_); #line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp35_ = sort_order; #line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp35_) { #line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp34_ = "ascending"; #line 2840 "MediaPage.c" } else { #line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp34_ = "descending"; #line 2844 "MediaPage.c" } #line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp36_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Sort"); #line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp37_ = _tmp36_; #line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp38_ = _variant_new28 (_tmp34_); #line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_change_state (_tmp37_, _tmp38_); #line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp38_); #line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp37_); #line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp39_ = config_facade_get_instance (); #line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp40_ = _tmp39_; #line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp41_ = configuration_facade_get_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); #line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp42_ = _tmp41_; #line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp40_); #line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" d = _tmp42_; #line 340 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp44_ = d; #line 340 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp44_ == RAW_DEVELOPER_SHOTWELL) { #line 340 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp43_ = "Shotwell"; #line 2876 "MediaPage.c" } else { #line 340 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp43_ = "Camera"; #line 2880 "MediaPage.c" } #line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp45_ = G_VARIANT_TYPE_STRING; #line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp46_ = _variant_new29 (_tmp43_); #line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp47_ = g_simple_action_new_stateful ("RawDeveloper", _tmp45_, _tmp46_); #line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp48_ = _tmp47_; #line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp46_); #line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" action = _tmp48_; #line 341 "/home/jens/Source/shotwell/src/MediaPage.vala" g_signal_connect_object (action, "change-state", (GCallback) _media_page_on_raw_developer_changed_g_simple_action_change_state, self, 0); #line 342 "/home/jens/Source/shotwell/src/MediaPage.vala" g_simple_action_set_enabled (action, TRUE); #line 343 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp49_ = map; #line 343 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_map_add_action (_tmp49_, G_TYPE_CHECK_INSTANCE_CAST (action, g_action_get_type (), GAction)); #line 323 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (action); #line 2904 "MediaPage.c" } static void media_page_real_remove_actions (Page* base, GActionMap* map) { MediaPage * self; GActionMap* _tmp0_ = NULL; #line 346 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); #line 346 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (G_IS_ACTION_MAP (map)); #line 347 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = map; #line 347 "/home/jens/Source/shotwell/src/MediaPage.vala" PAGE_CLASS (media_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp0_); #line 2919 "MediaPage.c" { GActionEntry* entry_collection = NULL; gint entry_collection_length1 = 0; gint _entry_collection_size_ = 0; gint entry_it = 0; #line 348 "/home/jens/Source/shotwell/src/MediaPage.vala" entry_collection = MEDIA_PAGE_entries; #line 348 "/home/jens/Source/shotwell/src/MediaPage.vala" entry_collection_length1 = G_N_ELEMENTS (MEDIA_PAGE_entries); #line 348 "/home/jens/Source/shotwell/src/MediaPage.vala" for (entry_it = 0; entry_it < G_N_ELEMENTS (MEDIA_PAGE_entries); entry_it = entry_it + 1) { #line 2931 "MediaPage.c" GActionEntry entry = {0}; #line 348 "/home/jens/Source/shotwell/src/MediaPage.vala" entry = entry_collection[entry_it]; #line 2935 "MediaPage.c" { GActionMap* _tmp1_ = NULL; GActionEntry _tmp2_ = {0}; const gchar* _tmp3_ = NULL; #line 349 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = map; #line 349 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = entry; #line 349 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_.name; #line 349 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_map_remove_action (_tmp1_, _tmp3_); #line 2948 "MediaPage.c" } } } } static void media_page_real_update_actions (Page* base, gint selected_count, gint count) { MediaPage * self; gint _tmp0_ = 0; gint _tmp1_ = 0; gint _tmp2_ = 0; gint _tmp3_ = 0; gint _tmp4_ = 0; gint _tmp5_ = 0; gint _tmp6_ = 0; gint _tmp7_ = 0; gint _tmp8_ = 0; gint _tmp9_ = 0; gint _tmp10_ = 0; gboolean _tmp11_ = FALSE; gint _tmp13_ = 0; gboolean _tmp14_ = FALSE; gint _tmp15_ = 0; gint _tmp20_ = 0; gint _tmp21_ = 0; gint _tmp22_ = 0; #line 353 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); #line 354 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = selected_count; #line 354 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Export", _tmp0_ > 0); #line 355 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = selected_count; #line 355 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditTitle", _tmp1_ > 0); #line 356 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = selected_count; #line 356 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditComment", _tmp2_ > 0); #line 357 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = media_page_get_thumb_size (self); #line 357 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = thumbnail_get_MAX_SCALE (); #line 357 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; #line 357 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", _tmp3_ < _tmp5_); #line 358 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = media_page_get_thumb_size (self); #line 358 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = thumbnail_get_MIN_SCALE (); #line 358 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _tmp7_; #line 358 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", _tmp6_ > _tmp8_); #line 359 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = selected_count; #line 359 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RemoveFromLibrary", _tmp9_ > 0); #line 360 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = selected_count; #line 360 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "MoveToTrash", _tmp10_ > 0); #line 362 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = desktop_integration_is_send_to_installed (); #line 362 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp11_) { #line 3017 "MediaPage.c" gint _tmp12_ = 0; #line 363 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = selected_count; #line 363 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SendTo", _tmp12_ > 0); #line 3023 "MediaPage.c" } else { #line 365 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_visible (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SendTo", FALSE); #line 3027 "MediaPage.c" } #line 367 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = selected_count; #line 367 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Rate", _tmp13_ > 0); #line 368 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_update_rating_sensitivities (self); #line 370 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_update_development_menu_item_sensitivity (self); #line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = selected_count; #line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp15_ == 1) { #line 3041 "MediaPage.c" ViewCollection* _tmp16_ = NULL; ViewCollection* _tmp17_ = NULL; DataSource* _tmp18_ = NULL; DataSource* _tmp19_ = NULL; #line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = _tmp16_; #line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = view_collection_get_selected_source_at (_tmp17_, 0); #line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = _tmp18_; #line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_VIDEO); #line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp19_); #line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp17_); #line 3060 "MediaPage.c" } else { #line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = FALSE; #line 3064 "MediaPage.c" } #line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PlayVideo", _tmp14_); #line 375 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = selected_count; #line 375 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_update_flag_action (self, _tmp20_); #line 377 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = selected_count; #line 377 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = count; #line 377 "/home/jens/Source/shotwell/src/MediaPage.vala" PAGE_CLASS (media_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp21_, _tmp22_); #line 3078 "MediaPage.c" } static void media_page_on_media_altered (MediaPage* self, GeeMap* altered) { #line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (GEE_IS_MAP (altered)); #line 3087 "MediaPage.c" { GeeIterator* _object_it = NULL; GeeMap* _tmp0_ = NULL; GeeSet* _tmp1_ = NULL; GeeSet* _tmp2_ = NULL; GeeSet* _tmp3_ = NULL; GeeIterator* _tmp4_ = NULL; GeeIterator* _tmp5_ = NULL; #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = altered; #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = gee_map_get_keys (_tmp0_); #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _object_it = _tmp5_; #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" while (TRUE) { #line 3114 "MediaPage.c" GeeIterator* _tmp6_ = NULL; gboolean _tmp7_ = FALSE; DataObject* object = NULL; GeeIterator* _tmp8_ = NULL; gpointer _tmp9_ = NULL; GeeMap* _tmp10_ = NULL; DataObject* _tmp11_ = NULL; gpointer _tmp12_ = NULL; Alteration* _tmp13_ = NULL; gboolean _tmp14_ = FALSE; gboolean _tmp15_ = FALSE; #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _object_it; #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = gee_iterator_next (_tmp6_); #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!_tmp7_) { #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 3134 "MediaPage.c" } #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _object_it; #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = gee_iterator_get (_tmp8_); #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" object = (DataObject*) _tmp9_; #line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = altered; #line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = object; #line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = gee_map_get (_tmp10_, _tmp11_); #line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = (Alteration*) _tmp12_; #line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = alteration_has_detail (_tmp13_, "metadata", "flagged"); #line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _tmp14_; #line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" _alteration_unref0 (_tmp13_); #line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp15_) { #line 3158 "MediaPage.c" ViewCollection* _tmp16_ = NULL; ViewCollection* _tmp17_ = NULL; gint _tmp18_ = 0; #line 383 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 383 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = _tmp16_; #line 383 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = view_collection_get_selected_count (_tmp17_); #line 383 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_update_flag_action (self, _tmp18_); #line 383 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp17_); #line 385 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (object); #line 385 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 3176 "MediaPage.c" } #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (object); #line 3180 "MediaPage.c" } #line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_object_it); #line 3184 "MediaPage.c" } } static void media_page_update_rating_sensitivities (MediaPage* self) { gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; gboolean _tmp2_ = FALSE; gboolean _tmp3_ = FALSE; gboolean _tmp4_ = FALSE; gboolean _tmp5_ = FALSE; gboolean _tmp6_ = FALSE; gboolean _tmp7_ = FALSE; gboolean _tmp8_ = FALSE; #line 390 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 391 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = media_page_can_rate_selected (self, RATING_REJECTED); #line 391 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateRejected", _tmp0_); #line 392 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = media_page_can_rate_selected (self, RATING_UNRATED); #line 392 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateUnrated", _tmp1_); #line 393 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_page_can_rate_selected (self, RATING_ONE); #line 393 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateOne", _tmp2_); #line 394 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = media_page_can_rate_selected (self, RATING_TWO); #line 394 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateTwo", _tmp3_); #line 395 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = media_page_can_rate_selected (self, RATING_THREE); #line 395 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateThree", _tmp4_); #line 396 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = media_page_can_rate_selected (self, RATING_FOUR); #line 396 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFour", _tmp5_); #line 397 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = media_page_can_rate_selected (self, RATING_FIVE); #line 397 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFive", _tmp6_); #line 398 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = media_page_can_increase_selected_rating (self); #line 398 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseRating", _tmp7_); #line 399 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = media_page_can_decrease_selected_rating (self); #line 399 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseRating", _tmp8_); #line 3237 "MediaPage.c" } static void media_page_update_development_menu_item_sensitivity (MediaPage* self) { ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; GeeList* _tmp2_ = NULL; GeeList* _tmp3_ = NULL; gint _tmp4_ = 0; gint _tmp5_ = 0; gboolean _tmp6_ = FALSE; gboolean is_raw = FALSE; gboolean _tmp27_ = FALSE; #line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected (_tmp1_); #line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; #line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); #line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; #line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_ == 0; #line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); #line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp6_) { #line 404 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper", FALSE); #line 405 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 3277 "MediaPage.c" } #line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" is_raw = FALSE; #line 3281 "MediaPage.c" { GeeList* _view_list = NULL; ViewCollection* _tmp7_ = NULL; ViewCollection* _tmp8_ = NULL; GeeList* _tmp9_ = NULL; GeeList* _tmp10_ = NULL; gint _view_size = 0; GeeList* _tmp11_ = NULL; gint _tmp12_ = 0; gint _tmp13_ = 0; gint _view_index = 0; #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _tmp7_; #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = view_collection_get_selected (_tmp8_); #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _tmp9_; #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp8_); #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_list = _tmp10_; #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _view_list; #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection)); #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = _tmp12_; #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_size = _tmp13_; #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = -1; #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" while (TRUE) { #line 3317 "MediaPage.c" gint _tmp14_ = 0; gint _tmp15_ = 0; gint _tmp16_ = 0; DataView* view = NULL; GeeList* _tmp17_ = NULL; gint _tmp18_ = 0; gpointer _tmp19_ = NULL; Photo* photo = NULL; DataView* _tmp20_ = NULL; MediaSource* _tmp21_ = NULL; Photo* _tmp22_ = NULL; gboolean _tmp23_ = FALSE; Photo* _tmp24_ = NULL; #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = _view_index; #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = _tmp14_ + 1; #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _view_index; #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = _view_size; #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!(_tmp15_ < _tmp16_)) { #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 3343 "MediaPage.c" } #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = _view_list; #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = _view_index; #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = gee_list_get (_tmp17_, _tmp18_); #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" view = (DataView*) _tmp19_; #line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = view; #line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = thumbnail_get_media_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_THUMBNAIL, Thumbnail)); #line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, TYPE_PHOTO) ? ((Photo*) _tmp21_) : NULL; #line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp22_ == NULL) { #line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp21_); #line 3363 "MediaPage.c" } #line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" photo = _tmp22_; #line 412 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = photo; #line 412 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp24_ != NULL) { #line 3371 "MediaPage.c" Photo* _tmp25_ = NULL; PhotoFileFormat _tmp26_ = 0; #line 412 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp25_ = photo; #line 412 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp26_ = photo_get_master_file_format (_tmp25_); #line 412 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = _tmp26_ == PHOTO_FILE_FORMAT_RAW; #line 3380 "MediaPage.c" } else { #line 412 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = FALSE; #line 3384 "MediaPage.c" } #line 412 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp23_) { #line 413 "/home/jens/Source/shotwell/src/MediaPage.vala" is_raw = TRUE; #line 415 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (photo); #line 415 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); #line 415 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 3396 "MediaPage.c" } #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (photo); #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); #line 3402 "MediaPage.c" } #line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_view_list); #line 3406 "MediaPage.c" } #line 420 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp27_ = is_raw; #line 420 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper", _tmp27_); #line 3412 "MediaPage.c" } static void media_page_update_flag_action (MediaPage* self, gint selected_count) { gint _tmp0_ = 0; #line 423 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 424 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = selected_count; #line 424 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Flag", _tmp0_ > 0); #line 3424 "MediaPage.c" } static gpointer _core_tracker_ref0 (gpointer self) { #line 428 "/home/jens/Source/shotwell/src/MediaPage.vala" return self ? core_tracker_ref (self) : NULL; #line 3431 "MediaPage.c" } static CoreViewTracker* media_page_real_get_view_tracker (CheckerboardPage* base) { MediaPage * self; CoreViewTracker* result = NULL; MediaViewTracker* _tmp0_ = NULL; CoreViewTracker* _tmp1_ = NULL; #line 427 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); #line 428 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->tracker; #line 428 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _core_tracker_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, CORE_TYPE_VIEW_TRACKER, CoreViewTracker)); #line 428 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp1_; #line 428 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 3450 "MediaPage.c" } void media_page_set_display_ratings (MediaPage* self, gboolean display) { ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; ViewCollection* _tmp2_ = NULL; ViewCollection* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; GValue _tmp5_ = {0}; ViewCollection* _tmp6_ = NULL; ViewCollection* _tmp7_ = NULL; gboolean _tmp8_ = FALSE; #line 431 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); #line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; #line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = display; #line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_init (&_tmp5_, G_TYPE_BOOLEAN); #line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_set_boolean (&_tmp5_, _tmp4_); #line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SHOW_RATINGS, &_tmp5_, NULL, NULL); #line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" G_IS_VALUE (&_tmp5_) ? (g_value_unset (&_tmp5_), NULL) : NULL; #line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp3_); #line 434 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 434 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; #line 434 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection)); #line 434 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp7_); #line 436 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = display; #line 436 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewRatings", _tmp8_); #line 3502 "MediaPage.c" } static gboolean media_page_can_rate_selected (MediaPage* self, Rating rating) { gboolean result = FALSE; #line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), FALSE); #line 3510 "MediaPage.c" { GeeList* _view_list = NULL; ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; GeeList* _tmp2_ = NULL; GeeList* _tmp3_ = NULL; gint _view_size = 0; GeeList* _tmp4_ = NULL; gint _tmp5_ = 0; gint _tmp6_ = 0; gint _view_index = 0; #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected (_tmp1_); #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_list = _tmp3_; #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _view_list; #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_; #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_size = _tmp6_; #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = -1; #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" while (TRUE) { #line 3546 "MediaPage.c" gint _tmp7_ = 0; gint _tmp8_ = 0; gint _tmp9_ = 0; DataView* view = NULL; GeeList* _tmp10_ = NULL; gint _tmp11_ = 0; gpointer _tmp12_ = NULL; DataView* _tmp13_ = NULL; MediaSource* _tmp14_ = NULL; MediaSource* _tmp15_ = NULL; Rating _tmp16_ = 0; Rating _tmp17_ = 0; gboolean _tmp18_ = FALSE; #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _view_index; #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = _tmp7_ + 1; #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _view_index; #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _view_size; #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!(_tmp8_ < _tmp9_)) { #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 3572 "MediaPage.c" } #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _view_list; #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _view_index; #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = gee_list_get (_tmp10_, _tmp11_); #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" view = (DataView*) _tmp12_; #line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = view; #line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = thumbnail_get_media_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_THUMBNAIL, Thumbnail)); #line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _tmp14_; #line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = media_source_get_rating (_tmp15_); #line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = rating; #line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = _tmp16_ != _tmp17_; #line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp15_); #line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp18_) { #line 442 "/home/jens/Source/shotwell/src/MediaPage.vala" result = TRUE; #line 442 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); #line 442 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_view_list); #line 442 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 3606 "MediaPage.c" } #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); #line 3610 "MediaPage.c" } #line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_view_list); #line 3614 "MediaPage.c" } #line 445 "/home/jens/Source/shotwell/src/MediaPage.vala" result = FALSE; #line 445 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 3620 "MediaPage.c" } static gboolean media_page_can_increase_selected_rating (MediaPage* self) { gboolean result = FALSE; #line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), FALSE); #line 3628 "MediaPage.c" { GeeList* _view_list = NULL; ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; GeeList* _tmp2_ = NULL; GeeList* _tmp3_ = NULL; gint _view_size = 0; GeeList* _tmp4_ = NULL; gint _tmp5_ = 0; gint _tmp6_ = 0; gint _view_index = 0; #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected (_tmp1_); #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_list = _tmp3_; #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _view_list; #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_; #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_size = _tmp6_; #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = -1; #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" while (TRUE) { #line 3664 "MediaPage.c" gint _tmp7_ = 0; gint _tmp8_ = 0; gint _tmp9_ = 0; DataView* view = NULL; GeeList* _tmp10_ = NULL; gint _tmp11_ = 0; gpointer _tmp12_ = NULL; DataView* _tmp13_ = NULL; MediaSource* _tmp14_ = NULL; MediaSource* _tmp15_ = NULL; Rating _tmp16_ = 0; gboolean _tmp17_ = FALSE; gboolean _tmp18_ = FALSE; #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _view_index; #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = _tmp7_ + 1; #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _view_index; #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _view_size; #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!(_tmp8_ < _tmp9_)) { #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 3690 "MediaPage.c" } #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _view_list; #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _view_index; #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = gee_list_get (_tmp10_, _tmp11_); #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" view = (DataView*) _tmp12_; #line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = view; #line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = thumbnail_get_media_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_THUMBNAIL, Thumbnail)); #line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _tmp14_; #line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = media_source_get_rating (_tmp15_); #line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = rating_can_increase (_tmp16_); #line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = _tmp17_; #line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp15_); #line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp18_) { #line 451 "/home/jens/Source/shotwell/src/MediaPage.vala" result = TRUE; #line 451 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); #line 451 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_view_list); #line 451 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 3724 "MediaPage.c" } #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); #line 3728 "MediaPage.c" } #line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_view_list); #line 3732 "MediaPage.c" } #line 454 "/home/jens/Source/shotwell/src/MediaPage.vala" result = FALSE; #line 454 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 3738 "MediaPage.c" } static gboolean media_page_can_decrease_selected_rating (MediaPage* self) { gboolean result = FALSE; #line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), FALSE); #line 3746 "MediaPage.c" { GeeList* _view_list = NULL; ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; GeeList* _tmp2_ = NULL; GeeList* _tmp3_ = NULL; gint _view_size = 0; GeeList* _tmp4_ = NULL; gint _tmp5_ = 0; gint _tmp6_ = 0; gint _view_index = 0; #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected (_tmp1_); #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_list = _tmp3_; #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _view_list; #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_; #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_size = _tmp6_; #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = -1; #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" while (TRUE) { #line 3782 "MediaPage.c" gint _tmp7_ = 0; gint _tmp8_ = 0; gint _tmp9_ = 0; DataView* view = NULL; GeeList* _tmp10_ = NULL; gint _tmp11_ = 0; gpointer _tmp12_ = NULL; DataView* _tmp13_ = NULL; MediaSource* _tmp14_ = NULL; MediaSource* _tmp15_ = NULL; Rating _tmp16_ = 0; gboolean _tmp17_ = FALSE; gboolean _tmp18_ = FALSE; #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _view_index; #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = _tmp7_ + 1; #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _view_index; #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _view_size; #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!(_tmp8_ < _tmp9_)) { #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 3808 "MediaPage.c" } #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _view_list; #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _view_index; #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = gee_list_get (_tmp10_, _tmp11_); #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" view = (DataView*) _tmp12_; #line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = view; #line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = thumbnail_get_media_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_THUMBNAIL, Thumbnail)); #line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _tmp14_; #line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = media_source_get_rating (_tmp15_); #line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = rating_can_decrease (_tmp16_); #line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = _tmp17_; #line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp15_); #line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp18_) { #line 460 "/home/jens/Source/shotwell/src/MediaPage.vala" result = TRUE; #line 460 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); #line 460 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_view_list); #line 460 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 3842 "MediaPage.c" } #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); #line 3846 "MediaPage.c" } #line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_view_list); #line 3850 "MediaPage.c" } #line 463 "/home/jens/Source/shotwell/src/MediaPage.vala" result = FALSE; #line 463 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 3856 "MediaPage.c" } MediaPageZoomSliderAssembly* media_page_create_zoom_slider_assembly (MediaPage* self) { MediaPageZoomSliderAssembly* result = NULL; MediaPageZoomSliderAssembly* _tmp0_ = NULL; #line 466 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), NULL); #line 467 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = media_page_zoom_slider_assembly_new (); #line 467 "/home/jens/Source/shotwell/src/MediaPage.vala" g_object_ref_sink (_tmp0_); #line 467 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp0_; #line 467 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 3873 "MediaPage.c" } static gboolean media_page_real_on_mousewheel_up (Page* base, GdkEventScroll* event) { MediaPage * self; gboolean result = FALSE; GdkEventScroll* _tmp0_ = NULL; GdkModifierType _tmp1_ = 0; #line 470 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); #line 470 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (event != NULL, FALSE); #line 471 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = event; #line 471 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_->state; #line 471 "/home/jens/Source/shotwell/src/MediaPage.vala" if ((_tmp1_ & GDK_CONTROL_MASK) != 0) { #line 472 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_increase_zoom_level (self); #line 473 "/home/jens/Source/shotwell/src/MediaPage.vala" result = TRUE; #line 473 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 3898 "MediaPage.c" } else { GdkEventScroll* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; #line 475 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = event; #line 475 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = PAGE_CLASS (media_page_parent_class)->on_mousewheel_up (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp2_); #line 475 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp3_; #line 475 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 3910 "MediaPage.c" } } static gboolean media_page_real_on_mousewheel_down (Page* base, GdkEventScroll* event) { MediaPage * self; gboolean result = FALSE; GdkEventScroll* _tmp0_ = NULL; GdkModifierType _tmp1_ = 0; #line 479 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); #line 479 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (event != NULL, FALSE); #line 480 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = event; #line 480 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_->state; #line 480 "/home/jens/Source/shotwell/src/MediaPage.vala" if ((_tmp1_ & GDK_CONTROL_MASK) != 0) { #line 481 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_decrease_zoom_level (self); #line 482 "/home/jens/Source/shotwell/src/MediaPage.vala" result = TRUE; #line 482 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 3936 "MediaPage.c" } else { GdkEventScroll* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; #line 484 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = event; #line 484 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = PAGE_CLASS (media_page_parent_class)->on_mousewheel_down (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp2_); #line 484 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp3_; #line 484 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 3948 "MediaPage.c" } } static void media_page_on_send_to (MediaPage* self) { ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; GeeList* _tmp2_ = NULL; GeeCollection* _tmp3_ = NULL; #line 488 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 489 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 489 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 489 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_sources (_tmp1_); #line 489 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); #line 489 "/home/jens/Source/shotwell/src/MediaPage.vala" desktop_integration_send_to (_tmp3_); #line 489 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); #line 489 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 3974 "MediaPage.c" } void media_page_on_play_video (MediaPage* self) { ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; Video* video = NULL; ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; DataView* _tmp6_ = NULL; DataView* _tmp7_ = NULL; DataSource* _tmp8_ = NULL; Video* _tmp9_ = NULL; Video* _tmp10_ = NULL; Video* _tmp11_ = NULL; GError * _inner_error_ = NULL; #line 492 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); #line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ != 1; #line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { #line 494 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 4009 "MediaPage.c" } #line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; #line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = view_collection_get_selected_at (_tmp5_, 0); #line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; #line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = data_view_get_source (_tmp7_); #line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, TYPE_VIDEO) ? ((Video*) _tmp8_) : NULL; #line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp9_ == NULL) { #line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp8_); #line 4027 "MediaPage.c" } #line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _tmp9_; #line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp7_); #line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp5_); #line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" video = _tmp10_; #line 497 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = video; #line 497 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp11_ == NULL) { #line 498 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (video); #line 498 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 4045 "MediaPage.c" } { Video* _tmp12_ = NULL; GFile* _tmp13_ = NULL; GFile* _tmp14_ = NULL; gchar* _tmp15_ = NULL; gchar* _tmp16_ = NULL; #line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = video; #line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_MEDIA_SOURCE, MediaSource)); #line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = _tmp13_; #line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = g_file_get_uri (_tmp14_); #line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = _tmp15_; #line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" g_app_info_launch_default_for_uri (_tmp16_, NULL, &_inner_error_); #line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (_tmp16_); #line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp14_); #line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4071 "MediaPage.c" goto __catch558_g_error; } } goto __finally558; __catch558_g_error: { GError* e = NULL; const gchar* _tmp17_ = NULL; GError* _tmp18_ = NULL; const gchar* _tmp19_ = NULL; gchar* _tmp20_ = NULL; gchar* _tmp21_ = NULL; #line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" e = _inner_error_; #line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" _inner_error_ = NULL; #line 503 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = _ ("Shotwell was unable to play the selected video:\n%s"); #line 503 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = e; #line 503 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = _tmp18_->message; #line 503 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = g_strdup_printf (_tmp17_, _tmp19_); #line 503 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = _tmp20_; #line 503 "/home/jens/Source/shotwell/src/MediaPage.vala" app_window_error_message (_tmp21_, NULL); #line 503 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (_tmp21_); #line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_error_free0 (e); #line 4104 "MediaPage.c" } __finally558: #line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (video); #line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" g_clear_error (&_inner_error_); #line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 4117 "MediaPage.c" } #line 492 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (video); #line 4121 "MediaPage.c" } static gboolean media_page_real_on_app_key_pressed (Page* base, GdkEventKey* event) { MediaPage * self; gboolean result = FALSE; gboolean handled = FALSE; GdkEventKey* _tmp0_ = NULL; guint _tmp1_ = 0U; const gchar* _tmp2_ = NULL; const gchar* _tmp3_ = NULL; GQuark _tmp5_ = 0U; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label0 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label1 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label2 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label3 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label4 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label5 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label6 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label7 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label8 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label9 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label10 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label11 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label12 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label13 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label14 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label15 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label16 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label17 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label18 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label19 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label20 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label21 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label22 = 0; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label23 = 0; #line 4182 "MediaPage.c" gboolean _tmp30_ = FALSE; gboolean _tmp31_ = FALSE; #line 508 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); #line 508 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (event != NULL, FALSE); #line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" handled = TRUE; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = event; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_->keyval; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = gdk_keyval_name (_tmp1_); #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = (NULL == _tmp3_) ? 0 : g_quark_from_string (_tmp3_); #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" if (((_tmp5_ == ((0 != _tmp4_label0) ? _tmp4_label0 : (_tmp4_label0 = g_quark_from_static_string ("equal")))) || (_tmp5_ == ((0 != _tmp4_label1) ? _tmp4_label1 : (_tmp4_label1 = g_quark_from_static_string ("plus"))))) || (_tmp5_ == ((0 != _tmp4_label2) ? _tmp4_label2 : (_tmp4_label2 = g_quark_from_static_string ("KP_Add"))))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4205 "MediaPage.c" default: { #line 514 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize"); #line 515 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4212 "MediaPage.c" } } } else if (((_tmp5_ == ((0 != _tmp4_label3) ? _tmp4_label3 : (_tmp4_label3 = g_quark_from_static_string ("minus")))) || (_tmp5_ == ((0 != _tmp4_label4) ? _tmp4_label4 : (_tmp4_label4 = g_quark_from_static_string ("underscore"))))) || (_tmp5_ == ((0 != _tmp4_label5) ? _tmp4_label5 : (_tmp4_label5 = g_quark_from_static_string ("KP_Subtract"))))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4218 "MediaPage.c" default: { #line 520 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize"); #line 521 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4225 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label6) ? _tmp4_label6 : (_tmp4_label6 = g_quark_from_static_string ("period")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4231 "MediaPage.c" default: { #line 524 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseRating"); #line 525 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4238 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label7) ? _tmp4_label7 : (_tmp4_label7 = g_quark_from_static_string ("comma")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4244 "MediaPage.c" default: { #line 528 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseRating"); #line 529 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4251 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label8) ? _tmp4_label8 : (_tmp4_label8 = g_quark_from_static_string ("KP_1")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4257 "MediaPage.c" default: { #line 532 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateOne"); #line 533 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4264 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label9) ? _tmp4_label9 : (_tmp4_label9 = g_quark_from_static_string ("KP_2")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4270 "MediaPage.c" default: { #line 536 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateTwo"); #line 537 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4277 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label10) ? _tmp4_label10 : (_tmp4_label10 = g_quark_from_static_string ("KP_3")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4283 "MediaPage.c" default: { #line 540 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateThree"); #line 541 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4290 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label11) ? _tmp4_label11 : (_tmp4_label11 = g_quark_from_static_string ("KP_4")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4296 "MediaPage.c" default: { #line 544 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFour"); #line 545 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4303 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label12) ? _tmp4_label12 : (_tmp4_label12 = g_quark_from_static_string ("KP_5")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4309 "MediaPage.c" default: { #line 548 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFive"); #line 549 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4316 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label13) ? _tmp4_label13 : (_tmp4_label13 = g_quark_from_static_string ("KP_0")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4322 "MediaPage.c" default: { #line 552 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateUnrated"); #line 553 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4329 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label14) ? _tmp4_label14 : (_tmp4_label14 = g_quark_from_static_string ("KP_9")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4335 "MediaPage.c" default: { #line 556 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateRejected"); #line 557 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4342 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label15) ? _tmp4_label15 : (_tmp4_label15 = g_quark_from_static_string ("exclam")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4348 "MediaPage.c" default: { gboolean _tmp6_ = FALSE; #line 560 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 560 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp6_) { #line 4356 "MediaPage.c" SearchViewFilter* _tmp7_ = NULL; SearchViewFilter* _tmp8_ = NULL; #line 561 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = checkerboard_page_get_search_view_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); #line 561 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _tmp7_; #line 561 "/home/jens/Source/shotwell/src/MediaPage.vala" search_view_filter_set_rating_filter (_tmp8_, RATING_FILTER_ONE_OR_HIGHER); #line 561 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_filter_unref0 (_tmp8_); #line 4367 "MediaPage.c" } #line 562 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4371 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label16) ? _tmp4_label16 : (_tmp4_label16 = g_quark_from_static_string ("at")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4377 "MediaPage.c" default: { gboolean _tmp9_ = FALSE; #line 565 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 565 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp9_) { #line 4385 "MediaPage.c" SearchViewFilter* _tmp10_ = NULL; SearchViewFilter* _tmp11_ = NULL; #line 566 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = checkerboard_page_get_search_view_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); #line 566 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _tmp10_; #line 566 "/home/jens/Source/shotwell/src/MediaPage.vala" search_view_filter_set_rating_filter (_tmp11_, RATING_FILTER_TWO_OR_HIGHER); #line 566 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_filter_unref0 (_tmp11_); #line 4396 "MediaPage.c" } #line 567 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4400 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label17) ? _tmp4_label17 : (_tmp4_label17 = g_quark_from_static_string ("numbersign")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4406 "MediaPage.c" default: { gboolean _tmp12_ = FALSE; #line 570 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 570 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp12_) { #line 4414 "MediaPage.c" SearchViewFilter* _tmp13_ = NULL; SearchViewFilter* _tmp14_ = NULL; #line 571 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = checkerboard_page_get_search_view_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); #line 571 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = _tmp13_; #line 571 "/home/jens/Source/shotwell/src/MediaPage.vala" search_view_filter_set_rating_filter (_tmp14_, RATING_FILTER_THREE_OR_HIGHER); #line 571 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_filter_unref0 (_tmp14_); #line 4425 "MediaPage.c" } #line 572 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4429 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label18) ? _tmp4_label18 : (_tmp4_label18 = g_quark_from_static_string ("dollar")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4435 "MediaPage.c" default: { gboolean _tmp15_ = FALSE; #line 575 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 575 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp15_) { #line 4443 "MediaPage.c" SearchViewFilter* _tmp16_ = NULL; SearchViewFilter* _tmp17_ = NULL; #line 576 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = checkerboard_page_get_search_view_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); #line 576 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = _tmp16_; #line 576 "/home/jens/Source/shotwell/src/MediaPage.vala" search_view_filter_set_rating_filter (_tmp17_, RATING_FILTER_FOUR_OR_HIGHER); #line 576 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_filter_unref0 (_tmp17_); #line 4454 "MediaPage.c" } #line 577 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4458 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label19) ? _tmp4_label19 : (_tmp4_label19 = g_quark_from_static_string ("percent")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4464 "MediaPage.c" default: { gboolean _tmp18_ = FALSE; #line 580 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 580 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp18_) { #line 4472 "MediaPage.c" SearchViewFilter* _tmp19_ = NULL; SearchViewFilter* _tmp20_ = NULL; #line 581 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = checkerboard_page_get_search_view_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); #line 581 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = _tmp19_; #line 581 "/home/jens/Source/shotwell/src/MediaPage.vala" search_view_filter_set_rating_filter (_tmp20_, RATING_FILTER_FIVE_OR_HIGHER); #line 581 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_filter_unref0 (_tmp20_); #line 4483 "MediaPage.c" } #line 582 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4487 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label20) ? _tmp4_label20 : (_tmp4_label20 = g_quark_from_static_string ("parenright")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4493 "MediaPage.c" default: { gboolean _tmp21_ = FALSE; #line 585 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 585 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp21_) { #line 4501 "MediaPage.c" SearchViewFilter* _tmp22_ = NULL; SearchViewFilter* _tmp23_ = NULL; #line 586 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = checkerboard_page_get_search_view_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); #line 586 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = _tmp22_; #line 586 "/home/jens/Source/shotwell/src/MediaPage.vala" search_view_filter_set_rating_filter (_tmp23_, RATING_FILTER_UNRATED_OR_HIGHER); #line 586 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_filter_unref0 (_tmp23_); #line 4512 "MediaPage.c" } #line 587 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4516 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label21) ? _tmp4_label21 : (_tmp4_label21 = g_quark_from_static_string ("parenleft")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4522 "MediaPage.c" default: { gboolean _tmp24_ = FALSE; #line 590 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 590 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp24_) { #line 4530 "MediaPage.c" SearchViewFilter* _tmp25_ = NULL; SearchViewFilter* _tmp26_ = NULL; #line 591 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp25_ = checkerboard_page_get_search_view_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); #line 591 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp26_ = _tmp25_; #line 591 "/home/jens/Source/shotwell/src/MediaPage.vala" search_view_filter_set_rating_filter (_tmp26_, RATING_FILTER_REJECTED_OR_HIGHER); #line 591 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_filter_unref0 (_tmp26_); #line 4541 "MediaPage.c" } #line 592 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4545 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label22) ? _tmp4_label22 : (_tmp4_label22 = g_quark_from_static_string ("asterisk")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4551 "MediaPage.c" default: { gboolean _tmp27_ = FALSE; #line 595 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp27_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 595 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp27_) { #line 4559 "MediaPage.c" SearchViewFilter* _tmp28_ = NULL; SearchViewFilter* _tmp29_ = NULL; #line 596 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp28_ = checkerboard_page_get_search_view_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); #line 596 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp29_ = _tmp28_; #line 596 "/home/jens/Source/shotwell/src/MediaPage.vala" search_view_filter_set_rating_filter (_tmp29_, RATING_FILTER_REJECTED_ONLY); #line 596 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_filter_unref0 (_tmp29_); #line 4570 "MediaPage.c" } #line 597 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4574 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label23) ? _tmp4_label23 : (_tmp4_label23 = g_quark_from_static_string ("slash")))) { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4580 "MediaPage.c" default: { #line 600 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Flag"); #line 601 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4587 "MediaPage.c" } } } else { #line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 4593 "MediaPage.c" default: { #line 604 "/home/jens/Source/shotwell/src/MediaPage.vala" handled = FALSE; #line 605 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 4600 "MediaPage.c" } } } #line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp31_ = handled; #line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp31_) { #line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp30_ = TRUE; #line 4610 "MediaPage.c" } else { GdkEventKey* _tmp32_ = NULL; gboolean _tmp33_ = FALSE; #line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp32_ = event; #line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp33_ = PAGE_CLASS (media_page_parent_class)->on_app_key_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp32_); #line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp30_ = _tmp33_; #line 4620 "MediaPage.c" } #line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp30_; #line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 4626 "MediaPage.c" } static void media_page_real_switched_to (Page* base) { MediaPage * self; ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; ConfigFacade* _tmp2_ = NULL; ConfigFacade* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; ConfigFacade* _tmp5_ = NULL; ConfigFacade* _tmp6_ = NULL; gboolean _tmp7_ = FALSE; ConfigFacade* _tmp8_ = NULL; ConfigFacade* _tmp9_ = NULL; gboolean _tmp10_ = FALSE; ConfigFacade* _tmp11_ = NULL; ConfigFacade* _tmp12_ = NULL; gboolean _tmp13_ = FALSE; ViewCollection* _tmp14_ = NULL; ViewCollection* _tmp15_ = NULL; ViewCollection* _tmp16_ = NULL; ViewCollection* _tmp17_ = NULL; gint _tmp18_ = 0; gboolean _tmp19_ = FALSE; #line 611 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); #line 612 "/home/jens/Source/shotwell/src/MediaPage.vala" PAGE_CLASS (media_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page)); #line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); #line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 616 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = config_facade_get_instance (); #line 616 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; #line 616 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = configuration_facade_get_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); #line 616 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_page_set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp4_); #line 616 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); #line 617 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = config_facade_get_instance (); #line 617 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_; #line 617 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = configuration_facade_get_display_photo_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); #line 617 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_page_set_display_comments (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp7_); #line 617 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp6_); #line 618 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = config_facade_get_instance (); #line 618 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _tmp8_; #line 618 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); #line 618 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_display_ratings (self, _tmp10_); #line 618 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp9_); #line 619 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = config_facade_get_instance (); #line 619 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _tmp11_; #line 619 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = configuration_facade_get_display_photo_tags (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); #line 619 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_display_tags (self, _tmp13_); #line 619 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp12_); #line 620 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 620 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _tmp14_; #line 620 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_COLLECTION, DataCollection)); #line 620 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp15_); #line 624 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 624 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = _tmp16_; #line 624 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = view_collection_get_selected_count (_tmp17_); #line 624 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = _tmp18_ > 0; #line 624 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp17_); #line 624 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp19_) { #line 4724 "MediaPage.c" CheckerboardItem* selected = NULL; ViewCollection* _tmp20_ = NULL; ViewCollection* _tmp21_ = NULL; DataView* _tmp22_ = NULL; CheckerboardItem* _tmp23_ = NULL; CheckerboardItem* _tmp24_ = NULL; #line 625 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 625 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = _tmp20_; #line 625 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = view_collection_get_selected_at (_tmp21_, 0); #line 625 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); #line 625 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp21_); #line 625 "/home/jens/Source/shotwell/src/MediaPage.vala" selected = _tmp23_; #line 626 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = selected; #line 626 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp24_ != NULL) { #line 4747 "MediaPage.c" CheckerboardItem* _tmp25_ = NULL; #line 627 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp25_ = selected; #line 627 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_page_cursor_to_item (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp25_); #line 4753 "MediaPage.c" } #line 624 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (selected); #line 4757 "MediaPage.c" } #line 630 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_sync_sort (self); #line 4761 "MediaPage.c" } static void media_page_real_switching_from (Page* base) { MediaPage * self; #line 633 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); #line 634 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_disconnect_slider (self); #line 636 "/home/jens/Source/shotwell/src/MediaPage.vala" PAGE_CLASS (media_page_parent_class)->switching_from (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page)); #line 4773 "MediaPage.c" } static gpointer _g_object_ref0 (gpointer self) { #line 640 "/home/jens/Source/shotwell/src/MediaPage.vala" return self ? g_object_ref (self) : NULL; #line 4780 "MediaPage.c" } static void _media_page_on_zoom_changed_media_page_zoom_slider_assembly_zoom_changed (MediaPageZoomSliderAssembly* _sender, gpointer self) { #line 641 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_zoom_changed ((MediaPage*) self); #line 4787 "MediaPage.c" } void media_page_connect_slider (MediaPage* self, MediaPageZoomSliderAssembly* slider) { MediaPageZoomSliderAssembly* _tmp0_ = NULL; MediaPageZoomSliderAssembly* _tmp1_ = NULL; MediaPageZoomSliderAssembly* _tmp2_ = NULL; #line 639 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 639 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (slider)); #line 640 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = slider; #line 640 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _g_object_ref0 (_tmp0_); #line 640 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (self->priv->connected_slider); #line 640 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->connected_slider = _tmp1_; #line 641 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = self->priv->connected_slider; #line 641 "/home/jens/Source/shotwell/src/MediaPage.vala" g_signal_connect_object (_tmp2_, "zoom-changed", (GCallback) _media_page_on_zoom_changed_media_page_zoom_slider_assembly_zoom_changed, self, 0); #line 642 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_load_persistent_thumbnail_scale (self); #line 4813 "MediaPage.c" } static void media_page_save_persistent_thumbnail_scale (MediaPage* self) { MediaPageZoomSliderAssembly* _tmp0_ = NULL; ConfigFacade* _tmp1_ = NULL; ConfigFacade* _tmp2_ = NULL; MediaPageZoomSliderAssembly* _tmp3_ = NULL; gint _tmp4_ = 0; #line 645 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 646 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->connected_slider; #line 646 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_ == NULL) { #line 647 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 4831 "MediaPage.c" } #line 649 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = config_facade_get_instance (); #line 649 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; #line 649 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = self->priv->connected_slider; #line 649 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = media_page_zoom_slider_assembly_get_scale (_tmp3_); #line 649 "/home/jens/Source/shotwell/src/MediaPage.vala" configuration_facade_set_photo_thumbnail_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp4_); #line 649 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp2_); #line 4845 "MediaPage.c" } static void media_page_load_persistent_thumbnail_scale (MediaPage* self) { MediaPageZoomSliderAssembly* _tmp0_ = NULL; gint persistent_scale = 0; ConfigFacade* _tmp1_ = NULL; ConfigFacade* _tmp2_ = NULL; gint _tmp3_ = 0; gint _tmp4_ = 0; MediaPageZoomSliderAssembly* _tmp5_ = NULL; gint _tmp6_ = 0; gint _tmp7_ = 0; #line 652 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 653 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->connected_slider; #line 653 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_ == NULL) { #line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 4867 "MediaPage.c" } #line 656 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = config_facade_get_instance (); #line 656 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; #line 656 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = configuration_facade_get_photo_thumbnail_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); #line 656 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _tmp3_; #line 656 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp2_); #line 656 "/home/jens/Source/shotwell/src/MediaPage.vala" persistent_scale = _tmp4_; #line 658 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = self->priv->connected_slider; #line 658 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = persistent_scale; #line 658 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_zoom_slider_assembly_set_scale (_tmp5_, _tmp6_); #line 659 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = persistent_scale; #line 659 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_thumb_size (self, _tmp7_); #line 4891 "MediaPage.c" } void media_page_disconnect_slider (MediaPage* self) { MediaPageZoomSliderAssembly* _tmp0_ = NULL; MediaPageZoomSliderAssembly* _tmp1_ = NULL; guint _tmp2_ = 0U; #line 662 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 663 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->connected_slider; #line 663 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_ == NULL) { #line 664 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 4907 "MediaPage.c" } #line 666 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = self->priv->connected_slider; #line 666 "/home/jens/Source/shotwell/src/MediaPage.vala" g_signal_parse_name ("zoom-changed", MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, &_tmp2_, NULL, FALSE); #line 666 "/home/jens/Source/shotwell/src/MediaPage.vala" g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _media_page_on_zoom_changed_media_page_zoom_slider_assembly_zoom_changed, self); #line 667 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (self->priv->connected_slider); #line 667 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->connected_slider = NULL; #line 4919 "MediaPage.c" } static void media_page_real_on_zoom_changed (MediaPage* self) { MediaPageZoomSliderAssembly* _tmp0_ = NULL; #line 671 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->connected_slider; #line 671 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_ != NULL) { #line 4929 "MediaPage.c" MediaPageZoomSliderAssembly* _tmp1_ = NULL; gint _tmp2_ = 0; #line 672 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = self->priv->connected_slider; #line 672 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_page_zoom_slider_assembly_get_scale (_tmp1_); #line 672 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_thumb_size (self, _tmp2_); #line 4938 "MediaPage.c" } #line 674 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_save_persistent_thumbnail_scale (self); #line 4942 "MediaPage.c" } void media_page_on_zoom_changed (MediaPage* self) { #line 670 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 670 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_zoom_changed (self); #line 4951 "MediaPage.c" } static void media_page_real_on_export (MediaPage* self) { #line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" g_critical ("Type `%s' does not implement abstract method `media_page_on_export'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 4960 "MediaPage.c" } void media_page_on_export (MediaPage* self) { #line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_export (self); #line 4969 "MediaPage.c" } static void media_page_real_on_increase_size (MediaPage* self) { #line 680 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_increase_zoom_level (self); #line 4976 "MediaPage.c" } void media_page_on_increase_size (MediaPage* self) { #line 679 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 679 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_increase_size (self); #line 4985 "MediaPage.c" } static void media_page_real_on_decrease_size (MediaPage* self) { #line 684 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_decrease_zoom_level (self); #line 4992 "MediaPage.c" } void media_page_on_decrease_size (MediaPage* self) { #line 683 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 683 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_decrease_size (self); #line 5001 "MediaPage.c" } static void media_page_on_add_tags (MediaPage* self) { ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; AddTagsDialog* dialog = NULL; AddTagsDialog* _tmp4_ = NULL; gchar** names = NULL; AddTagsDialog* _tmp5_ = NULL; gint _tmp6_ = 0; gchar** _tmp7_ = NULL; gint names_length1 = 0; gint _names_size_ = 0; gchar** _tmp8_ = NULL; gint _tmp8__length1 = 0; #line 687 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 688 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 688 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 688 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); #line 688 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ == 0; #line 688 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 688 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { #line 689 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 5036 "MediaPage.c" } #line 691 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = add_tags_dialog_new (); #line 691 "/home/jens/Source/shotwell/src/MediaPage.vala" dialog = _tmp4_; #line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = dialog; #line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = add_tags_dialog_execute (_tmp5_, &_tmp6_); #line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" names = _tmp7_; #line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" names_length1 = _tmp6_; #line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" _names_size_ = names_length1; #line 694 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = names; #line 694 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8__length1 = names_length1; #line 694 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp8_ != NULL) { #line 5058 "MediaPage.c" CommandManager* _tmp9_ = NULL; CommandManager* _tmp10_ = NULL; HierarchicalTagIndex* _tmp11_ = NULL; HierarchicalTagIndex* _tmp12_ = NULL; gchar** _tmp13_ = NULL; gint _tmp13__length1 = 0; gint _tmp14_ = 0; gchar** _tmp15_ = NULL; gchar** _tmp16_ = NULL; gint _tmp16__length1 = 0; ViewCollection* _tmp17_ = NULL; ViewCollection* _tmp18_ = NULL; GeeList* _tmp19_ = NULL; GeeCollection* _tmp20_ = NULL; AddTagsCommand* _tmp21_ = NULL; AddTagsCommand* _tmp22_ = NULL; #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _tmp9_; #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = hierarchical_tag_index_get_global_index (); #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _tmp11_; #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = names; #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13__length1 = names_length1; #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = hierarchical_tag_index_get_paths_for_names_array (_tmp12_, _tmp13_, _tmp13__length1, &_tmp14_); #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = _tmp15_; #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16__length1 = _tmp14_; #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = _tmp17_; #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = view_collection_get_selected_sources (_tmp18_); #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection); #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = add_tags_command_new (_tmp16_, _tmp14_, _tmp20_); #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = _tmp21_; #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_COMMAND, Command)); #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp22_); #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp20_); #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp18_); #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = (_vala_array_free (_tmp16_, _tmp16__length1, (GDestroyNotify) g_free), NULL); #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _hierarchical_tag_index_unref0 (_tmp12_); #line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp10_); #line 5119 "MediaPage.c" } #line 687 "/home/jens/Source/shotwell/src/MediaPage.vala" names = (_vala_array_free (names, names_length1, (GDestroyNotify) g_free), NULL); #line 687 "/home/jens/Source/shotwell/src/MediaPage.vala" _text_entry_dialog_mediator_unref0 (dialog); #line 5125 "MediaPage.c" } static void media_page_on_modify_tags (MediaPage* self) { ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; MediaSource* media = NULL; ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; DataView* _tmp6_ = NULL; DataView* _tmp7_ = NULL; DataSource* _tmp8_ = NULL; MediaSource* _tmp9_ = NULL; ModifyTagsDialog* dialog = NULL; MediaSource* _tmp10_ = NULL; ModifyTagsDialog* _tmp11_ = NULL; GeeArrayList* new_tags = NULL; ModifyTagsDialog* _tmp12_ = NULL; GeeArrayList* _tmp13_ = NULL; GeeArrayList* _tmp14_ = NULL; CommandManager* _tmp15_ = NULL; CommandManager* _tmp16_ = NULL; MediaSource* _tmp17_ = NULL; GeeArrayList* _tmp18_ = NULL; ModifyTagsCommand* _tmp19_ = NULL; ModifyTagsCommand* _tmp20_ = NULL; #line 701 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 702 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 702 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 702 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); #line 702 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ != 1; #line 702 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 702 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { #line 703 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 5170 "MediaPage.c" } #line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; #line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = view_collection_get_selected_at (_tmp5_, 0); #line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; #line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = data_view_get_source (_tmp7_); #line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource); #line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp7_); #line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp5_); #line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" media = _tmp9_; #line 707 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = media; #line 707 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = modify_tags_dialog_new (_tmp10_); #line 707 "/home/jens/Source/shotwell/src/MediaPage.vala" dialog = _tmp11_; #line 708 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = dialog; #line 708 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = modify_tags_dialog_execute (_tmp12_); #line 708 "/home/jens/Source/shotwell/src/MediaPage.vala" new_tags = _tmp13_; #line 710 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = new_tags; #line 710 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp14_ == NULL) { #line 711 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (new_tags); #line 711 "/home/jens/Source/shotwell/src/MediaPage.vala" _text_entry_dialog_mediator_unref0 (dialog); #line 711 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (media); #line 711 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 5214 "MediaPage.c" } #line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = _tmp15_; #line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = media; #line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = new_tags; #line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = modify_tags_command_new (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection)); #line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = _tmp19_; #line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp16_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_COMMAND, Command)); #line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp20_); #line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp16_); #line 701 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (new_tags); #line 701 "/home/jens/Source/shotwell/src/MediaPage.vala" _text_entry_dialog_mediator_unref0 (dialog); #line 701 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (media); #line 5240 "MediaPage.c" } static void media_page_set_display_tags (MediaPage* self, gboolean display) { ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; ViewCollection* _tmp2_ = NULL; ViewCollection* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; GValue _tmp5_ = {0}; ViewCollection* _tmp6_ = NULL; ViewCollection* _tmp7_ = NULL; gboolean _tmp8_ = FALSE; #line 716 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 717 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 717 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 717 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); #line 717 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 718 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 718 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; #line 718 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = display; #line 718 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_init (&_tmp5_, G_TYPE_BOOLEAN); #line 718 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_set_boolean (&_tmp5_, _tmp4_); #line 718 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SHOW_TAGS, &_tmp5_, NULL, NULL); #line 718 "/home/jens/Source/shotwell/src/MediaPage.vala" G_IS_VALUE (&_tmp5_) ? (g_value_unset (&_tmp5_), NULL) : NULL; #line 718 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp3_); #line 719 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 719 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; #line 719 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection)); #line 719 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp7_); #line 721 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = display; #line 721 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTags", _tmp8_); #line 5292 "MediaPage.c" } static void media_page_on_new_event (MediaPage* self) { ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; #line 724 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 725 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 725 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 725 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); #line 725 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ > 0; #line 725 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 725 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { #line 5315 "MediaPage.c" CommandManager* _tmp4_ = NULL; CommandManager* _tmp5_ = NULL; ViewCollection* _tmp6_ = NULL; ViewCollection* _tmp7_ = NULL; GeeList* _tmp8_ = NULL; GeeList* _tmp9_ = NULL; NewEventCommand* _tmp10_ = NULL; NewEventCommand* _tmp11_ = NULL; #line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; #line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; #line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = view_collection_get_selected (_tmp7_); #line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _tmp8_; #line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = new_event_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable)); #line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _tmp10_; #line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command)); #line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp11_); #line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp9_); #line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp7_); #line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp5_); #line 5350 "MediaPage.c" } } static void media_page_on_flag_unflag (MediaPage* self) { ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; GeeCollection* sources = NULL; ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; GeeList* _tmp6_ = NULL; GeeCollection* _tmp7_ = NULL; gboolean flag = FALSE; CommandManager* _tmp20_ = NULL; CommandManager* _tmp21_ = NULL; GeeCollection* _tmp22_ = NULL; gboolean _tmp23_ = FALSE; FlagUnflagCommand* _tmp24_ = NULL; FlagUnflagCommand* _tmp25_ = NULL; #line 729 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); #line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ == 0; #line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { #line 731 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 5388 "MediaPage.c" } #line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; #line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = view_collection_get_selected_sources_of_type (_tmp5_, TYPE_MEDIA_SOURCE); #line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection); #line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp5_); #line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" sources = _tmp7_; #line 737 "/home/jens/Source/shotwell/src/MediaPage.vala" flag = FALSE; #line 5404 "MediaPage.c" { GeeIterator* _source_it = NULL; GeeCollection* _tmp8_ = NULL; GeeIterator* _tmp9_ = NULL; #line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = sources; #line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable)); #line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _source_it = _tmp9_; #line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" while (TRUE) { #line 5417 "MediaPage.c" GeeIterator* _tmp10_ = NULL; gboolean _tmp11_ = FALSE; MediaSource* source = NULL; GeeIterator* _tmp12_ = NULL; gpointer _tmp13_ = NULL; Flaggable* flaggable = NULL; MediaSource* _tmp14_ = NULL; Flaggable* _tmp15_ = NULL; gboolean _tmp16_ = FALSE; Flaggable* _tmp17_ = NULL; #line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _source_it; #line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = gee_iterator_next (_tmp10_); #line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!_tmp11_) { #line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 5436 "MediaPage.c" } #line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _source_it; #line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = gee_iterator_get (_tmp12_); #line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" source = (MediaSource*) _tmp13_; #line 739 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = source; #line 739 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, TYPE_FLAGGABLE) ? ((Flaggable*) _tmp14_) : NULL); #line 739 "/home/jens/Source/shotwell/src/MediaPage.vala" flaggable = _tmp15_; #line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = flaggable; #line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp17_ != NULL) { #line 5454 "MediaPage.c" Flaggable* _tmp18_ = NULL; gboolean _tmp19_ = FALSE; #line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = flaggable; #line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = flaggable_is_flagged (_tmp18_); #line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = !_tmp19_; #line 5463 "MediaPage.c" } else { #line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = FALSE; #line 5467 "MediaPage.c" } #line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp16_) { #line 741 "/home/jens/Source/shotwell/src/MediaPage.vala" flag = TRUE; #line 743 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (flaggable); #line 743 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (source); #line 743 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 5479 "MediaPage.c" } #line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (flaggable); #line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (source); #line 5485 "MediaPage.c" } #line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_source_it); #line 5489 "MediaPage.c" } #line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = _tmp20_; #line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = sources; #line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = flag; #line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = flag_unflag_command_new (_tmp22_, _tmp23_); #line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp25_ = _tmp24_; #line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_COMMAND, Command)); #line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp25_); #line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp21_); #line 729 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (sources); #line 5511 "MediaPage.c" } static void media_page_real_on_increase_rating (MediaPage* self) { ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; SetRatingCommand* command = NULL; ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; GeeList* _tmp6_ = NULL; GeeList* _tmp7_ = NULL; SetRatingCommand* _tmp8_ = NULL; SetRatingCommand* _tmp9_ = NULL; CommandManager* _tmp10_ = NULL; CommandManager* _tmp11_ = NULL; SetRatingCommand* _tmp12_ = NULL; #line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); #line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ == 0; #line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { #line 752 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 5544 "MediaPage.c" } #line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; #line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = view_collection_get_selected (_tmp5_); #line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; #line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = set_rating_command_new_inc_dec (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), TRUE); #line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _tmp8_; #line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp7_); #line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp5_); #line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" command = _tmp9_; #line 755 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 755 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _tmp10_; #line 755 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = command; #line 755 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command)); #line 755 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp11_); #line 757 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_update_rating_sensitivities (self); #line 750 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (command); #line 5578 "MediaPage.c" } void media_page_on_increase_rating (MediaPage* self) { #line 750 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 750 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_increase_rating (self); #line 5587 "MediaPage.c" } static void media_page_real_on_decrease_rating (MediaPage* self) { ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; SetRatingCommand* command = NULL; ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; GeeList* _tmp6_ = NULL; GeeList* _tmp7_ = NULL; SetRatingCommand* _tmp8_ = NULL; SetRatingCommand* _tmp9_ = NULL; CommandManager* _tmp10_ = NULL; CommandManager* _tmp11_ = NULL; SetRatingCommand* _tmp12_ = NULL; #line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); #line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ == 0; #line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { #line 762 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 5620 "MediaPage.c" } #line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; #line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = view_collection_get_selected (_tmp5_); #line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; #line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = set_rating_command_new_inc_dec (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), FALSE); #line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _tmp8_; #line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp7_); #line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp5_); #line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" command = _tmp9_; #line 765 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 765 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _tmp10_; #line 765 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = command; #line 765 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command)); #line 765 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp11_); #line 767 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_update_rating_sensitivities (self); #line 760 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (command); #line 5654 "MediaPage.c" } void media_page_on_decrease_rating (MediaPage* self) { #line 760 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 760 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_decrease_rating (self); #line 5663 "MediaPage.c" } static void media_page_real_on_set_rating (MediaPage* self, Rating rating) { ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; SetRatingCommand* command = NULL; ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; GeeList* _tmp6_ = NULL; GeeList* _tmp7_ = NULL; Rating _tmp8_ = 0; SetRatingCommand* _tmp9_ = NULL; SetRatingCommand* _tmp10_ = NULL; CommandManager* _tmp11_ = NULL; CommandManager* _tmp12_ = NULL; SetRatingCommand* _tmp13_ = NULL; #line 771 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 771 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 771 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); #line 771 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ == 0; #line 771 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 771 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { #line 772 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 5697 "MediaPage.c" } #line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; #line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = view_collection_get_selected (_tmp5_); #line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; #line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = rating; #line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = set_rating_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), _tmp8_); #line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _tmp9_; #line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp7_); #line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp5_); #line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" command = _tmp10_; #line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _tmp11_; #line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = command; #line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_COMMAND, Command)); #line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp12_); #line 777 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_update_rating_sensitivities (self); #line 770 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (command); #line 5733 "MediaPage.c" } void media_page_on_set_rating (MediaPage* self, Rating rating) { #line 770 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 770 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_set_rating (self, rating); #line 5742 "MediaPage.c" } static void media_page_real_on_rate_rejected (MediaPage* self) { #line 781 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_set_rating (self, RATING_REJECTED); #line 5749 "MediaPage.c" } void media_page_on_rate_rejected (MediaPage* self) { #line 780 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 780 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_rate_rejected (self); #line 5758 "MediaPage.c" } static void media_page_real_on_rate_unrated (MediaPage* self) { #line 785 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_set_rating (self, RATING_UNRATED); #line 5765 "MediaPage.c" } void media_page_on_rate_unrated (MediaPage* self) { #line 784 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 784 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_rate_unrated (self); #line 5774 "MediaPage.c" } static void media_page_real_on_rate_one (MediaPage* self) { #line 789 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_set_rating (self, RATING_ONE); #line 5781 "MediaPage.c" } void media_page_on_rate_one (MediaPage* self) { #line 788 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 788 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_rate_one (self); #line 5790 "MediaPage.c" } static void media_page_real_on_rate_two (MediaPage* self) { #line 793 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_set_rating (self, RATING_TWO); #line 5797 "MediaPage.c" } void media_page_on_rate_two (MediaPage* self) { #line 792 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 792 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_rate_two (self); #line 5806 "MediaPage.c" } static void media_page_real_on_rate_three (MediaPage* self) { #line 797 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_set_rating (self, RATING_THREE); #line 5813 "MediaPage.c" } void media_page_on_rate_three (MediaPage* self) { #line 796 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 796 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_rate_three (self); #line 5822 "MediaPage.c" } static void media_page_real_on_rate_four (MediaPage* self) { #line 801 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_set_rating (self, RATING_FOUR); #line 5829 "MediaPage.c" } void media_page_on_rate_four (MediaPage* self) { #line 800 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 800 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_rate_four (self); #line 5838 "MediaPage.c" } static void media_page_real_on_rate_five (MediaPage* self) { #line 805 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_set_rating (self, RATING_FIVE); #line 5845 "MediaPage.c" } void media_page_on_rate_five (MediaPage* self) { #line 804 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 804 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_rate_five (self); #line 5854 "MediaPage.c" } static void media_page_on_remove_from_library (MediaPage* self) { ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; GeeList* _tmp2_ = NULL; GeeCollection* _tmp3_ = NULL; #line 808 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_sources (_tmp1_); #line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); #line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" remove_photos_from_library (_tmp3_); #line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); #line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 5879 "MediaPage.c" } static void media_page_real_on_move_to_trash (MediaPage* self) { CheckerboardItem* restore_point = NULL; CheckerboardItem* _tmp0_ = NULL; ViewCollection* _tmp6_ = NULL; ViewCollection* _tmp7_ = NULL; gint _tmp8_ = 0; gboolean _tmp9_ = FALSE; gboolean _tmp18_ = FALSE; CheckerboardItem* _tmp19_ = NULL; #line 813 "/home/jens/Source/shotwell/src/MediaPage.vala" restore_point = NULL; #line 815 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)->cursor; #line 815 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_ != NULL) { #line 5898 "MediaPage.c" ViewCollection* _tmp1_ = NULL; ViewCollection* _tmp2_ = NULL; CheckerboardItem* _tmp3_ = NULL; DataView* _tmp4_ = NULL; CheckerboardItem* _tmp5_ = NULL; #line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; #line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)->cursor; #line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = view_collection_get_next (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_VIEW, DataView)); #line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_CHECKERBOARD_ITEM) ? ((CheckerboardItem*) _tmp4_) : NULL; #line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp5_ == NULL) { #line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp4_); #line 5918 "MediaPage.c" } #line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (restore_point); #line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" restore_point = _tmp5_; #line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp2_); #line 5926 "MediaPage.c" } #line 819 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 819 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; #line 819 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = view_collection_get_selected_count (_tmp7_); #line 819 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _tmp8_ > 0; #line 819 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp7_); #line 819 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp9_) { #line 5940 "MediaPage.c" CommandManager* _tmp10_ = NULL; CommandManager* _tmp11_ = NULL; ViewCollection* _tmp12_ = NULL; ViewCollection* _tmp13_ = NULL; GeeList* _tmp14_ = NULL; GeeCollection* _tmp15_ = NULL; TrashUntrashPhotosCommand* _tmp16_ = NULL; TrashUntrashPhotosCommand* _tmp17_ = NULL; #line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _tmp10_; #line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = _tmp12_; #line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = view_collection_get_selected_sources (_tmp13_); #line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection); #line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = trash_untrash_photos_command_new (_tmp15_, TRUE); #line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = _tmp16_; #line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_COMMAND, Command)); #line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp17_); #line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp15_); #line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp13_); #line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp11_); #line 5975 "MediaPage.c" } #line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = restore_point; #line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp19_ != NULL) { #line 5981 "MediaPage.c" ViewCollection* _tmp20_ = NULL; ViewCollection* _tmp21_ = NULL; CheckerboardItem* _tmp22_ = NULL; gboolean _tmp23_ = FALSE; #line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = _tmp20_; #line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = restore_point; #line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_DATA_OBJECT, DataObject)); #line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = _tmp23_; #line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp21_); #line 5998 "MediaPage.c" } else { #line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = FALSE; #line 6002 "MediaPage.c" } #line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp18_) { #line 6006 "MediaPage.c" CheckerboardItem* _tmp24_ = NULL; #line 825 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = restore_point; #line 825 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_page_set_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp24_); #line 6012 "MediaPage.c" } #line 812 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (restore_point); #line 6016 "MediaPage.c" } void media_page_on_move_to_trash (MediaPage* self) { #line 812 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 812 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_move_to_trash (self); #line 6025 "MediaPage.c" } static void media_page_real_on_edit_title (MediaPage* self) { ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; GeeList* media_sources = NULL; ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; GeeList* _tmp6_ = NULL; GeeList* _tmp7_ = NULL; EditTitleDialog* edit_title_dialog = NULL; GeeList* _tmp8_ = NULL; gpointer _tmp9_ = NULL; MediaSource* _tmp10_ = NULL; gchar* _tmp11_ = NULL; gchar* _tmp12_ = NULL; EditTitleDialog* _tmp13_ = NULL; EditTitleDialog* _tmp14_ = NULL; gchar* new_title = NULL; EditTitleDialog* _tmp15_ = NULL; gchar* _tmp16_ = NULL; const gchar* _tmp17_ = NULL; #line 830 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 830 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 830 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); #line 830 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ == 0; #line 830 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 830 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { #line 831 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 6065 "MediaPage.c" } #line 833 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 833 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; #line 833 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = view_collection_get_selected_sources (_tmp5_); #line 833 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_LIST, GeeList); #line 833 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp5_); #line 833 "/home/jens/Source/shotwell/src/MediaPage.vala" media_sources = _tmp7_; #line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = media_sources; #line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = gee_list_get (_tmp8_, 0); #line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = (MediaSource*) _tmp9_; #line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = media_source_get_title (_tmp10_); #line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _tmp11_; #line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = edit_title_dialog_new (_tmp12_); #line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = _tmp13_; #line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (_tmp12_); #line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp10_); #line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" edit_title_dialog = _tmp14_; #line 836 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = edit_title_dialog; #line 836 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = edit_title_dialog_execute (_tmp15_); #line 836 "/home/jens/Source/shotwell/src/MediaPage.vala" new_title = _tmp16_; #line 837 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = new_title; #line 837 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp17_ != NULL) { #line 6109 "MediaPage.c" CommandManager* _tmp18_ = NULL; CommandManager* _tmp19_ = NULL; GeeList* _tmp20_ = NULL; const gchar* _tmp21_ = NULL; EditMultipleTitlesCommand* _tmp22_ = NULL; EditMultipleTitlesCommand* _tmp23_ = NULL; #line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = _tmp18_; #line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = media_sources; #line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = new_title; #line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = edit_multiple_titles_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection), _tmp21_); #line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = _tmp22_; #line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_COMMAND, Command)); #line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp23_); #line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp19_); #line 6134 "MediaPage.c" } #line 829 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (new_title); #line 829 "/home/jens/Source/shotwell/src/MediaPage.vala" _text_entry_dialog_mediator_unref0 (edit_title_dialog); #line 829 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (media_sources); #line 6142 "MediaPage.c" } void media_page_on_edit_title (MediaPage* self) { #line 829 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 829 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_edit_title (self); #line 6151 "MediaPage.c" } static void media_page_real_on_edit_comment (MediaPage* self) { ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; GeeList* media_sources = NULL; ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; GeeList* _tmp6_ = NULL; GeeList* _tmp7_ = NULL; EditCommentDialog* edit_comment_dialog = NULL; GeeList* _tmp8_ = NULL; gpointer _tmp9_ = NULL; MediaSource* _tmp10_ = NULL; gchar* _tmp11_ = NULL; gchar* _tmp12_ = NULL; EditCommentDialog* _tmp13_ = NULL; EditCommentDialog* _tmp14_ = NULL; gchar* new_comment = NULL; EditCommentDialog* _tmp15_ = NULL; gchar* _tmp16_ = NULL; const gchar* _tmp17_ = NULL; #line 842 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 842 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 842 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); #line 842 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ == 0; #line 842 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 842 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { #line 843 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 6191 "MediaPage.c" } #line 845 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 845 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; #line 845 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = view_collection_get_selected_sources (_tmp5_); #line 845 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_LIST, GeeList); #line 845 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp5_); #line 845 "/home/jens/Source/shotwell/src/MediaPage.vala" media_sources = _tmp7_; #line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = media_sources; #line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = gee_list_get (_tmp8_, 0); #line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = (MediaSource*) _tmp9_; #line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = media_source_get_comment (_tmp10_); #line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _tmp11_; #line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = edit_comment_dialog_new (_tmp12_, FALSE); #line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = _tmp13_; #line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (_tmp12_); #line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp10_); #line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" edit_comment_dialog = _tmp14_; #line 848 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = edit_comment_dialog; #line 848 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = edit_comment_dialog_execute (_tmp15_); #line 848 "/home/jens/Source/shotwell/src/MediaPage.vala" new_comment = _tmp16_; #line 849 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = new_comment; #line 849 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp17_ != NULL) { #line 6235 "MediaPage.c" CommandManager* _tmp18_ = NULL; CommandManager* _tmp19_ = NULL; GeeList* _tmp20_ = NULL; const gchar* _tmp21_ = NULL; EditMultipleCommentsCommand* _tmp22_ = NULL; EditMultipleCommentsCommand* _tmp23_ = NULL; #line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = _tmp18_; #line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = media_sources; #line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = new_comment; #line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = edit_multiple_comments_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection), _tmp21_); #line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = _tmp22_; #line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_COMMAND, Command)); #line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp23_); #line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp19_); #line 6260 "MediaPage.c" } #line 841 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (new_comment); #line 841 "/home/jens/Source/shotwell/src/MediaPage.vala" _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog); #line 841 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (media_sources); #line 6268 "MediaPage.c" } void media_page_on_edit_comment (MediaPage* self) { #line 841 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 841 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_edit_comment (self); #line 6277 "MediaPage.c" } static void media_page_real_on_display_titles (MediaPage* self, GSimpleAction* action, GVariant* value) { gboolean display = FALSE; GVariant* _tmp0_ = NULL; gboolean _tmp1_ = FALSE; ConfigFacade* _tmp2_ = NULL; ConfigFacade* _tmp3_ = NULL; GSimpleAction* _tmp4_ = NULL; GVariant* _tmp5_ = NULL; #line 853 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); #line 854 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = value; #line 854 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = g_variant_get_boolean (_tmp0_); #line 854 "/home/jens/Source/shotwell/src/MediaPage.vala" display = _tmp1_; #line 856 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_page_set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), display); #line 858 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = config_facade_get_instance (); #line 858 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; #line 858 "/home/jens/Source/shotwell/src/MediaPage.vala" configuration_facade_set_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); #line 858 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); #line 859 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = action; #line 859 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = value; #line 859 "/home/jens/Source/shotwell/src/MediaPage.vala" g_simple_action_set_state (_tmp4_, _tmp5_); #line 6313 "MediaPage.c" } void media_page_on_display_titles (MediaPage* self, GSimpleAction* action, GVariant* value) { #line 853 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 853 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_display_titles (self, action, value); #line 6322 "MediaPage.c" } static void media_page_real_on_display_comments (MediaPage* self, GSimpleAction* action, GVariant* value) { gboolean display = FALSE; GVariant* _tmp0_ = NULL; gboolean _tmp1_ = FALSE; ConfigFacade* _tmp2_ = NULL; ConfigFacade* _tmp3_ = NULL; GSimpleAction* _tmp4_ = NULL; GVariant* _tmp5_ = NULL; #line 862 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); #line 863 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = value; #line 863 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = g_variant_get_boolean (_tmp0_); #line 863 "/home/jens/Source/shotwell/src/MediaPage.vala" display = _tmp1_; #line 865 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_page_set_display_comments (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), display); #line 867 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = config_facade_get_instance (); #line 867 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; #line 867 "/home/jens/Source/shotwell/src/MediaPage.vala" configuration_facade_set_display_photo_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); #line 867 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); #line 868 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = action; #line 868 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = value; #line 868 "/home/jens/Source/shotwell/src/MediaPage.vala" g_simple_action_set_state (_tmp4_, _tmp5_); #line 6358 "MediaPage.c" } void media_page_on_display_comments (MediaPage* self, GSimpleAction* action, GVariant* value) { #line 862 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 862 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_display_comments (self, action, value); #line 6367 "MediaPage.c" } static void media_page_real_on_display_ratings (MediaPage* self, GSimpleAction* action, GVariant* value) { gboolean display = FALSE; GVariant* _tmp0_ = NULL; gboolean _tmp1_ = FALSE; ConfigFacade* _tmp2_ = NULL; ConfigFacade* _tmp3_ = NULL; GSimpleAction* _tmp4_ = NULL; GVariant* _tmp5_ = NULL; #line 871 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); #line 872 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = value; #line 872 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = g_variant_get_boolean (_tmp0_); #line 872 "/home/jens/Source/shotwell/src/MediaPage.vala" display = _tmp1_; #line 874 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_display_ratings (self, display); #line 876 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = config_facade_get_instance (); #line 876 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; #line 876 "/home/jens/Source/shotwell/src/MediaPage.vala" configuration_facade_set_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); #line 876 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); #line 877 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = action; #line 877 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = value; #line 877 "/home/jens/Source/shotwell/src/MediaPage.vala" g_simple_action_set_state (_tmp4_, _tmp5_); #line 6403 "MediaPage.c" } void media_page_on_display_ratings (MediaPage* self, GSimpleAction* action, GVariant* value) { #line 871 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 871 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_display_ratings (self, action, value); #line 6412 "MediaPage.c" } static void media_page_real_on_display_tags (MediaPage* self, GSimpleAction* action, GVariant* value) { gboolean display = FALSE; GVariant* _tmp0_ = NULL; gboolean _tmp1_ = FALSE; ConfigFacade* _tmp2_ = NULL; ConfigFacade* _tmp3_ = NULL; GSimpleAction* _tmp4_ = NULL; GVariant* _tmp5_ = NULL; #line 880 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); #line 881 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = value; #line 881 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = g_variant_get_boolean (_tmp0_); #line 881 "/home/jens/Source/shotwell/src/MediaPage.vala" display = _tmp1_; #line 883 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_display_tags (self, display); #line 885 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = config_facade_get_instance (); #line 885 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; #line 885 "/home/jens/Source/shotwell/src/MediaPage.vala" configuration_facade_set_display_photo_tags (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); #line 885 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); #line 886 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = action; #line 886 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = value; #line 886 "/home/jens/Source/shotwell/src/MediaPage.vala" g_simple_action_set_state (_tmp4_, _tmp5_); #line 6448 "MediaPage.c" } void media_page_on_display_tags (MediaPage* self, GSimpleAction* action, GVariant* value) { #line 880 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 880 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_display_tags (self, action, value); #line 6457 "MediaPage.c" } static void media_page_real_get_config_photos_sort (MediaPage* self, gboolean* sort_order, gint* sort_by) { #line 889 "/home/jens/Source/shotwell/src/MediaPage.vala" g_critical ("Type `%s' does not implement abstract method `media_page_get_config_photos_sort'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 889 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 6466 "MediaPage.c" } void media_page_get_config_photos_sort (MediaPage* self, gboolean* sort_order, gint* sort_by) { #line 889 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 889 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->get_config_photos_sort (self, sort_order, sort_by); #line 6475 "MediaPage.c" } static void media_page_real_set_config_photos_sort (MediaPage* self, gboolean sort_order, gint sort_by) { #line 891 "/home/jens/Source/shotwell/src/MediaPage.vala" g_critical ("Type `%s' does not implement abstract method `media_page_set_config_photos_sort'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 891 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 6484 "MediaPage.c" } void media_page_set_config_photos_sort (MediaPage* self, gboolean sort_order, gint sort_by) { #line 891 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 891 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->set_config_photos_sort (self, sort_order, sort_by); #line 6493 "MediaPage.c" } static void media_page_real_on_sort_changed (MediaPage* self, GSimpleAction* action, GVariant* value) { GSimpleAction* _tmp0_ = NULL; GVariant* _tmp1_ = NULL; gint sort_by = 0; gint _tmp2_ = 0; gboolean sort_order = FALSE; gboolean _tmp3_ = FALSE; #line 893 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); #line 894 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = action; #line 894 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = value; #line 894 "/home/jens/Source/shotwell/src/MediaPage.vala" g_simple_action_set_state (_tmp0_, _tmp1_); #line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_page_get_menu_sort_by (self); #line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" sort_by = _tmp2_; #line 897 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = media_page_get_menu_sort_order (self); #line 897 "/home/jens/Source/shotwell/src/MediaPage.vala" sort_order = _tmp3_; #line 899 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_view_comparator (self, sort_by, sort_order); #line 900 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_config_photos_sort (self, sort_order, sort_by); #line 6524 "MediaPage.c" } void media_page_on_sort_changed (MediaPage* self, GSimpleAction* action, GVariant* value) { #line 893 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 893 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_sort_changed (self, action, value); #line 6533 "MediaPage.c" } static void media_page_on_raw_developer_changed (MediaPage* self, GSimpleAction* action, GVariant* value) { RawDeveloper developer = 0; GVariant* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; const gchar* _tmp2_ = NULL; GQuark _tmp4_ = 0U; #line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp3_label0 = 0; #line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp3_label1 = 0; #line 6547 "MediaPage.c" RawDeveloper _tmp5_ = 0; GSimpleAction* _tmp6_ = NULL; GVariant* _tmp7_ = NULL; #line 903 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 903 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); #line 905 "/home/jens/Source/shotwell/src/MediaPage.vala" developer = RAW_DEVELOPER_SHOTWELL; #line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = value; #line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = g_variant_get_string (_tmp0_, NULL); #line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; #line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_); #line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("Shotwell")))) { #line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 6569 "MediaPage.c" default: { #line 909 "/home/jens/Source/shotwell/src/MediaPage.vala" developer = RAW_DEVELOPER_SHOTWELL; #line 910 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 6576 "MediaPage.c" } } } else if (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("Camera")))) { #line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 6582 "MediaPage.c" default: { #line 912 "/home/jens/Source/shotwell/src/MediaPage.vala" developer = RAW_DEVELOPER_CAMERA; #line 913 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 6589 "MediaPage.c" } } } else { #line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { #line 6595 "MediaPage.c" default: { #line 915 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 6600 "MediaPage.c" } } } #line 918 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = developer; #line 918 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_developer_changed (self, _tmp5_); #line 920 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = action; #line 920 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = value; #line 920 "/home/jens/Source/shotwell/src/MediaPage.vala" g_simple_action_set_state (_tmp6_, _tmp7_); #line 6614 "MediaPage.c" } static void media_page_real_developer_changed (MediaPage* self, RawDeveloper rd) { ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; gboolean need_warn = FALSE; GeeArrayList* to_set = NULL; GeeArrayList* _tmp4_ = NULL; gboolean _tmp31_ = FALSE; gboolean _tmp32_ = FALSE; #line 924 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 924 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 924 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); #line 924 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ == 0; #line 924 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); #line 924 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { #line 925 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 6642 "MediaPage.c" } #line 930 "/home/jens/Source/shotwell/src/MediaPage.vala" need_warn = FALSE; #line 933 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); #line 933 "/home/jens/Source/shotwell/src/MediaPage.vala" to_set = _tmp4_; #line 6650 "MediaPage.c" { GeeList* _view_list = NULL; ViewCollection* _tmp5_ = NULL; ViewCollection* _tmp6_ = NULL; GeeList* _tmp7_ = NULL; GeeList* _tmp8_ = NULL; gint _view_size = 0; GeeList* _tmp9_ = NULL; gint _tmp10_ = 0; gint _tmp11_ = 0; gint _view_index = 0; #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_; #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = view_collection_get_selected (_tmp6_); #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _tmp7_; #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp6_); #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_list = _tmp8_; #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _view_list; #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection)); #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _tmp10_; #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_size = _tmp11_; #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = -1; #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" while (TRUE) { #line 6686 "MediaPage.c" gint _tmp12_ = 0; gint _tmp13_ = 0; gint _tmp14_ = 0; DataView* view = NULL; GeeList* _tmp15_ = NULL; gint _tmp16_ = 0; gpointer _tmp17_ = NULL; Photo* p = NULL; DataView* _tmp18_ = NULL; DataSource* _tmp19_ = NULL; Photo* _tmp20_ = NULL; gboolean _tmp21_ = FALSE; Photo* _tmp22_ = NULL; #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _view_index; #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = _tmp12_ + 1; #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = _view_index; #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = _view_size; #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!(_tmp13_ < _tmp14_)) { #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 6712 "MediaPage.c" } #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _view_list; #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = _view_index; #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = gee_list_get (_tmp15_, _tmp16_); #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" view = (DataView*) _tmp17_; #line 935 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = view; #line 935 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = data_view_get_source (_tmp18_); #line 935 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_PHOTO) ? ((Photo*) _tmp19_) : NULL; #line 935 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp20_ == NULL) { #line 935 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp19_); #line 6732 "MediaPage.c" } #line 935 "/home/jens/Source/shotwell/src/MediaPage.vala" p = _tmp20_; #line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = p; #line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp22_ != NULL) { #line 6740 "MediaPage.c" RawDeveloper _tmp23_ = 0; Photo* _tmp24_ = NULL; RawDeveloper _tmp25_ = 0; gboolean _tmp26_ = FALSE; #line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = rd; #line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = p; #line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp25_ = photo_get_raw_developer (_tmp24_); #line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp26_ = raw_developer_is_equivalent (_tmp23_, _tmp25_); #line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = !_tmp26_; #line 6755 "MediaPage.c" } else { #line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = FALSE; #line 6759 "MediaPage.c" } #line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp21_) { #line 6763 "MediaPage.c" GeeArrayList* _tmp27_ = NULL; DataView* _tmp28_ = NULL; Photo* _tmp29_ = NULL; gboolean _tmp30_ = FALSE; #line 937 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp27_ = to_set; #line 937 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp28_ = view; #line 937 "/home/jens/Source/shotwell/src/MediaPage.vala" gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp28_); #line 939 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp29_ = p; #line 939 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp30_ = photo_has_transformations (_tmp29_); #line 939 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp30_) { #line 940 "/home/jens/Source/shotwell/src/MediaPage.vala" need_warn = TRUE; #line 6782 "MediaPage.c" } } #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (p); #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); #line 6789 "MediaPage.c" } #line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_view_list); #line 6793 "MediaPage.c" } #line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp32_ = need_warn; #line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!_tmp32_) { #line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp31_ = TRUE; #line 6801 "MediaPage.c" } else { GeeArrayList* _tmp33_ = NULL; gint _tmp34_ = 0; gint _tmp35_ = 0; gboolean _tmp36_ = FALSE; #line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp33_ = to_set; #line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp34_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_COLLECTION, GeeCollection)); #line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp35_ = _tmp34_; #line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp36_ = dialogs_confirm_warn_developer_changed (_tmp35_); #line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp31_ = _tmp36_; #line 6817 "MediaPage.c" } #line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp31_) { #line 6821 "MediaPage.c" SetRawDeveloperCommand* command = NULL; GeeArrayList* _tmp37_ = NULL; RawDeveloper _tmp38_ = 0; SetRawDeveloperCommand* _tmp39_ = NULL; CommandManager* _tmp40_ = NULL; CommandManager* _tmp41_ = NULL; SetRawDeveloperCommand* _tmp42_ = NULL; #line 946 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp37_ = to_set; #line 946 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp38_ = rd; #line 946 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp39_ = set_raw_developer_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_ITERABLE, GeeIterable), _tmp38_); #line 946 "/home/jens/Source/shotwell/src/MediaPage.vala" command = _tmp39_; #line 947 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp40_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 947 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp41_ = _tmp40_; #line 947 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp42_ = command; #line 947 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp41_, G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_COMMAND, Command)); #line 947 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp41_); #line 949 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_update_development_menu_item_sensitivity (self); #line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (command); #line 6851 "MediaPage.c" } #line 923 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (to_set); #line 6855 "MediaPage.c" } void media_page_developer_changed (MediaPage* self, RawDeveloper rd) { #line 923 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 923 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->developer_changed (self, rd); #line 6864 "MediaPage.c" } static void media_page_real_set_display_titles (CheckerboardPage* base, gboolean display) { MediaPage * self; gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; #line 953 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); #line 954 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = display; #line 954 "/home/jens/Source/shotwell/src/MediaPage.vala" CHECKERBOARD_PAGE_CLASS (media_page_parent_class)->set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp0_); #line 956 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = display; #line 956 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTitle", _tmp1_); #line 6882 "MediaPage.c" } static void media_page_real_set_display_comments (CheckerboardPage* base, gboolean display) { MediaPage * self; gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; #line 959 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); #line 960 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = display; #line 960 "/home/jens/Source/shotwell/src/MediaPage.vala" CHECKERBOARD_PAGE_CLASS (media_page_parent_class)->set_display_comments (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp0_); #line 962 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = display; #line 962 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewComment", _tmp1_); #line 6900 "MediaPage.c" } static GAction* media_page_sort_by_title_action (MediaPage* self) { GAction* result = NULL; GAction* action = NULL; GAction* _tmp0_ = NULL; #line 965 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), NULL); #line 966 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SortBy"); #line 966 "/home/jens/Source/shotwell/src/MediaPage.vala" action = _tmp0_; #line 967 "/home/jens/Source/shotwell/src/MediaPage.vala" _vala_assert (action != NULL, "action != null"); #line 968 "/home/jens/Source/shotwell/src/MediaPage.vala" result = action; #line 968 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 6920 "MediaPage.c" } static GAction* media_page_sort_ascending_action (MediaPage* self) { GAction* result = NULL; GAction* action = NULL; GAction* _tmp0_ = NULL; #line 971 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), NULL); #line 972 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Sort"); #line 972 "/home/jens/Source/shotwell/src/MediaPage.vala" action = _tmp0_; #line 973 "/home/jens/Source/shotwell/src/MediaPage.vala" _vala_assert (action != NULL, "action != null"); #line 974 "/home/jens/Source/shotwell/src/MediaPage.vala" result = action; #line 974 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 6940 "MediaPage.c" } gint media_page_get_menu_sort_by (MediaPage* self) { gint result = 0; GAction* _tmp0_ = NULL; GAction* _tmp1_ = NULL; GVariant* _tmp2_ = NULL; GVariant* _tmp3_ = NULL; const gchar* _tmp4_ = NULL; gint _tmp5_ = 0; gint _tmp6_ = 0; #line 977 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), 0); #line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = media_page_sort_by_title_action (self); #line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = g_action_get_state (_tmp1_); #line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; #line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = g_variant_get_string (_tmp3_, NULL); #line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = atoi (_tmp4_); #line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_; #line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp3_); #line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp1_); #line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp6_; #line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 6977 "MediaPage.c" } static GVariant* _variant_new30 (const gchar* value) { #line 984 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_string (value)); #line 6984 "MediaPage.c" } void media_page_set_menu_sort_by (MediaPage* self, gint val) { gchar* sort = NULL; gint _tmp0_ = 0; gchar* _tmp1_ = NULL; GAction* _tmp2_ = NULL; GAction* _tmp3_ = NULL; GVariant* _tmp4_ = NULL; #line 982 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 983 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = val; #line 983 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = g_strdup_printf ("%d", _tmp0_); #line 983 "/home/jens/Source/shotwell/src/MediaPage.vala" sort = _tmp1_; #line 984 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_page_sort_by_title_action (self); #line 984 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; #line 984 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _variant_new30 (sort); #line 984 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_change_state (_tmp3_, _tmp4_); #line 984 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp4_); #line 984 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); #line 982 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (sort); #line 7017 "MediaPage.c" } gboolean media_page_get_menu_sort_order (MediaPage* self) { gboolean result = FALSE; GAction* _tmp0_ = NULL; GAction* _tmp1_ = NULL; GVariant* _tmp2_ = NULL; GVariant* _tmp3_ = NULL; const gchar* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; #line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), FALSE); #line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = media_page_sort_ascending_action (self); #line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = g_action_get_state (_tmp1_); #line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; #line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = g_variant_get_string (_tmp3_, NULL); #line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = g_strcmp0 (_tmp4_, "ascending") == 0; #line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp3_); #line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp1_); #line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp5_; #line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 7051 "MediaPage.c" } static GVariant* _variant_new31 (const gchar* value) { #line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_string (value)); #line 7058 "MediaPage.c" } void media_page_set_menu_sort_order (MediaPage* self, gboolean ascending) { const gchar* _tmp0_ = NULL; gboolean _tmp1_ = FALSE; GAction* _tmp2_ = NULL; GAction* _tmp3_ = NULL; GVariant* _tmp4_ = NULL; #line 992 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = ascending; #line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp1_) { #line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = "ascending"; #line 7076 "MediaPage.c" } else { #line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = "descending"; #line 7080 "MediaPage.c" } #line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_page_sort_ascending_action (self); #line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; #line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _variant_new31 (_tmp0_); #line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_change_state (_tmp3_, _tmp4_); #line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp4_); #line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); #line 7094 "MediaPage.c" } static gint64 _thumbnail_title_ascending_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = thumbnail_title_ascending_comparator (a, b); #line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 7103 "MediaPage.c" } static gint64 _thumbnail_title_descending_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = thumbnail_title_descending_comparator (a, b); #line 1004 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 7112 "MediaPage.c" } static gboolean _thumbnail_title_comparator_predicate_comparator_predicate (DataObject* object, Alteration* alteration, gpointer self) { gboolean result; result = thumbnail_title_comparator_predicate (object, alteration); #line 1005 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 7121 "MediaPage.c" } static gint64 _thumbnail_exposure_time_ascending_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = thumbnail_exposure_time_ascending_comparator (a, b); #line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 7130 "MediaPage.c" } static gint64 _thumbnail_exposure_time_desending_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = thumbnail_exposure_time_desending_comparator (a, b); #line 1011 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 7139 "MediaPage.c" } static gboolean _thumbnail_exposure_time_comparator_predicate_comparator_predicate (DataObject* object, Alteration* alteration, gpointer self) { gboolean result; result = thumbnail_exposure_time_comparator_predicate (object, alteration); #line 1012 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 7148 "MediaPage.c" } static gint64 _thumbnail_rating_ascending_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = thumbnail_rating_ascending_comparator (a, b); #line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 7157 "MediaPage.c" } static gint64 _thumbnail_rating_descending_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = thumbnail_rating_descending_comparator (a, b); #line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 7166 "MediaPage.c" } static gboolean _thumbnail_rating_comparator_predicate_comparator_predicate (DataObject* object, Alteration* alteration, gpointer self) { gboolean result; result = thumbnail_rating_comparator_predicate (object, alteration); #line 1019 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 7175 "MediaPage.c" } static gint64 _thumbnail_filename_ascending_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = thumbnail_filename_ascending_comparator (a, b); #line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 7184 "MediaPage.c" } static gint64 _thumbnail_filename_descending_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = thumbnail_filename_descending_comparator (a, b); #line 1025 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 7193 "MediaPage.c" } static gboolean _thumbnail_filename_comparator_predicate_comparator_predicate (DataObject* object, Alteration* alteration, gpointer self) { gboolean result; result = thumbnail_filename_comparator_predicate (object, alteration); #line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 7202 "MediaPage.c" } static void media_page_set_view_comparator (MediaPage* self, gint sort_by, gboolean ascending) { Comparator comparator = NULL; void* comparator_target = NULL; GDestroyNotify comparator_target_destroy_notify = NULL; ComparatorPredicate predicate = NULL; void* predicate_target = NULL; GDestroyNotify predicate_target_destroy_notify = NULL; gint _tmp0_ = 0; ViewCollection* _tmp8_ = NULL; ViewCollection* _tmp9_ = NULL; Comparator _tmp10_ = NULL; void* _tmp10__target = NULL; ComparatorPredicate _tmp11_ = NULL; void* _tmp11__target = NULL; #line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 1000 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = sort_by; #line 1000 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (_tmp0_) { #line 1000 "/home/jens/Source/shotwell/src/MediaPage.vala" case MEDIA_PAGE_SORT_BY_TITLE: #line 7228 "MediaPage.c" { gboolean _tmp1_ = FALSE; #line 1002 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = ascending; #line 1002 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp1_) { #line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); #line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; #line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_title_ascending_comparator_comparator; #line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 7249 "MediaPage.c" } else { #line 1004 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); #line 1004 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; #line 1004 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1004 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 1004 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_title_descending_comparator_comparator; #line 1004 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1004 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 7265 "MediaPage.c" } #line 1005 "/home/jens/Source/shotwell/src/MediaPage.vala" (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); #line 1005 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = NULL; #line 1005 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; #line 1005 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; #line 1005 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = _thumbnail_title_comparator_predicate_comparator_predicate; #line 1005 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; #line 1005 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; #line 1006 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 7283 "MediaPage.c" } #line 1000 "/home/jens/Source/shotwell/src/MediaPage.vala" case MEDIA_PAGE_SORT_BY_EXPOSURE_DATE: #line 7287 "MediaPage.c" { gboolean _tmp2_ = FALSE; #line 1009 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = ascending; #line 1009 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp2_) { #line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); #line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; #line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_exposure_time_ascending_comparator_comparator; #line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 7308 "MediaPage.c" } else { #line 1011 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); #line 1011 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; #line 1011 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1011 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 1011 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_exposure_time_desending_comparator_comparator; #line 1011 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1011 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 7324 "MediaPage.c" } #line 1012 "/home/jens/Source/shotwell/src/MediaPage.vala" (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); #line 1012 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = NULL; #line 1012 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; #line 1012 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; #line 1012 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = _thumbnail_exposure_time_comparator_predicate_comparator_predicate; #line 1012 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; #line 1012 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; #line 1013 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 7342 "MediaPage.c" } #line 1000 "/home/jens/Source/shotwell/src/MediaPage.vala" case MEDIA_PAGE_SORT_BY_RATING: #line 7346 "MediaPage.c" { gboolean _tmp3_ = FALSE; #line 1016 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = ascending; #line 1016 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { #line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); #line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; #line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_rating_ascending_comparator_comparator; #line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 7367 "MediaPage.c" } else { #line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); #line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; #line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_rating_descending_comparator_comparator; #line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 7383 "MediaPage.c" } #line 1019 "/home/jens/Source/shotwell/src/MediaPage.vala" (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); #line 1019 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = NULL; #line 1019 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; #line 1019 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; #line 1019 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = _thumbnail_rating_comparator_predicate_comparator_predicate; #line 1019 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; #line 1019 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; #line 1020 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 7401 "MediaPage.c" } #line 1000 "/home/jens/Source/shotwell/src/MediaPage.vala" case MEDIA_PAGE_SORT_BY_FILENAME: #line 7405 "MediaPage.c" { gboolean _tmp4_ = FALSE; #line 1023 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = ascending; #line 1023 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp4_) { #line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); #line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; #line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_filename_ascending_comparator_comparator; #line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 7426 "MediaPage.c" } else { #line 1025 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); #line 1025 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; #line 1025 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1025 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 1025 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_filename_descending_comparator_comparator; #line 1025 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1025 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 7442 "MediaPage.c" } #line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala" (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); #line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = NULL; #line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; #line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; #line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = _thumbnail_filename_comparator_predicate_comparator_predicate; #line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; #line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; #line 1027 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 7460 "MediaPage.c" } default: { gint _tmp5_ = 0; gchar* _tmp6_ = NULL; gchar* _tmp7_ = NULL; #line 1030 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = media_page_get_menu_sort_by (self); #line 1030 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = g_strdup_printf ("%i", _tmp5_); #line 1030 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; #line 1030 "/home/jens/Source/shotwell/src/MediaPage.vala" g_debug ("MediaPage.vala:1030: Unknown sort criteria: %s", _tmp7_); #line 1030 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (_tmp7_); #line 1031 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); #line 1031 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; #line 1031 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1031 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 1031 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_title_descending_comparator_comparator; #line 1031 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 1031 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 1032 "/home/jens/Source/shotwell/src/MediaPage.vala" (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); #line 1032 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = NULL; #line 1032 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; #line 1032 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; #line 1032 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = _thumbnail_title_comparator_predicate_comparator_predicate; #line 1032 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; #line 1032 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; #line 1033 "/home/jens/Source/shotwell/src/MediaPage.vala" break; #line 7507 "MediaPage.c" } } #line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _tmp8_; #line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = comparator; #line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10__target = comparator_target; #line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = predicate; #line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11__target = predicate_target; #line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_set_comparator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_COLLECTION, DataCollection), _tmp10_, _tmp10__target, _tmp11_, _tmp11__target); #line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp9_); #line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); #line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = NULL; #line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; #line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; #line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); #line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; #line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; #line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; #line 7542 "MediaPage.c" } void media_page_sync_sort (MediaPage* self) { gboolean sort_ascending = FALSE; gint sort_by = 0; gboolean _tmp0_ = FALSE; gint _tmp1_ = 0; #line 1039 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 1056 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_get_config_photos_sort (self, &_tmp0_, &_tmp1_); #line 1056 "/home/jens/Source/shotwell/src/MediaPage.vala" sort_ascending = _tmp0_; #line 1056 "/home/jens/Source/shotwell/src/MediaPage.vala" sort_by = _tmp1_; #line 1058 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_menu_sort_by (self, sort_by); #line 1059 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_menu_sort_order (self, sort_ascending); #line 1061 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_view_comparator (self, sort_by, sort_ascending); #line 7565 "MediaPage.c" } static void media_page_real_destroy (GtkWidget* base) { MediaPage * self; #line 1064 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); #line 1065 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_disconnect_slider (self); #line 1067 "/home/jens/Source/shotwell/src/MediaPage.vala" GTK_WIDGET_CLASS (media_page_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), gtk_widget_get_type (), GtkWidget)); #line 7577 "MediaPage.c" } void media_page_increase_zoom_level (MediaPage* self) { MediaPageZoomSliderAssembly* _tmp0_ = NULL; #line 1070 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 1071 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->connected_slider; #line 1071 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_ != NULL) { #line 7589 "MediaPage.c" MediaPageZoomSliderAssembly* _tmp1_ = NULL; #line 1072 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = self->priv->connected_slider; #line 1072 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_zoom_slider_assembly_increase_step (_tmp1_); #line 7595 "MediaPage.c" } else { gint new_scale = 0; gint _tmp2_ = 0; gint _tmp3_ = 0; gint _tmp4_ = 0; #line 1074 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_page_get_thumb_size (self); #line 1074 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = media_page_compute_zoom_scale_increase (_tmp2_); #line 1074 "/home/jens/Source/shotwell/src/MediaPage.vala" new_scale = _tmp3_; #line 1075 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_save_persistent_thumbnail_scale (self); #line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = new_scale; #line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_thumb_size (self, _tmp4_); #line 7613 "MediaPage.c" } } void media_page_decrease_zoom_level (MediaPage* self) { MediaPageZoomSliderAssembly* _tmp0_ = NULL; #line 1080 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 1081 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->connected_slider; #line 1081 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_ != NULL) { #line 7626 "MediaPage.c" MediaPageZoomSliderAssembly* _tmp1_ = NULL; #line 1082 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = self->priv->connected_slider; #line 1082 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_zoom_slider_assembly_decrease_step (_tmp1_); #line 7632 "MediaPage.c" } else { gint new_scale = 0; gint _tmp2_ = 0; gint _tmp3_ = 0; gint _tmp4_ = 0; #line 1084 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_page_get_thumb_size (self); #line 1084 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = media_page_compute_zoom_scale_decrease (_tmp2_); #line 1084 "/home/jens/Source/shotwell/src/MediaPage.vala" new_scale = _tmp3_; #line 1085 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_save_persistent_thumbnail_scale (self); #line 1086 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = new_scale; #line 1086 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_thumb_size (self, _tmp4_); #line 7650 "MediaPage.c" } } static DataView* media_page_real_create_thumbnail (MediaPage* self, DataSource* source) { DataView* result = NULL; DataSource* _tmp0_ = NULL; gint _tmp1_ = 0; Thumbnail* _tmp2_ = NULL; #line 1090 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); #line 1091 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = source; #line 1091 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = media_page_get_thumb_size (self); #line 1091 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = thumbnail_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_); #line 1091 "/home/jens/Source/shotwell/src/MediaPage.vala" result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_VIEW, DataView); #line 1091 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 7672 "MediaPage.c" } DataView* media_page_create_thumbnail (MediaPage* self, DataSource* source) { #line 1090 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), NULL); #line 1090 "/home/jens/Source/shotwell/src/MediaPage.vala" return MEDIA_PAGE_GET_CLASS (self)->create_thumbnail (self, source); #line 7681 "MediaPage.c" } void media_page_set_thumb_size (MediaPage* self, gint new_scale) { gboolean _tmp0_ = FALSE; gint _tmp1_ = 0; gint _tmp2_ = 0; gint _tmp4_ = 0; gint _tmp5_ = 0; gint _tmp6_ = 0; gint _tmp7_ = 0; gint _tmp8_ = 0; gint _tmp9_ = 0; CheckerboardLayout* _tmp10_ = NULL; CheckerboardLayout* _tmp11_ = NULL; gint _tmp12_ = 0; ViewCollection* _tmp13_ = NULL; ViewCollection* _tmp14_ = NULL; ViewCollection* _tmp15_ = NULL; ViewCollection* _tmp16_ = NULL; gint _tmp17_ = 0; GValue _tmp18_ = {0}; ViewCollection* _tmp19_ = NULL; ViewCollection* _tmp20_ = NULL; gint _tmp21_ = 0; gint _tmp22_ = 0; gint _tmp23_ = 0; gint _tmp24_ = 0; gint _tmp25_ = 0; gint _tmp26_ = 0; #line 1096 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); #line 1097 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = media_page_get_thumb_size (self); #line 1097 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = new_scale; #line 1097 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp1_ == _tmp2_) { #line 1097 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = TRUE; #line 7722 "MediaPage.c" } else { gboolean _tmp3_ = FALSE; #line 1097 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = page_is_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 1097 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = !_tmp3_; #line 7729 "MediaPage.c" } #line 1097 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_) { #line 1098 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 7735 "MediaPage.c" } #line 1100 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = new_scale; #line 1100 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = thumbnail_get_MIN_SCALE (); #line 1100 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_; #line 1100 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = thumbnail_get_MAX_SCALE (); #line 1100 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _tmp7_; #line 1100 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = CLAMP (_tmp4_, _tmp6_, _tmp8_); #line 1100 "/home/jens/Source/shotwell/src/MediaPage.vala" new_scale = _tmp9_; #line 1101 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = checkerboard_page_get_checkerboard_layout (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); #line 1101 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _tmp10_; #line 1101 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = new_scale; #line 1101 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_layout_set_scale (_tmp11_, _tmp12_); #line 1101 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp11_); #line 1104 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 1104 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = _tmp13_; #line 1104 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_COLLECTION, DataCollection)); #line 1104 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp14_); #line 1105 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 1105 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = _tmp15_; #line 1105 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = new_scale; #line 1105 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_init (&_tmp18_, G_TYPE_INT); #line 1105 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_set_int (&_tmp18_, _tmp17_); #line 1105 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SIZE, &_tmp18_, NULL, NULL); #line 1105 "/home/jens/Source/shotwell/src/MediaPage.vala" G_IS_VALUE (&_tmp18_) ? (g_value_unset (&_tmp18_), NULL) : NULL; #line 1105 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp16_); #line 1106 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 1106 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = _tmp19_; #line 1106 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_COLLECTION, DataCollection)); #line 1106 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp20_); #line 1108 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = new_scale; #line 1108 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = thumbnail_get_MAX_SCALE (); #line 1108 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = _tmp22_; #line 1108 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", _tmp21_ < _tmp23_); #line 1109 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = new_scale; #line 1109 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp25_ = thumbnail_get_MIN_SCALE (); #line 1109 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp26_ = _tmp25_; #line 1109 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", _tmp24_ > _tmp26_); #line 7809 "MediaPage.c" } gint media_page_get_thumb_size (MediaPage* self) { gint result = 0; CheckerboardLayout* _tmp0_ = NULL; CheckerboardLayout* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; CheckerboardLayout* _tmp9_ = NULL; CheckerboardLayout* _tmp10_ = NULL; gint _tmp11_ = 0; gint _tmp12_ = 0; #line 1112 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), 0); #line 1113 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = checkerboard_page_get_checkerboard_layout (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); #line 1113 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; #line 1113 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = checkerboard_layout_get_scale (_tmp1_); #line 1113 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ <= 0; #line 1113 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp1_); #line 1113 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { #line 7837 "MediaPage.c" CheckerboardLayout* _tmp4_ = NULL; CheckerboardLayout* _tmp5_ = NULL; ConfigFacade* _tmp6_ = NULL; ConfigFacade* _tmp7_ = NULL; gint _tmp8_ = 0; #line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = checkerboard_page_get_checkerboard_layout (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); #line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; #line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = config_facade_get_instance (); #line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; #line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = configuration_facade_get_photo_thumbnail_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); #line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_layout_set_scale (_tmp5_, _tmp8_); #line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp7_); #line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp5_); #line 7859 "MediaPage.c" } #line 1116 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = checkerboard_page_get_checkerboard_layout (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); #line 1116 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _tmp9_; #line 1116 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = checkerboard_layout_get_scale (_tmp10_); #line 1116 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _tmp11_; #line 1116 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp10_); #line 1116 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp12_; #line 1116 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 7875 "MediaPage.c" } static gboolean _media_page_zoom_slider_assembly_on_zoom_out_pressed_gtk_widget_button_press_event (GtkWidget* _sender, GdkEventButton* event, gpointer self) { gboolean result; result = media_page_zoom_slider_assembly_on_zoom_out_pressed ((MediaPageZoomSliderAssembly*) self, event); #line 144 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 7884 "MediaPage.c" } static void _media_page_zoom_slider_assembly_on_slider_changed_gtk_range_value_changed (GtkRange* _sender, gpointer self) { #line 155 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_zoom_slider_assembly_on_slider_changed ((MediaPageZoomSliderAssembly*) self); #line 7891 "MediaPage.c" } static gboolean _media_page_zoom_slider_assembly_on_zoom_in_pressed_gtk_widget_button_press_event (GtkWidget* _sender, GdkEventButton* event, gpointer self) { gboolean result; result = media_page_zoom_slider_assembly_on_zoom_in_pressed ((MediaPageZoomSliderAssembly*) self, event); #line 168 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 7900 "MediaPage.c" } MediaPageZoomSliderAssembly* media_page_zoom_slider_assembly_construct (GType object_type) { MediaPageZoomSliderAssembly * self = NULL; GtkBox* zoom_group = NULL; GtkBox* _tmp0_ = NULL; GtkImage* zoom_out = NULL; GdkPixbuf* _tmp1_ = NULL; GdkPixbuf* _tmp2_ = NULL; GtkImage* _tmp3_ = NULL; GtkImage* _tmp4_ = NULL; GtkEventBox* zoom_out_box = NULL; GtkEventBox* _tmp5_ = NULL; gint persisted_scale = 0; ConfigFacade* _tmp6_ = NULL; ConfigFacade* _tmp7_ = NULL; gint _tmp8_ = 0; gint _tmp9_ = 0; gdouble _tmp10_ = 0.0; gint _tmp11_ = 0; gint _tmp12_ = 0; gdouble _tmp13_ = 0.0; GtkAdjustment* _tmp14_ = NULL; GtkAdjustment* _tmp15_ = NULL; GtkScale* _tmp16_ = NULL; GtkScale* _tmp17_ = NULL; GtkScale* _tmp18_ = NULL; GtkScale* _tmp19_ = NULL; GtkScale* _tmp20_ = NULL; const gchar* _tmp21_ = NULL; GtkScale* _tmp22_ = NULL; GtkImage* zoom_in = NULL; GdkPixbuf* _tmp23_ = NULL; GdkPixbuf* _tmp24_ = NULL; GtkImage* _tmp25_ = NULL; GtkImage* _tmp26_ = NULL; GtkEventBox* zoom_in_box = NULL; GtkEventBox* _tmp27_ = NULL; #line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" self = (MediaPageZoomSliderAssembly*) g_object_new (object_type, NULL); #line 136 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); #line 136 "/home/jens/Source/shotwell/src/MediaPage.vala" g_object_ref_sink (_tmp0_); #line 136 "/home/jens/Source/shotwell/src/MediaPage.vala" zoom_group = _tmp0_; #line 138 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = resources_load_icon (RESOURCES_ICON_ZOOM_OUT, RESOURCES_ICON_ZOOM_SCALE); #line 138 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; #line 138 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = (GtkImage*) gtk_image_new_from_pixbuf (_tmp2_); #line 138 "/home/jens/Source/shotwell/src/MediaPage.vala" g_object_ref_sink (_tmp3_); #line 138 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _tmp3_; #line 138 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp2_); #line 138 "/home/jens/Source/shotwell/src/MediaPage.vala" zoom_out = _tmp4_; #line 140 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = (GtkEventBox*) gtk_event_box_new (); #line 140 "/home/jens/Source/shotwell/src/MediaPage.vala" g_object_ref_sink (_tmp5_); #line 140 "/home/jens/Source/shotwell/src/MediaPage.vala" zoom_out_box = _tmp5_; #line 141 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_event_box_set_above_child (zoom_out_box, TRUE); #line 142 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_event_box_set_visible_window (zoom_out_box, FALSE); #line 143 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (zoom_out_box, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (zoom_out, gtk_widget_get_type (), GtkWidget)); #line 144 "/home/jens/Source/shotwell/src/MediaPage.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (zoom_out_box, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _media_page_zoom_slider_assembly_on_zoom_out_pressed_gtk_widget_button_press_event, self, 0); #line 146 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_box_pack_start (zoom_group, G_TYPE_CHECK_INSTANCE_CAST (zoom_out_box, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); #line 150 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = config_facade_get_instance (); #line 150 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; #line 150 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = configuration_facade_get_photo_thumbnail_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); #line 150 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _tmp8_; #line 150 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp7_); #line 150 "/home/jens/Source/shotwell/src/MediaPage.vala" persisted_scale = _tmp9_; #line 151 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = media_page_zoom_slider_assembly_scale_to_slider (persisted_scale); #line 151 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = thumbnail_get_MAX_SCALE (); #line 151 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _tmp11_; #line 151 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = media_page_zoom_slider_assembly_scale_to_slider (_tmp12_); #line 151 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = gtk_adjustment_new (_tmp10_, (gdouble) 0, _tmp13_, (gdouble) 1, (gdouble) 10, (gdouble) 0); #line 151 "/home/jens/Source/shotwell/src/MediaPage.vala" g_object_ref_sink (_tmp14_); #line 151 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (self->priv->adjustment); #line 151 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->adjustment = _tmp14_; #line 154 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = self->priv->adjustment; #line 154 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = (GtkScale*) gtk_scale_new (GTK_ORIENTATION_HORIZONTAL, _tmp15_); #line 154 "/home/jens/Source/shotwell/src/MediaPage.vala" g_object_ref_sink (_tmp16_); #line 154 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (self->priv->slider); #line 154 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->slider = _tmp16_; #line 155 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = self->priv->slider; #line 155 "/home/jens/Source/shotwell/src/MediaPage.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _media_page_zoom_slider_assembly_on_slider_changed_gtk_range_value_changed, self, 0); #line 156 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = self->priv->slider; #line 156 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_scale_set_draw_value (_tmp18_, FALSE); #line 157 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = self->priv->slider; #line 157 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget), 200, -1); #line 158 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = self->priv->slider; #line 158 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = _ ("Adjust the size of the thumbnails"); #line 158 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), _tmp21_); #line 160 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = self->priv->slider; #line 160 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_box_pack_start (zoom_group, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); #line 162 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = resources_load_icon (RESOURCES_ICON_ZOOM_IN, RESOURCES_ICON_ZOOM_SCALE); #line 162 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = _tmp23_; #line 162 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp25_ = (GtkImage*) gtk_image_new_from_pixbuf (_tmp24_); #line 162 "/home/jens/Source/shotwell/src/MediaPage.vala" g_object_ref_sink (_tmp25_); #line 162 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp26_ = _tmp25_; #line 162 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp24_); #line 162 "/home/jens/Source/shotwell/src/MediaPage.vala" zoom_in = _tmp26_; #line 164 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp27_ = (GtkEventBox*) gtk_event_box_new (); #line 164 "/home/jens/Source/shotwell/src/MediaPage.vala" g_object_ref_sink (_tmp27_); #line 164 "/home/jens/Source/shotwell/src/MediaPage.vala" zoom_in_box = _tmp27_; #line 165 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_event_box_set_above_child (zoom_in_box, TRUE); #line 166 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_event_box_set_visible_window (zoom_in_box, FALSE); #line 167 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (zoom_in_box, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (zoom_in, gtk_widget_get_type (), GtkWidget)); #line 168 "/home/jens/Source/shotwell/src/MediaPage.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (zoom_in_box, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _media_page_zoom_slider_assembly_on_zoom_in_pressed_gtk_widget_button_press_event, self, 0); #line 170 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_box_pack_start (zoom_group, G_TYPE_CHECK_INSTANCE_CAST (zoom_in_box, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); #line 172 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (zoom_group, gtk_widget_get_type (), GtkWidget)); #line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (zoom_in_box); #line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (zoom_in); #line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (zoom_out_box); #line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (zoom_out); #line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (zoom_group); #line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" return self; #line 8082 "MediaPage.c" } MediaPageZoomSliderAssembly* media_page_zoom_slider_assembly_new (void) { #line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" return media_page_zoom_slider_assembly_construct (MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY); #line 8089 "MediaPage.c" } gdouble media_page_zoom_slider_assembly_scale_to_slider (gint value) { gdouble result = 0.0; gint _tmp0_ = 0; gint _tmp1_ = 0; gint _tmp2_ = 0; gint _tmp3_ = 0; gint _tmp4_ = 0; gint _tmp5_ = 0; gint _tmp6_ = 0; gint _tmp7_ = 0; gint _tmp8_ = 0; #line 176 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = value; #line 176 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = thumbnail_get_MIN_SCALE (); #line 176 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; #line 176 "/home/jens/Source/shotwell/src/MediaPage.vala" _vala_assert (_tmp0_ >= _tmp2_, "value >= Thumbnail.MIN_SCALE"); #line 177 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = value; #line 177 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = thumbnail_get_MAX_SCALE (); #line 177 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; #line 177 "/home/jens/Source/shotwell/src/MediaPage.vala" _vala_assert (_tmp3_ <= _tmp5_, "value <= Thumbnail.MAX_SCALE"); #line 179 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = value; #line 179 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = thumbnail_get_MIN_SCALE (); #line 179 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _tmp7_; #line 179 "/home/jens/Source/shotwell/src/MediaPage.vala" result = (gdouble) ((_tmp6_ - _tmp8_) / MEDIA_PAGE_SLIDER_STEPPING); #line 179 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 8130 "MediaPage.c" } gint media_page_zoom_slider_assembly_slider_to_scale (gdouble value) { gint result = 0; gint res = 0; gdouble _tmp0_ = 0.0; gint _tmp1_ = 0; gint _tmp2_ = 0; gint _tmp3_ = 0; gint _tmp4_ = 0; gint _tmp5_ = 0; gint _tmp6_ = 0; #line 183 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = value; #line 183 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = thumbnail_get_MIN_SCALE (); #line 183 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; #line 183 "/home/jens/Source/shotwell/src/MediaPage.vala" res = ((gint) (_tmp0_ * MEDIA_PAGE_SLIDER_STEPPING)) + _tmp2_; #line 185 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = thumbnail_get_MIN_SCALE (); #line 185 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _tmp3_; #line 185 "/home/jens/Source/shotwell/src/MediaPage.vala" _vala_assert (res >= _tmp4_, "res >= Thumbnail.MIN_SCALE"); #line 186 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = thumbnail_get_MAX_SCALE (); #line 186 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_; #line 186 "/home/jens/Source/shotwell/src/MediaPage.vala" _vala_assert (res <= _tmp6_, "res <= Thumbnail.MAX_SCALE"); #line 188 "/home/jens/Source/shotwell/src/MediaPage.vala" result = res; #line 188 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 8168 "MediaPage.c" } static gboolean media_page_zoom_slider_assembly_on_zoom_out_pressed (MediaPageZoomSliderAssembly* self, GdkEventButton* event) { gboolean result = FALSE; #line 191 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self), FALSE); #line 191 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (event != NULL, FALSE); #line 192 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_zoom_slider_assembly_snap_to_min (self); #line 193 "/home/jens/Source/shotwell/src/MediaPage.vala" result = TRUE; #line 193 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 8184 "MediaPage.c" } static gboolean media_page_zoom_slider_assembly_on_zoom_in_pressed (MediaPageZoomSliderAssembly* self, GdkEventButton* event) { gboolean result = FALSE; #line 196 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self), FALSE); #line 196 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (event != NULL, FALSE); #line 197 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_zoom_slider_assembly_snap_to_max (self); #line 198 "/home/jens/Source/shotwell/src/MediaPage.vala" result = TRUE; #line 198 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 8200 "MediaPage.c" } static void media_page_zoom_slider_assembly_on_slider_changed (MediaPageZoomSliderAssembly* self) { #line 201 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self)); #line 202 "/home/jens/Source/shotwell/src/MediaPage.vala" g_signal_emit_by_name (self, "zoom-changed"); #line 8209 "MediaPage.c" } void media_page_zoom_slider_assembly_snap_to_min (MediaPageZoomSliderAssembly* self) { GtkScale* _tmp0_ = NULL; gint _tmp1_ = 0; gint _tmp2_ = 0; gdouble _tmp3_ = 0.0; #line 205 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self)); #line 206 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->slider; #line 206 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = thumbnail_get_MIN_SCALE (); #line 206 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; #line 206 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = media_page_zoom_slider_assembly_scale_to_slider (_tmp2_); #line 206 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), _tmp3_); #line 8230 "MediaPage.c" } void media_page_zoom_slider_assembly_snap_to_max (MediaPageZoomSliderAssembly* self) { GtkScale* _tmp0_ = NULL; gint _tmp1_ = 0; gint _tmp2_ = 0; gdouble _tmp3_ = 0.0; #line 209 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self)); #line 210 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->slider; #line 210 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = thumbnail_get_MAX_SCALE (); #line 210 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; #line 210 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = media_page_zoom_slider_assembly_scale_to_slider (_tmp2_); #line 210 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), _tmp3_); #line 8251 "MediaPage.c" } void media_page_zoom_slider_assembly_increase_step (MediaPageZoomSliderAssembly* self) { gint new_scale = 0; gint _tmp0_ = 0; gint _tmp1_ = 0; gint _tmp2_ = 0; gint _tmp3_ = 0; GtkScale* _tmp4_ = NULL; gint _tmp5_ = 0; gdouble _tmp6_ = 0.0; #line 213 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self)); #line 214 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = media_page_zoom_slider_assembly_get_scale (self); #line 214 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = media_page_compute_zoom_scale_increase (_tmp0_); #line 214 "/home/jens/Source/shotwell/src/MediaPage.vala" new_scale = _tmp1_; #line 216 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_page_zoom_slider_assembly_get_scale (self); #line 216 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = new_scale; #line 216 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp2_ == _tmp3_) { #line 217 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 8280 "MediaPage.c" } #line 219 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = self->priv->slider; #line 219 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = new_scale; #line 219 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = media_page_zoom_slider_assembly_scale_to_slider (_tmp5_); #line 219 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_range_get_type (), GtkRange), _tmp6_); #line 8290 "MediaPage.c" } void media_page_zoom_slider_assembly_decrease_step (MediaPageZoomSliderAssembly* self) { gint new_scale = 0; gint _tmp0_ = 0; gint _tmp1_ = 0; gint _tmp2_ = 0; gint _tmp3_ = 0; GtkScale* _tmp4_ = NULL; gint _tmp5_ = 0; gdouble _tmp6_ = 0.0; #line 222 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self)); #line 223 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = media_page_zoom_slider_assembly_get_scale (self); #line 223 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = media_page_compute_zoom_scale_decrease (_tmp0_); #line 223 "/home/jens/Source/shotwell/src/MediaPage.vala" new_scale = _tmp1_; #line 225 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_page_zoom_slider_assembly_get_scale (self); #line 225 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = new_scale; #line 225 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp2_ == _tmp3_) { #line 226 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 8319 "MediaPage.c" } #line 228 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = self->priv->slider; #line 228 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = new_scale; #line 228 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = media_page_zoom_slider_assembly_scale_to_slider (_tmp5_); #line 228 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_range_get_type (), GtkRange), _tmp6_); #line 8329 "MediaPage.c" } gint media_page_zoom_slider_assembly_get_scale (MediaPageZoomSliderAssembly* self) { gint result = 0; GtkScale* _tmp0_ = NULL; gdouble _tmp1_ = 0.0; gint _tmp2_ = 0; #line 231 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self), 0); #line 232 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->slider; #line 232 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange)); #line 232 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_page_zoom_slider_assembly_slider_to_scale (_tmp1_); #line 232 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp2_; #line 232 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; #line 8350 "MediaPage.c" } void media_page_zoom_slider_assembly_set_scale (MediaPageZoomSliderAssembly* self, gint scale) { gint _tmp0_ = 0; gint _tmp1_ = 0; GtkScale* _tmp2_ = NULL; gint _tmp3_ = 0; gdouble _tmp4_ = 0.0; #line 235 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self)); #line 236 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = media_page_zoom_slider_assembly_get_scale (self); #line 236 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = scale; #line 236 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_ == _tmp1_) { #line 237 "/home/jens/Source/shotwell/src/MediaPage.vala" return; #line 8370 "MediaPage.c" } #line 239 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = self->priv->slider; #line 239 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = scale; #line 239 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = media_page_zoom_slider_assembly_scale_to_slider (_tmp3_); #line 239 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_range_get_type (), GtkRange), _tmp4_); #line 8380 "MediaPage.c" } static void media_page_zoom_slider_assembly_class_init (MediaPageZoomSliderAssemblyClass * klass) { #line 129 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_zoom_slider_assembly_parent_class = g_type_class_peek_parent (klass); #line 129 "/home/jens/Source/shotwell/src/MediaPage.vala" g_type_class_add_private (klass, sizeof (MediaPageZoomSliderAssemblyPrivate)); #line 129 "/home/jens/Source/shotwell/src/MediaPage.vala" G_OBJECT_CLASS (klass)->finalize = media_page_zoom_slider_assembly_finalize; #line 129 "/home/jens/Source/shotwell/src/MediaPage.vala" g_signal_new ("zoom_changed", MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); #line 8393 "MediaPage.c" } static void media_page_zoom_slider_assembly_instance_init (MediaPageZoomSliderAssembly * self) { #line 129 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv = MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_GET_PRIVATE (self); #line 8400 "MediaPage.c" } static void media_page_zoom_slider_assembly_finalize (GObject* obj) { MediaPageZoomSliderAssembly * self; #line 129 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssembly); #line 130 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (self->priv->slider); #line 131 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (self->priv->adjustment); #line 129 "/home/jens/Source/shotwell/src/MediaPage.vala" G_OBJECT_CLASS (media_page_zoom_slider_assembly_parent_class)->finalize (obj); #line 8414 "MediaPage.c" } GType media_page_zoom_slider_assembly_get_type (void) { static volatile gsize media_page_zoom_slider_assembly_type_id__volatile = 0; if (g_once_init_enter (&media_page_zoom_slider_assembly_type_id__volatile)) { static const GTypeInfo g_define_type_info = { sizeof (MediaPageZoomSliderAssemblyClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_page_zoom_slider_assembly_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaPageZoomSliderAssembly), 0, (GInstanceInitFunc) media_page_zoom_slider_assembly_instance_init, NULL }; GType media_page_zoom_slider_assembly_type_id; media_page_zoom_slider_assembly_type_id = g_type_register_static (gtk_tool_item_get_type (), "MediaPageZoomSliderAssembly", &g_define_type_info, 0); g_once_init_leave (&media_page_zoom_slider_assembly_type_id__volatile, media_page_zoom_slider_assembly_type_id); } return media_page_zoom_slider_assembly_type_id__volatile; } static void media_page_class_init (MediaPageClass * klass) { #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_parent_class = g_type_class_peek_parent (klass); #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" g_type_class_add_private (klass, sizeof (MediaPagePrivate)); #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((PageClass *) klass)->init_collect_ui_filenames = media_page_real_init_collect_ui_filenames; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((PageClass *) klass)->add_actions = media_page_real_add_actions; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((PageClass *) klass)->remove_actions = media_page_real_remove_actions; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((PageClass *) klass)->update_actions = media_page_real_update_actions; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((CheckerboardPageClass *) klass)->get_view_tracker = media_page_real_get_view_tracker; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((PageClass *) klass)->on_mousewheel_up = media_page_real_on_mousewheel_up; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((PageClass *) klass)->on_mousewheel_down = media_page_real_on_mousewheel_down; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((PageClass *) klass)->on_app_key_pressed = media_page_real_on_app_key_pressed; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((PageClass *) klass)->switched_to = media_page_real_switched_to; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((PageClass *) klass)->switching_from = media_page_real_switching_from; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_zoom_changed = media_page_real_on_zoom_changed; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_export = media_page_real_on_export; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_increase_size = media_page_real_on_increase_size; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_decrease_size = media_page_real_on_decrease_size; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_increase_rating = media_page_real_on_increase_rating; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_decrease_rating = media_page_real_on_decrease_rating; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_set_rating = media_page_real_on_set_rating; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_rate_rejected = media_page_real_on_rate_rejected; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_rate_unrated = media_page_real_on_rate_unrated; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_rate_one = media_page_real_on_rate_one; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_rate_two = media_page_real_on_rate_two; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_rate_three = media_page_real_on_rate_three; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_rate_four = media_page_real_on_rate_four; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_rate_five = media_page_real_on_rate_five; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_move_to_trash = media_page_real_on_move_to_trash; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_edit_title = media_page_real_on_edit_title; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_edit_comment = media_page_real_on_edit_comment; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_display_titles = media_page_real_on_display_titles; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_display_comments = media_page_real_on_display_comments; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_display_ratings = media_page_real_on_display_ratings; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_display_tags = media_page_real_on_display_tags; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->get_config_photos_sort = media_page_real_get_config_photos_sort; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->set_config_photos_sort = media_page_real_set_config_photos_sort; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->on_sort_changed = media_page_real_on_sort_changed; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->developer_changed = media_page_real_developer_changed; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((CheckerboardPageClass *) klass)->set_display_titles = media_page_real_set_display_titles; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((CheckerboardPageClass *) klass)->set_display_comments = media_page_real_set_display_comments; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((GtkWidgetClass *) klass)->destroy = media_page_real_destroy; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((MediaPageClass *) klass)->create_thumbnail = media_page_real_create_thumbnail; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" G_OBJECT_CLASS (klass)->finalize = media_page_finalize; #line 8515 "MediaPage.c" } static void media_page_instance_init (MediaPage * self) { #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv = MEDIA_PAGE_GET_PRIVATE (self); #line 243 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->connected_slider = NULL; #line 244 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->dnd_handler = NULL; #line 8526 "MediaPage.c" } static void media_page_finalize (GObject* obj) { MediaPage * self; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_PAGE, MediaPage); #line 243 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (self->priv->connected_slider); #line 244 "/home/jens/Source/shotwell/src/MediaPage.vala" _drag_and_drop_handler_unref0 (self->priv->dnd_handler); #line 245 "/home/jens/Source/shotwell/src/MediaPage.vala" _core_tracker_unref0 (self->priv->tracker); #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" G_OBJECT_CLASS (media_page_parent_class)->finalize (obj); #line 8542 "MediaPage.c" } GType media_page_get_type (void) { static volatile gsize media_page_type_id__volatile = 0; if (g_once_init_enter (&media_page_type_id__volatile)) { static const GTypeInfo g_define_type_info = { sizeof (MediaPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaPage), 0, (GInstanceInitFunc) media_page_instance_init, NULL }; GType media_page_type_id; media_page_type_id = g_type_register_static (TYPE_CHECKERBOARD_PAGE, "MediaPage", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); g_once_init_leave (&media_page_type_id__volatile, media_page_type_id); } return media_page_type_id__volatile; } static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) { if ((array != NULL) && (destroy_func != NULL)) { int i; for (i = 0; i < array_length; i = i + 1) { if (((gpointer*) array)[i] != NULL) { destroy_func (((gpointer*) array)[i]); } } } } static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) { _vala_array_destroy (array, array_length, destroy_func); g_free (array); }