From ab841afa5cb39058d9ab2cebb67cfe6369443f6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 25 Jun 2018 20:55:59 +0200 Subject: New upstream version 0.28.3 --- src/library/TrashSidebarEntry.c | 294 ++++++++++++++++++++++++---------------- 1 file changed, 174 insertions(+), 120 deletions(-) (limited to 'src/library/TrashSidebarEntry.c') diff --git a/src/library/TrashSidebarEntry.c b/src/library/TrashSidebarEntry.c index 9b8a030..796281b 100644 --- a/src/library/TrashSidebarEntry.c +++ b/src/library/TrashSidebarEntry.c @@ -1,4 +1,4 @@ -/* TrashSidebarEntry.c generated by valac 0.36.6, the Vala compiler +/* TrashSidebarEntry.c generated by valac 0.40.4, the Vala compiler * generated from TrashSidebarEntry.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -7,6 +7,7 @@ * (version 2.1 or later). See the COPYING file in this distribution. */ + #include #include #include @@ -138,6 +139,11 @@ typedef struct _MediaSourceClass MediaSourceClass; typedef struct _LibraryTrashSidebarEntry LibraryTrashSidebarEntry; typedef struct _LibraryTrashSidebarEntryClass LibraryTrashSidebarEntryClass; typedef struct _LibraryTrashSidebarEntryPrivate LibraryTrashSidebarEntryPrivate; +enum { + LIBRARY_TRASH_SIDEBAR_ENTRY_0_PROPERTY, + LIBRARY_TRASH_SIDEBAR_ENTRY_NUM_PROPERTIES +}; +static GParamSpec* library_trash_sidebar_entry_properties[LIBRARY_TRASH_SIDEBAR_ENTRY_NUM_PROPERTIES]; #define TYPE_DATA_COLLECTION (data_collection_get_type ()) #define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) @@ -325,14 +331,17 @@ GType thumbnail_source_get_type (void) G_GNUC_CONST; GType media_source_get_type (void) G_GNUC_CONST; GType sidebar_internal_drop_target_entry_get_type (void) G_GNUC_CONST; GType library_trash_sidebar_entry_get_type (void) G_GNUC_CONST; -enum { - LIBRARY_TRASH_SIDEBAR_ENTRY_DUMMY_PROPERTY -}; 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); +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 source_collection_get_type (void) G_GNUC_CONST; @@ -340,15 +349,24 @@ GType database_source_collection_get_type (void) G_GNUC_CONST; GType media_source_collection_get_type (void) G_GNUC_CONST; gpointer media_collection_registry_ref (gpointer instance); void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); -void value_set_media_collection_registry (GValue* value, gpointer v_object); -void value_take_media_collection_registry (GValue* value, gpointer v_object); +GParamSpec* param_spec_media_collection_registry (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags); +void value_set_media_collection_registry (GValue* value, + gpointer v_object); +void value_take_media_collection_registry (GValue* value, + gpointer v_object); gpointer value_get_media_collection_registry (const GValue* value); GType media_collection_registry_get_type (void) G_GNUC_CONST; MediaCollectionRegistry* media_collection_registry_get_instance (void); GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self); static void library_trash_sidebar_entry_on_trashcan_contents_altered (LibraryTrashSidebarEntry* self); -static void _library_trash_sidebar_entry_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender, GeeCollection* added, GeeCollection* removed, gpointer self); +static void _library_trash_sidebar_entry_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender, + GeeCollection* added, + GeeCollection* removed, + gpointer self); LibraryTrashSidebarEntry* library_trash_sidebar_entry_new (void); LibraryTrashSidebarEntry* library_trash_sidebar_entry_construct (GType object_type); SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type); @@ -361,22 +379,34 @@ static gchar* library_trash_sidebar_entry_get_current_icon (void); gint media_source_collection_get_trashcan_count (MediaSourceCollection* self); #define RESOURCES_ICON_TRASH_FULL "user-trash-full" #define RESOURCES_ICON_TRASH_EMPTY "user-trash" -static gboolean library_trash_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base, GeeList* media); +static gboolean library_trash_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base, + GeeList* media); 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); +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* app_window_get_command_manager (void); GType command_get_type (void) G_GNUC_CONST; -void command_manager_execute (CommandManager* self, Command* command); -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); +void command_manager_execute (CommandManager* self, + Command* command); +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 page_command_get_type (void) G_GNUC_CONST; GType trash_untrash_photos_command_get_type (void) G_GNUC_CONST; -static gboolean library_trash_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, GtkSelectionData* data); +static gboolean library_trash_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, + GtkSelectionData* data); static Page* library_trash_sidebar_entry_real_create_page (SidebarSimplePageEntry* base); TrashPage* trash_page_new (void); TrashPage* trash_page_construct (GType object_type); @@ -385,18 +415,25 @@ GType trash_page_get_type (void) G_GNUC_CONST; static void library_trash_sidebar_entry_finalize (GObject * obj); -static void _library_trash_sidebar_entry_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender, GeeCollection* added, GeeCollection* removed, gpointer self) { +static void +_library_trash_sidebar_entry_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender, + GeeCollection* added, + GeeCollection* removed, + gpointer self) +{ #line 16 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" library_trash_sidebar_entry_on_trashcan_contents_altered ((LibraryTrashSidebarEntry*) self); -#line 392 "TrashSidebarEntry.c" +#line 427 "TrashSidebarEntry.c" } -LibraryTrashSidebarEntry* library_trash_sidebar_entry_construct (GType object_type) { +LibraryTrashSidebarEntry* +library_trash_sidebar_entry_construct (GType object_type) +{ LibraryTrashSidebarEntry * self = NULL; #line 9 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" self = (LibraryTrashSidebarEntry*) sidebar_simple_page_entry_construct (object_type); -#line 400 "TrashSidebarEntry.c" +#line 437 "TrashSidebarEntry.c" { GeeIterator* _media_sources_it = NULL; MediaCollectionRegistry* _tmp0_; @@ -425,63 +462,68 @@ LibraryTrashSidebarEntry* library_trash_sidebar_entry_construct (GType object_ty _media_sources_it = _tmp5_; #line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" while (TRUE) { -#line 429 "TrashSidebarEntry.c" +#line 466 "TrashSidebarEntry.c" GeeIterator* _tmp6_; - gboolean _tmp7_; MediaSourceCollection* media_sources = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; - MediaSourceCollection* _tmp10_; + GeeIterator* _tmp7_; + gpointer _tmp8_; + MediaSourceCollection* _tmp9_; #line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" _tmp6_ = _media_sources_it; #line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp7_ = gee_iterator_next (_tmp6_); -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - if (!_tmp7_) { + if (!gee_iterator_next (_tmp6_)) { #line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" break; -#line 444 "TrashSidebarEntry.c" +#line 478 "TrashSidebarEntry.c" } #line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp8_ = _media_sources_it; + _tmp7_ = _media_sources_it; #line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp9_ = gee_iterator_get (_tmp8_); + _tmp8_ = gee_iterator_get (_tmp7_); #line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - media_sources = (MediaSourceCollection*) _tmp9_; + media_sources = (MediaSourceCollection*) _tmp8_; #line 11 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp10_ = media_sources; + _tmp9_ = media_sources; #line 11 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - g_signal_connect_object (_tmp10_, "trashcan-contents-altered", (GCallback) _library_trash_sidebar_entry_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self, 0); + g_signal_connect_object (_tmp9_, "trashcan-contents-altered", (GCallback) _library_trash_sidebar_entry_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self, 0); #line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" _data_collection_unref0 (media_sources); -#line 458 "TrashSidebarEntry.c" +#line 492 "TrashSidebarEntry.c" } #line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" _g_object_unref0 (_media_sources_it); -#line 462 "TrashSidebarEntry.c" +#line 496 "TrashSidebarEntry.c" } #line 9 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" return self; -#line 466 "TrashSidebarEntry.c" +#line 500 "TrashSidebarEntry.c" } -LibraryTrashSidebarEntry* library_trash_sidebar_entry_new (void) { +LibraryTrashSidebarEntry* +library_trash_sidebar_entry_new (void) +{ #line 9 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" return library_trash_sidebar_entry_construct (LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY); -#line 473 "TrashSidebarEntry.c" +#line 509 "TrashSidebarEntry.c" } -void library_trash_sidebar_entry_init (void) { +void +library_trash_sidebar_entry_init (void) +{ } -void library_trash_sidebar_entry_terminate (void) { +void +library_trash_sidebar_entry_terminate (void) +{ } -static gchar* library_trash_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) { +static gchar* +library_trash_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) +{ LibraryTrashSidebarEntry * self; gchar* result = NULL; gchar* _tmp0_; @@ -493,11 +535,13 @@ static gchar* library_trash_sidebar_entry_real_get_sidebar_name (SidebarSimplePa result = _tmp0_; #line 26 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" return result; -#line 497 "TrashSidebarEntry.c" +#line 539 "TrashSidebarEntry.c" } -static gchar* library_trash_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) { +static gchar* +library_trash_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) +{ LibraryTrashSidebarEntry * self; gchar* result = NULL; gchar* _tmp0_; @@ -509,13 +553,15 @@ static gchar* library_trash_sidebar_entry_real_get_sidebar_icon (SidebarSimplePa result = _tmp0_; #line 30 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" return result; -#line 513 "TrashSidebarEntry.c" +#line 557 "TrashSidebarEntry.c" } -static gchar* library_trash_sidebar_entry_get_current_icon (void) { +static gchar* +library_trash_sidebar_entry_get_current_icon (void) +{ gchar* result = NULL; - gchar* _tmp13_; + gchar* _tmp11_; { GeeIterator* _media_sources_it = NULL; MediaCollectionRegistry* _tmp0_; @@ -544,76 +590,72 @@ static gchar* library_trash_sidebar_entry_get_current_icon (void) { _media_sources_it = _tmp5_; #line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" while (TRUE) { -#line 548 "TrashSidebarEntry.c" +#line 594 "TrashSidebarEntry.c" GeeIterator* _tmp6_; - gboolean _tmp7_; MediaSourceCollection* media_sources = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; - MediaSourceCollection* _tmp10_; - gint _tmp11_; + GeeIterator* _tmp7_; + gpointer _tmp8_; + MediaSourceCollection* _tmp9_; #line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" _tmp6_ = _media_sources_it; #line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp7_ = gee_iterator_next (_tmp6_); -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - if (!_tmp7_) { + if (!gee_iterator_next (_tmp6_)) { #line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" break; -#line 564 "TrashSidebarEntry.c" +#line 606 "TrashSidebarEntry.c" } #line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp8_ = _media_sources_it; + _tmp7_ = _media_sources_it; #line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp9_ = gee_iterator_get (_tmp8_); + _tmp8_ = gee_iterator_get (_tmp7_); #line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - media_sources = (MediaSourceCollection*) _tmp9_; -#line 35 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp10_ = media_sources; + media_sources = (MediaSourceCollection*) _tmp8_; #line 35 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp11_ = media_source_collection_get_trashcan_count (_tmp10_); + _tmp9_ = media_sources; #line 35 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - if (_tmp11_ > 0) { -#line 578 "TrashSidebarEntry.c" - gchar* _tmp12_; + if (media_source_collection_get_trashcan_count (_tmp9_) > 0) { +#line 618 "TrashSidebarEntry.c" + gchar* _tmp10_; #line 36 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp12_ = g_strdup (RESOURCES_ICON_TRASH_FULL); + _tmp10_ = g_strdup (RESOURCES_ICON_TRASH_FULL); #line 36 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - result = _tmp12_; + result = _tmp10_; #line 36 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" _data_collection_unref0 (media_sources); #line 36 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" _g_object_unref0 (_media_sources_it); #line 36 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" return result; -#line 590 "TrashSidebarEntry.c" +#line 630 "TrashSidebarEntry.c" } #line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" _data_collection_unref0 (media_sources); -#line 594 "TrashSidebarEntry.c" +#line 634 "TrashSidebarEntry.c" } #line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" _g_object_unref0 (_media_sources_it); -#line 598 "TrashSidebarEntry.c" +#line 638 "TrashSidebarEntry.c" } #line 39 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp13_ = g_strdup (RESOURCES_ICON_TRASH_EMPTY); + _tmp11_ = g_strdup (RESOURCES_ICON_TRASH_EMPTY); #line 39 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - result = _tmp13_; + result = _tmp11_; #line 39 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" return result; -#line 606 "TrashSidebarEntry.c" +#line 646 "TrashSidebarEntry.c" } -static gboolean library_trash_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base, GeeList* media) { +static gboolean +library_trash_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base, + GeeList* media) +{ LibraryTrashSidebarEntry * self; gboolean result = FALSE; CommandManager* _tmp0_; CommandManager* _tmp1_; - GeeList* _tmp2_; + TrashUntrashPhotosCommand* _tmp2_; TrashUntrashPhotosCommand* _tmp3_; - TrashUntrashPhotosCommand* _tmp4_; #line 42 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry); #line 42 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" @@ -623,26 +665,27 @@ static gboolean library_trash_sidebar_entry_real_internal_drop_received (Sidebar #line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" _tmp1_ = _tmp0_; #line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp2_ = media; + _tmp2_ = trash_untrash_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_COLLECTION, GeeCollection), TRUE); #line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp3_ = trash_untrash_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), TRUE); + _tmp3_ = _tmp2_; #line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp4_ = _tmp3_; + command_manager_execute (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_COMMAND, Command)); #line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - command_manager_execute (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_COMMAND, Command)); -#line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _g_object_unref0 (_tmp4_); + _g_object_unref0 (_tmp3_); #line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" _command_manager_unref0 (_tmp1_); #line 45 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" result = TRUE; #line 45 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" return result; -#line 642 "TrashSidebarEntry.c" +#line 682 "TrashSidebarEntry.c" } -static gboolean library_trash_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, GtkSelectionData* data) { +static gboolean +library_trash_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, + GtkSelectionData* data) +{ LibraryTrashSidebarEntry * self; gboolean result = FALSE; #line 48 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" @@ -653,11 +696,13 @@ static gboolean library_trash_sidebar_entry_real_internal_drop_received_arbitrar result = FALSE; #line 49 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" return result; -#line 657 "TrashSidebarEntry.c" +#line 700 "TrashSidebarEntry.c" } -static Page* library_trash_sidebar_entry_real_create_page (SidebarSimplePageEntry* base) { +static Page* +library_trash_sidebar_entry_real_create_page (SidebarSimplePageEntry* base) +{ LibraryTrashSidebarEntry * self; Page* result = NULL; TrashPage* _tmp0_; @@ -671,11 +716,13 @@ static Page* library_trash_sidebar_entry_real_create_page (SidebarSimplePageEntr result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page); #line 53 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" return result; -#line 675 "TrashSidebarEntry.c" +#line 720 "TrashSidebarEntry.c" } -static void library_trash_sidebar_entry_on_trashcan_contents_altered (LibraryTrashSidebarEntry* self) { +static void +library_trash_sidebar_entry_on_trashcan_contents_altered (LibraryTrashSidebarEntry* self) +{ gchar* _tmp0_; gchar* _tmp1_; #line 56 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" @@ -688,11 +735,13 @@ static void library_trash_sidebar_entry_on_trashcan_contents_altered (LibraryTra g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_ENTRY, SidebarEntry), "sidebar-icon-changed", _tmp1_); #line 57 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" _g_free0 (_tmp1_); -#line 692 "TrashSidebarEntry.c" +#line 739 "TrashSidebarEntry.c" } -static void library_trash_sidebar_entry_class_init (LibraryTrashSidebarEntryClass * klass) { +static void +library_trash_sidebar_entry_class_init (LibraryTrashSidebarEntryClass * klass) +{ #line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" library_trash_sidebar_entry_parent_class = g_type_class_peek_parent (klass); #line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" @@ -703,30 +752,36 @@ static void library_trash_sidebar_entry_class_init (LibraryTrashSidebarEntryClas ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) library_trash_sidebar_entry_real_create_page; #line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" G_OBJECT_CLASS (klass)->finalize = library_trash_sidebar_entry_finalize; -#line 707 "TrashSidebarEntry.c" +#line 756 "TrashSidebarEntry.c" } -static void library_trash_sidebar_entry_sidebar_internal_drop_target_entry_interface_init (SidebarInternalDropTargetEntryIface * iface) { +static void +library_trash_sidebar_entry_sidebar_internal_drop_target_entry_interface_init (SidebarInternalDropTargetEntryIface * iface) +{ #line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" library_trash_sidebar_entry_sidebar_internal_drop_target_entry_parent_iface = g_type_interface_peek_parent (iface); #line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" iface->internal_drop_received = (gboolean (*) (SidebarInternalDropTargetEntry *, GeeList*)) library_trash_sidebar_entry_real_internal_drop_received; #line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" iface->internal_drop_received_arbitrary = (gboolean (*) (SidebarInternalDropTargetEntry *, GtkSelectionData*)) library_trash_sidebar_entry_real_internal_drop_received_arbitrary; -#line 718 "TrashSidebarEntry.c" +#line 769 "TrashSidebarEntry.c" } -static void library_trash_sidebar_entry_instance_init (LibraryTrashSidebarEntry * self) { +static void +library_trash_sidebar_entry_instance_init (LibraryTrashSidebarEntry * self) +{ } -static void library_trash_sidebar_entry_finalize (GObject * obj) { +static void +library_trash_sidebar_entry_finalize (GObject * obj) +{ LibraryTrashSidebarEntry * self; #line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry); -#line 730 "TrashSidebarEntry.c" +#line 785 "TrashSidebarEntry.c" { GeeIterator* _media_sources_it = NULL; MediaCollectionRegistry* _tmp0_; @@ -755,51 +810,50 @@ static void library_trash_sidebar_entry_finalize (GObject * obj) { _media_sources_it = _tmp5_; #line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" while (TRUE) { -#line 759 "TrashSidebarEntry.c" +#line 814 "TrashSidebarEntry.c" GeeIterator* _tmp6_; - gboolean _tmp7_; MediaSourceCollection* media_sources = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; - MediaSourceCollection* _tmp10_; - guint _tmp11_; + GeeIterator* _tmp7_; + gpointer _tmp8_; + MediaSourceCollection* _tmp9_; + guint _tmp10_; #line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" _tmp6_ = _media_sources_it; #line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp7_ = gee_iterator_next (_tmp6_); -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - if (!_tmp7_) { + if (!gee_iterator_next (_tmp6_)) { #line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" break; -#line 775 "TrashSidebarEntry.c" +#line 827 "TrashSidebarEntry.c" } #line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp8_ = _media_sources_it; + _tmp7_ = _media_sources_it; #line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp9_ = gee_iterator_get (_tmp8_); + _tmp8_ = gee_iterator_get (_tmp7_); #line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - media_sources = (MediaSourceCollection*) _tmp9_; + media_sources = (MediaSourceCollection*) _tmp8_; #line 16 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp10_ = media_sources; + _tmp9_ = media_sources; #line 16 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - g_signal_parse_name ("trashcan-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp11_, NULL, FALSE); + g_signal_parse_name ("trashcan-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp10_, NULL, FALSE); #line 16 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - g_signal_handlers_disconnect_matched (_tmp10_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _library_trash_sidebar_entry_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self); + g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _library_trash_sidebar_entry_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self); #line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" _data_collection_unref0 (media_sources); -#line 791 "TrashSidebarEntry.c" +#line 843 "TrashSidebarEntry.c" } #line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" _g_object_unref0 (_media_sources_it); -#line 795 "TrashSidebarEntry.c" +#line 847 "TrashSidebarEntry.c" } #line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" G_OBJECT_CLASS (library_trash_sidebar_entry_parent_class)->finalize (obj); -#line 799 "TrashSidebarEntry.c" +#line 851 "TrashSidebarEntry.c" } -GType library_trash_sidebar_entry_get_type (void) { +GType +library_trash_sidebar_entry_get_type (void) +{ static volatile gsize library_trash_sidebar_entry_type_id__volatile = 0; if (g_once_init_enter (&library_trash_sidebar_entry_type_id__volatile)) { static const GTypeInfo g_define_type_info = { sizeof (LibraryTrashSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_trash_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryTrashSidebarEntry), 0, (GInstanceInitFunc) library_trash_sidebar_entry_instance_init, NULL }; -- cgit v1.2.3