Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adrien Plazas
libhandy
Commits
5c80f4ba
Commit
5c80f4ba
authored
Jan 29, 2020
by
Alexander Mikhaylenko
Browse files
Introduce HdyNavigationDirection
Signed-off-by:
Alexander Mikhaylenko
<
alexm@gnome.org
>
parent
e6006456
Changes
6
Hide whitespace changes
Inline
Side-by-side
doc/handy-docs.xml
View file @
5c80f4ba
...
...
@@ -47,6 +47,7 @@
<xi:include
href=
"xml/hdy-header-group.xml"
/>
<xi:include
href=
"xml/hdy-keypad.xml"
/>
<xi:include
href=
"xml/hdy-leaflet.xml"
/>
<xi:include
href=
"xml/hdy-navigation-direction.xml"
/>
<xi:include
href=
"xml/hdy-preferences-group.xml"
/>
<xi:include
href=
"xml/hdy-preferences-page.xml"
/>
<xi:include
href=
"xml/hdy-preferences-row.xml"
/>
...
...
src/handy.h
View file @
5c80f4ba
...
...
@@ -39,6 +39,7 @@ G_BEGIN_DECLS
#include "hdy-keypad.h"
#include "hdy-leaflet.h"
#include "hdy-list-box.h"
#include "hdy-navigation-direction.h"
#include "hdy-preferences-group.h"
#include "hdy-preferences-page.h"
#include "hdy-preferences-row.h"
...
...
src/hdy-enums.c.in
View file @
5c80f4ba
...
...
@@ -5,6 +5,7 @@
#include "hdy-enums.h"
#include "hdy-header-bar.h"
#include "hdy-leaflet.h"
#include "hdy-navigation-direction.h"
#include "hdy-squeezer.h"
#include "hdy-view-switcher.h"
...
...
src/hdy-navigation-direction.c
0 → 100644
View file @
5c80f4ba
/*
* Copyright (C) 2019 Alexander Mikhaylenko <exalm7659@gmail.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#include "config.h"
#include "hdy-navigation-direction.h"
/**
* SECTION:hdy-navigation-direction
* @short_description: Swipe navigation directions.
* @title: HdyNavigationDirection
*/
/**
* HdyNavigationDirection:
* @HDY_NAVIGATION_DIRECTION_BACK: Corresponds to start or top, depending on orientation and text direction
* @HDY_NAVIGATION_DIRECTION_FORWARD: Corresponds to end or bottom, depending on orientation and text direction
*
* Represents direction of a swipe navigation gesture in #HdyLeaflet.
*
* Since: 1.0
*/
src/hdy-navigation-direction.h
0 → 100644
View file @
5c80f4ba
/*
* Copyright (C) 2019 Alexander Mikhaylenko <exalm7659@gmail.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#if !defined(_HANDY_INSIDE) && !defined(HANDY_COMPILATION)
#error "Only <handy.h> can be included directly."
#endif
#include <glib-object.h>
#include "hdy-enums.h"
G_BEGIN_DECLS
typedef
enum
{
HDY_NAVIGATION_DIRECTION_BACK
,
HDY_NAVIGATION_DIRECTION_FORWARD
,
}
HdyNavigationDirection
;
G_END_DECLS
src/meson.build
View file @
5c80f4ba
...
...
@@ -10,6 +10,7 @@ libhandy_resources = gnome.compile_resources(
hdy_enum_headers = ['hdy-carousel.h',
'hdy-header-bar.h',
'hdy-leaflet.h',
'hdy-navigation-direction.h',
'hdy-squeezer.h',
'hdy-view-switcher.h',
]
...
...
@@ -64,6 +65,7 @@ src_headers = [
'hdy-keypad.h',
'hdy-leaflet.h',
'hdy-list-box.h',
'hdy-navigation-direction.h',
'hdy-preferences-group.h',
'hdy-preferences-page.h',
'hdy-preferences-row.h',
...
...
@@ -108,6 +110,7 @@ src_sources = [
'hdy-leaflet.c',
'hdy-list-box.c',
'hdy-main.c',
'hdy-navigation-direction.c',
'hdy-preferences-group.c',
'hdy-preferences-page.c',
'hdy-preferences-row.c',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment