diff --git a/src/photos-operation-insta-common.h b/src/photos-operation-insta-common.h index a6a51893368d1a49e9bf9396e5f0d26dc387e3be..66dbdd8c34f60391f2abf5e2afd6b5340a9fd8c5 100644 --- a/src/photos-operation-insta-common.h +++ b/src/photos-operation-insta-common.h @@ -29,6 +29,7 @@ typedef enum PHOTOS_OPERATION_INSTA_PRESET_CAAP, PHOTOS_OPERATION_INSTA_PRESET_MOGADISHU, PHOTOS_OPERATION_INSTA_PRESET_HOMETOWN, + PHOTOS_OPERATION_INSTA_PRESET_GRAY, PHOTOS_OPERATION_INSTA_PRESET_1977 = PHOTOS_OPERATION_INSTA_PRESET_1947, PHOTOS_OPERATION_INSTA_PRESET_BRANNAN = PHOTOS_OPERATION_INSTA_PRESET_CALISTOGA, diff --git a/src/photos-operation-insta-curve.c b/src/photos-operation-insta-curve.c index 67e00880fc5da563c1a342e759f250a0501326a8..53abb881a44f9ad599c1d26f055a0e6a4c00eb2f 100644 --- a/src/photos-operation-insta-curve.c +++ b/src/photos-operation-insta-curve.c @@ -1012,6 +1012,7 @@ photos_operation_insta_curve_prepare (GeglOperation *operation) break; case PHOTOS_OPERATION_INSTA_PRESET_NONE: + case PHOTOS_OPERATION_INSTA_PRESET_GRAY: case PHOTOS_OPERATION_INSTA_PRESET_HEFE: default: g_assert_not_reached (); diff --git a/src/photos-operation-insta-filter.c b/src/photos-operation-insta-filter.c index 5348fd4f28e846fb03575ec4b9327331e4a91dd3..0e226ab150252c263e8b989951ee339103132597 100644 --- a/src/photos-operation-insta-filter.c +++ b/src/photos-operation-insta-filter.c @@ -88,7 +88,10 @@ photos_operation_insta_filter_setup (PhotosOperationInstaFilter *self) "preset", self->preset, NULL); self->nodes = g_list_prepend (self->nodes, node); + /* Fall through! + * GOTHAM needs gegl:gray */ + case PHOTOS_OPERATION_INSTA_PRESET_GRAY: node = gegl_node_new_child (operation->node, "operation", "gegl:gray", NULL); diff --git a/src/photos-tool-filters.c b/src/photos-tool-filters.c index 3050946e96fef5be7c00dee7bc1e69b89130c05f..18f6b702f0fcc5ed5d50260c5625c9caa3f1513b 100644 --- a/src/photos-tool-filters.c +++ b/src/photos-tool-filters.c @@ -219,6 +219,12 @@ photos_tool_filters_init (PhotosToolFilters *self) self->buttons = g_list_prepend (self->buttons, button); row++; + button = photos_tool_filter_button_new (group, _("Gray")); + gtk_actionable_set_action_name (GTK_ACTIONABLE (button), "app.insta-current"); + gtk_actionable_set_action_target (GTK_ACTIONABLE (button), "n", (gint16) PHOTOS_OPERATION_INSTA_PRESET_GRAY); + gtk_grid_attach (GTK_GRID (self->grid), button, 0, row, 1, 1); + self->buttons = g_list_prepend (self->buttons, button); + self->buttons = g_list_reverse (self->buttons); }