[console/zbrown/quick-ci-check: 2/3] tab: adopt the KgxZoom enum
- From: Zander Brown <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [console/zbrown/quick-ci-check: 2/3] tab: adopt the KgxZoom enum
- Date: Thu, 25 Aug 2022 12:45:34 +0000 (UTC)
commit c48794289974a960dabd35538dd1828fd54f4681
Author: Zander Brown <zbrown gnome org>
Date: Thu Aug 25 12:00:13 2022 +0100
tab: adopt the KgxZoom enum
Signals carrying a KgxZoom originate here, and are simply consumed by
window — thus have it associated with tab not window
src/kgx-tab.h | 18 ++++++++++++++++--
src/kgx-window.h | 19 -------------------
src/meson.build | 1 -
3 files changed, 16 insertions(+), 22 deletions(-)
---
diff --git a/src/kgx-tab.h b/src/kgx-tab.h
index 77f8604..de9a7c3 100644
--- a/src/kgx-tab.h
+++ b/src/kgx-tab.h
@@ -38,14 +38,28 @@ G_BEGIN_DECLS
*
* Stability: Private
*/
-typedef enum /*< flags,prefix=KGX >*/
-{
+typedef enum /*< flags,prefix=KGX >*/ {
KGX_NONE = 0, /*< nick=none >*/
KGX_REMOTE = (1 << 0), /*< nick=remote >*/
KGX_PRIVILEGED = (1 << 1), /*< nick=privileged >*/
} KgxStatus;
+/**
+ * KgxZoom:
+ * @KGX_ZOOM_IN: Make text bigger
+ * @KGX_ZOOM_OUT: Shrink text
+ *
+ * Indicates the zoom direction the zoom action was triggered for
+ *
+ * See #KgxPage::zoom, #KgxPages::zoom
+ */
+typedef enum /*< enum,prefix=KGX >*/ {
+ KGX_ZOOM_IN = 0, /*< nick=in >*/
+ KGX_ZOOM_OUT = 1, /*< nick=out >*/
+} KgxZoom;
+
+
#ifndef __GTK_DOC_IGNORE__
typedef struct _KgxPages KgxPages;
#endif
diff --git a/src/kgx-window.h b/src/kgx-window.h
index 2b364d2..b1610ab 100644
--- a/src/kgx-window.h
+++ b/src/kgx-window.h
@@ -22,8 +22,6 @@
#include <adwaita.h>
#include "kgx-terminal.h"
-#include "kgx-process.h"
-#include "kgx-enums.h"
#include "kgx-pages.h"
G_BEGIN_DECLS
@@ -31,23 +29,6 @@ G_BEGIN_DECLS
#define KGX_WINDOW_STYLE_ROOT "root"
#define KGX_WINDOW_STYLE_REMOTE "remote"
-/**
- * KgxZoom:
- * @KGX_ZOOM_IN: Make text bigger
- * @KGX_ZOOM_OUT: Shrink text
- *
- * Indicates the zoom direction the zoom action was triggered for
- *
- * See #KgxPage:zoom, #KgxPages:zoom
- *
- * Stability: Private
- */
-typedef enum /*< enum,prefix=KGX >*/
-{
- KGX_ZOOM_IN = 0, /*< nick=in >*/
- KGX_ZOOM_OUT = 1, /*< nick=out >*/
-} KgxZoom;
-
#define KGX_TYPE_WINDOW (kgx_window_get_type())
diff --git a/src/meson.build b/src/meson.build
index bd635a8..e5dfc84 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -74,7 +74,6 @@ kgx_enums = gnome.mkenums_simple('kgx-enums',
sources: [
'kgx-close-dialog.h',
'kgx-terminal.h',
- 'kgx-window.h',
'kgx-tab.h'
])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]