summaryrefslogtreecommitdiff
path: root/src/events/EventPage.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 14:35:32 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 14:35:32 +0200
commite230b6f78546827521107be23797048482c8b193 (patch)
tree948c1e77382c484819ea399bba4edcdc19cc6bf0 /src/events/EventPage.c
parent211da5fc3048ca2b6ccee2166b0aaaade55cb84f (diff)
parent49120f48474fc8fdc2448c75d961bc238213cfac (diff)
Update upstream source from tag 'upstream/0.28.2'
Update to upstream version '0.28.2' with Debian dir 811236a8e9a1308bf427065dcb6270419ff4f965
Diffstat (limited to 'src/events/EventPage.c')
-rw-r--r--src/events/EventPage.c99
1 files changed, 49 insertions, 50 deletions
diff --git a/src/events/EventPage.c b/src/events/EventPage.c
index 7b747fc..d701b8e 100644
--- a/src/events/EventPage.c
+++ b/src/events/EventPage.c
@@ -838,7 +838,6 @@ static void event_page_real_init_actions (Page* base, gint selected_count, gint
void page_init_actions (Page* self, gint selected_count, gint count);
static void event_page_real_update_actions (Page* base, gint selected_count, gint count);
void page_set_action_sensitive (Page* self, const gchar* name, gboolean sensitive);
-void page_set_action_visible (Page* self, const gchar* name, gboolean visible);
void page_update_actions (Page* self, gint selected_count, gint count);
static void event_page_real_get_config_photos_sort (MediaPage* base, gboolean* sort_order, gint* sort_by);
GType configuration_facade_get_type (void) G_GNUC_CONST;
@@ -937,35 +936,35 @@ static const GActionEntry EVENT_PAGE_entries[3] = {{"MakePrimary", _event_page_o
static void _event_page_on_events_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) {
#line 40 "/home/jens/Source/shotwell/src/events/EventPage.vala"
event_page_on_events_altered ((EventPage*) self, items);
-#line 941 "EventPage.c"
+#line 940 "EventPage.c"
}
static void _event_page_on_make_primary_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 50 "/home/jens/Source/shotwell/src/events/EventPage.vala"
event_page_on_make_primary ((EventPage*) self);
-#line 948 "EventPage.c"
+#line 947 "EventPage.c"
}
static void _event_page_on_rename_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 50 "/home/jens/Source/shotwell/src/events/EventPage.vala"
event_page_on_rename ((EventPage*) self);
-#line 955 "EventPage.c"
+#line 954 "EventPage.c"
}
static void _media_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 50 "/home/jens/Source/shotwell/src/events/EventPage.vala"
media_page_on_edit_comment ((MediaPage*) self);
-#line 962 "EventPage.c"
+#line 961 "EventPage.c"
}
static gpointer _g_object_ref0 (gpointer self) {
#line 13 "/home/jens/Source/shotwell/src/events/EventPage.vala"
return self ? g_object_ref (self) : NULL;
-#line 969 "EventPage.c"
+#line 968 "EventPage.c"
}
@@ -974,7 +973,7 @@ static DataView* _media_page_create_thumbnail_create_view (DataSource* source, g
result = media_page_create_thumbnail ((MediaPage*) self, source);
#line 14 "/home/jens/Source/shotwell/src/events/EventPage.vala"
return result;
-#line 978 "EventPage.c"
+#line 977 "EventPage.c"
}
@@ -1027,14 +1026,14 @@ EventPage* event_page_construct (GType object_type, Event* page_event) {
g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _event_page_on_events_altered_data_collection_items_altered, self, 0);
#line 10 "/home/jens/Source/shotwell/src/events/EventPage.vala"
return self;
-#line 1031 "EventPage.c"
+#line 1030 "EventPage.c"
}
EventPage* event_page_new (Event* page_event) {
#line 10 "/home/jens/Source/shotwell/src/events/EventPage.vala"
return event_page_construct (TYPE_EVENT_PAGE, page_event);
-#line 1038 "EventPage.c"
+#line 1037 "EventPage.c"
}
@@ -1052,7 +1051,7 @@ Event* event_page_get_event (EventPage* self) {
result = _tmp1_;
#line 22 "/home/jens/Source/shotwell/src/events/EventPage.vala"
return result;
-#line 1056 "EventPage.c"
+#line 1055 "EventPage.c"
}
@@ -1076,7 +1075,7 @@ static gboolean event_page_real_on_app_key_pressed (Page* base, GdkEventKey* eve
_tmp2_ = gdk_keyval_name (_tmp1_);
#line 30 "/home/jens/Source/shotwell/src/events/EventPage.vala"
if (g_strcmp0 (_tmp2_, "F2") == 0) {
-#line 1080 "EventPage.c"
+#line 1079 "EventPage.c"
ViewCollection* _tmp3_;
ViewCollection* _tmp4_;
gint _tmp5_;
@@ -1097,7 +1096,7 @@ static gboolean event_page_real_on_app_key_pressed (Page* base, GdkEventKey* eve
result = TRUE;
#line 32 "/home/jens/Source/shotwell/src/events/EventPage.vala"
return result;
-#line 1101 "EventPage.c"
+#line 1100 "EventPage.c"
}
}
#line 36 "/home/jens/Source/shotwell/src/events/EventPage.vala"
@@ -1108,7 +1107,7 @@ static gboolean event_page_real_on_app_key_pressed (Page* base, GdkEventKey* eve
result = _tmp8_;
#line 36 "/home/jens/Source/shotwell/src/events/EventPage.vala"
return result;
-#line 1112 "EventPage.c"
+#line 1111 "EventPage.c"
}
@@ -1128,7 +1127,7 @@ static void event_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_f
_tmp1_ = ui_filenames;
#line 47 "/home/jens/Source/shotwell/src/events/EventPage.vala"
gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), "event.ui");
-#line 1132 "EventPage.c"
+#line 1131 "EventPage.c"
}
@@ -1148,7 +1147,7 @@ static void event_page_real_add_actions (Page* base, GActionMap* map) {
_tmp1_ = map;
#line 59 "/home/jens/Source/shotwell/src/events/EventPage.vala"
g_action_map_add_action_entries (_tmp1_, EVENT_PAGE_entries, G_N_ELEMENTS (EVENT_PAGE_entries), self);
-#line 1152 "EventPage.c"
+#line 1151 "EventPage.c"
}
@@ -1163,7 +1162,7 @@ static void event_page_real_remove_actions (Page* base, GActionMap* map) {
_tmp0_ = map;
#line 63 "/home/jens/Source/shotwell/src/events/EventPage.vala"
PAGE_CLASS (event_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp0_);
-#line 1167 "EventPage.c"
+#line 1166 "EventPage.c"
{
GActionEntry* entry_collection = NULL;
gint entry_collection_length1 = 0;
@@ -1175,11 +1174,11 @@ static void event_page_real_remove_actions (Page* base, GActionMap* map) {
entry_collection_length1 = G_N_ELEMENTS (EVENT_PAGE_entries);
#line 64 "/home/jens/Source/shotwell/src/events/EventPage.vala"
for (entry_it = 0; entry_it < G_N_ELEMENTS (EVENT_PAGE_entries); entry_it = entry_it + 1) {
-#line 1179 "EventPage.c"
+#line 1178 "EventPage.c"
GActionEntry entry = {0};
#line 64 "/home/jens/Source/shotwell/src/events/EventPage.vala"
entry = entry_collection[entry_it];
-#line 1183 "EventPage.c"
+#line 1182 "EventPage.c"
{
GActionMap* _tmp1_;
GActionEntry _tmp2_;
@@ -1192,7 +1191,7 @@ static void event_page_real_remove_actions (Page* base, GActionMap* map) {
_tmp3_ = _tmp2_.name;
#line 65 "/home/jens/Source/shotwell/src/events/EventPage.vala"
g_action_map_remove_action (_tmp1_, _tmp3_);
-#line 1196 "EventPage.c"
+#line 1195 "EventPage.c"
}
}
}
@@ -1211,7 +1210,7 @@ static void event_page_real_init_actions (Page* base, gint selected_count, gint
_tmp1_ = count;
#line 70 "/home/jens/Source/shotwell/src/events/EventPage.vala"
PAGE_CLASS (event_page_parent_class)->init_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp0_, _tmp1_);
-#line 1215 "EventPage.c"
+#line 1214 "EventPage.c"
}
@@ -1227,7 +1226,7 @@ static void event_page_real_update_actions (Page* base, gint selected_count, gin
#line 74 "/home/jens/Source/shotwell/src/events/EventPage.vala"
page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "MakePrimary", _tmp0_ == 1);
#line 77 "/home/jens/Source/shotwell/src/events/EventPage.vala"
- page_set_action_visible (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonJumpToEvent", FALSE);
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonJumpToEvent", FALSE);
#line 79 "/home/jens/Source/shotwell/src/events/EventPage.vala"
_tmp1_ = selected_count;
#line 79 "/home/jens/Source/shotwell/src/events/EventPage.vala"
@@ -1236,7 +1235,7 @@ static void event_page_real_update_actions (Page* base, gint selected_count, gin
PAGE_CLASS (event_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp1_, _tmp2_);
#line 83 "/home/jens/Source/shotwell/src/events/EventPage.vala"
page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditEventComment", TRUE);
-#line 1240 "EventPage.c"
+#line 1239 "EventPage.c"
}
@@ -1266,13 +1265,13 @@ static void event_page_real_get_config_photos_sort (MediaPage* base, gboolean* s
if (sort_order) {
#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala"
*sort_order = _vala_sort_order;
-#line 1270 "EventPage.c"
+#line 1269 "EventPage.c"
}
#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala"
if (sort_by) {
#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala"
*sort_by = _vala_sort_by;
-#line 1276 "EventPage.c"
+#line 1275 "EventPage.c"
}
}
@@ -1297,7 +1296,7 @@ static void event_page_real_set_config_photos_sort (MediaPage* base, gboolean so
configuration_facade_set_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_);
#line 91 "/home/jens/Source/shotwell/src/events/EventPage.vala"
_g_object_unref0 (_tmp1_);
-#line 1301 "EventPage.c"
+#line 1300 "EventPage.c"
}
@@ -1317,7 +1316,7 @@ static void event_page_on_events_altered (EventPage* self, GeeMap* map) {
_tmp2_ = gee_map_has_key (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject));
#line 95 "/home/jens/Source/shotwell/src/events/EventPage.vala"
if (_tmp2_) {
-#line 1321 "EventPage.c"
+#line 1320 "EventPage.c"
Event* _tmp3_;
gchar* _tmp4_;
gchar* _tmp5_;
@@ -1331,7 +1330,7 @@ static void event_page_on_events_altered (EventPage* self, GeeMap* map) {
page_set_page_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp5_);
#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala"
_g_free0 (_tmp5_);
-#line 1335 "EventPage.c"
+#line 1334 "EventPage.c"
}
}
@@ -1356,7 +1355,7 @@ static void event_page_real_on_edit_comment (MediaPage* base) {
_data_collection_unref0 (_tmp1_);
#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala"
if (_tmp3_) {
-#line 1360 "EventPage.c"
+#line 1359 "EventPage.c"
EditCommentDialog* edit_comment_dialog = NULL;
Event* _tmp4_;
gchar* _tmp5_;
@@ -1404,7 +1403,7 @@ static void event_page_real_on_edit_comment (MediaPage* base) {
_multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog);
#line 105 "/home/jens/Source/shotwell/src/events/EventPage.vala"
return;
-#line 1408 "EventPage.c"
+#line 1407 "EventPage.c"
}
#line 107 "/home/jens/Source/shotwell/src/events/EventPage.vala"
_tmp12_ = self->priv->page_event;
@@ -1432,11 +1431,11 @@ static void event_page_real_on_edit_comment (MediaPage* base) {
_multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog);
#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala"
return;
-#line 1436 "EventPage.c"
+#line 1435 "EventPage.c"
}
#line 112 "/home/jens/Source/shotwell/src/events/EventPage.vala"
MEDIA_PAGE_CLASS (event_page_parent_class)->on_edit_comment (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_MEDIA_PAGE, MediaPage));
-#line 1440 "EventPage.c"
+#line 1439 "EventPage.c"
}
@@ -1468,7 +1467,7 @@ static void event_page_on_make_primary (EventPage* self) {
if (_tmp3_) {
#line 117 "/home/jens/Source/shotwell/src/events/EventPage.vala"
return;
-#line 1472 "EventPage.c"
+#line 1471 "EventPage.c"
}
#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala"
_tmp4_ = self->priv->page_event;
@@ -1492,7 +1491,7 @@ static void event_page_on_make_primary (EventPage* self) {
_g_object_unref0 (_tmp8_);
#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala"
_data_collection_unref0 (_tmp6_);
-#line 1496 "EventPage.c"
+#line 1495 "EventPage.c"
}
@@ -1512,7 +1511,7 @@ static void event_page_on_rename (EventPage* self) {
library_window_rename_event_in_sidebar (_tmp1_, _tmp2_);
#line 123 "/home/jens/Source/shotwell/src/events/EventPage.vala"
_g_object_unref0 (_tmp1_);
-#line 1516 "EventPage.c"
+#line 1515 "EventPage.c"
}
@@ -1541,14 +1540,14 @@ static void event_page_class_init (EventPageClass * klass) {
((MediaPageClass *) klass)->on_edit_comment = (void (*) (MediaPage *)) event_page_real_on_edit_comment;
#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala"
G_OBJECT_CLASS (klass)->finalize = event_page_finalize;
-#line 1545 "EventPage.c"
+#line 1544 "EventPage.c"
}
static void event_page_instance_init (EventPage * self) {
#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala"
self->priv = EVENT_PAGE_GET_PRIVATE (self);
-#line 1552 "EventPage.c"
+#line 1551 "EventPage.c"
}
@@ -1578,7 +1577,7 @@ static void event_page_finalize (GObject * obj) {
_g_object_unref0 (self->priv->page_event);
#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala"
G_OBJECT_CLASS (event_page_parent_class)->finalize (obj);
-#line 1582 "EventPage.c"
+#line 1581 "EventPage.c"
}
@@ -1652,14 +1651,14 @@ NoEventPage* no_event_page_construct (GType object_type) {
_view_manager_unref0 (filter);
#line 145 "/home/jens/Source/shotwell/src/events/EventPage.vala"
return self;
-#line 1656 "EventPage.c"
+#line 1655 "EventPage.c"
}
NoEventPage* no_event_page_new (void) {
#line 145 "/home/jens/Source/shotwell/src/events/EventPage.vala"
return no_event_page_construct (TYPE_NO_EVENT_PAGE);
-#line 1663 "EventPage.c"
+#line 1662 "EventPage.c"
}
@@ -1689,13 +1688,13 @@ static void no_event_page_real_get_config_photos_sort (MediaPage* base, gboolean
if (sort_order) {
#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala"
*sort_order = _vala_sort_order;
-#line 1693 "EventPage.c"
+#line 1692 "EventPage.c"
}
#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala"
if (sort_by) {
#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala"
*sort_by = _vala_sort_by;
-#line 1699 "EventPage.c"
+#line 1698 "EventPage.c"
}
}
@@ -1720,7 +1719,7 @@ static void no_event_page_real_set_config_photos_sort (MediaPage* base, gboolean
configuration_facade_set_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_);
#line 158 "/home/jens/Source/shotwell/src/events/EventPage.vala"
_g_object_unref0 (_tmp1_);
-#line 1724 "EventPage.c"
+#line 1723 "EventPage.c"
}
@@ -1735,14 +1734,14 @@ static NoEventPageNoEventViewManager* no_event_page_no_event_view_manager_constr
self = (NoEventPageNoEventViewManager*) collection_view_manager_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_COLLECTION_PAGE, CollectionPage));
#line 132 "/home/jens/Source/shotwell/src/events/EventPage.vala"
return self;
-#line 1739 "EventPage.c"
+#line 1738 "EventPage.c"
}
static NoEventPageNoEventViewManager* no_event_page_no_event_view_manager_new (NoEventPage* page) {
#line 132 "/home/jens/Source/shotwell/src/events/EventPage.vala"
return no_event_page_no_event_view_manager_construct (NO_EVENT_PAGE_TYPE_NO_EVENT_VIEW_MANAGER, page);
-#line 1746 "EventPage.c"
+#line 1745 "EventPage.c"
}
@@ -1767,7 +1766,7 @@ static gboolean no_event_page_no_event_view_manager_real_include_in_view (ViewMa
if (_tmp3_ != EVENT_ID_INVALID) {
#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala"
_tmp0_ = FALSE;
-#line 1771 "EventPage.c"
+#line 1770 "EventPage.c"
} else {
DataSource* _tmp4_;
gboolean _tmp5_;
@@ -1777,13 +1776,13 @@ static gboolean no_event_page_no_event_view_manager_real_include_in_view (ViewMa
_tmp5_ = VIEW_MANAGER_CLASS (no_event_page_no_event_view_manager_parent_class)->include_in_view (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager), TYPE_VIEW_MANAGER, ViewManager), _tmp4_);
#line 139 "/home/jens/Source/shotwell/src/events/EventPage.vala"
_tmp0_ = _tmp5_;
-#line 1781 "EventPage.c"
+#line 1780 "EventPage.c"
}
#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala"
result = _tmp0_;
#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala"
return result;
-#line 1787 "EventPage.c"
+#line 1786 "EventPage.c"
}
@@ -1792,7 +1791,7 @@ static void no_event_page_no_event_view_manager_class_init (NoEventPageNoEventVi
no_event_page_no_event_view_manager_parent_class = g_type_class_peek_parent (klass);
#line 131 "/home/jens/Source/shotwell/src/events/EventPage.vala"
((ViewManagerClass *) klass)->include_in_view = (gboolean (*) (ViewManager *, DataSource*)) no_event_page_no_event_view_manager_real_include_in_view;
-#line 1796 "EventPage.c"
+#line 1795 "EventPage.c"
}
@@ -1826,7 +1825,7 @@ static void no_event_page_class_init (NoEventPageClass * klass) {
_tmp0_ = alteration_new ("metadata", "event");
#line 143 "/home/jens/Source/shotwell/src/events/EventPage.vala"
no_event_page_no_event_page_alteration = _tmp0_;
-#line 1830 "EventPage.c"
+#line 1829 "EventPage.c"
}
@@ -1840,7 +1839,7 @@ static void no_event_page_finalize (GObject * obj) {
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NO_EVENT_PAGE, NoEventPage);
#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala"
G_OBJECT_CLASS (no_event_page_parent_class)->finalize (obj);
-#line 1844 "EventPage.c"
+#line 1843 "EventPage.c"
}