[tepl] AmtkFactory: add a FactoryFlags enum



commit 8fc9bc5b74b5be938b724f09f1d03504be7c0ca9
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Jul 17 17:25:40 2017 +0200

    AmtkFactory: add a FactoryFlags enum

 amtk/amtk-factory.h                  |   28 ++++++++++++++++++++++++++++
 docs/reference/tepl-3.0-sections.txt |    1 +
 2 files changed, 29 insertions(+), 0 deletions(-)
---
diff --git a/amtk/amtk-factory.h b/amtk/amtk-factory.h
index 9fcc701..2a3c535 100644
--- a/amtk/amtk-factory.h
+++ b/amtk/amtk-factory.h
@@ -51,6 +51,34 @@ struct _AmtkFactoryClass
        GObjectClass parent_class;
 };
 
+/**
+ * AmtkFactoryFlags:
+ * @AMTK_FACTORY_FLAGS_NONE: No flags.
+ * @AMTK_FACTORY_IGNORE_GACTION: Do not call gtk_actionable_set_action_name().
+ * @AMTK_FACTORY_IGNORE_ICON: Do not set an icon.
+ * @AMTK_FACTORY_IGNORE_LABEL: Do not set a label/short description.
+ * @AMTK_FACTORY_IGNORE_TOOLTIP: Do not set a tooltip/long description.
+ * @AMTK_FACTORY_IGNORE_ACCELS: Ignore completely the accelerators.
+ * @AMTK_FACTORY_IGNORE_ACCELS_FOR_DOC: Ignore the accelerators for
+ *   documentation purposes only. For example do not add/configure a
+ *   #GtkAccelLabel.
+ * @AMTK_FACTORY_IGNORE_ACCELS_FOR_APP: Do not call
+ *   gtk_application_set_accels_for_action().
+ *
+ * Since: 3.0
+ */
+typedef enum
+{
+       AMTK_FACTORY_FLAGS_NONE                 = 0,
+       AMTK_FACTORY_IGNORE_GACTION             = 1 << 0,
+       AMTK_FACTORY_IGNORE_ICON                = 1 << 1,
+       AMTK_FACTORY_IGNORE_LABEL               = 1 << 2,
+       AMTK_FACTORY_IGNORE_TOOLTIP             = 1 << 3,
+       AMTK_FACTORY_IGNORE_ACCELS              = 1 << 4,
+       AMTK_FACTORY_IGNORE_ACCELS_FOR_DOC      = 1 << 5,
+       AMTK_FACTORY_IGNORE_ACCELS_FOR_APP      = 1 << 6,
+} AmtkFactoryFlags;
+
 GType                  amtk_factory_get_type                   (void);
 
 GtkApplication *       amtk_factory_get_application            (AmtkFactory *factory);
diff --git a/docs/reference/tepl-3.0-sections.txt b/docs/reference/tepl-3.0-sections.txt
index a9d60e2..ae3ab2a 100644
--- a/docs/reference/tepl-3.0-sections.txt
+++ b/docs/reference/tepl-3.0-sections.txt
@@ -93,6 +93,7 @@ amtk_action_map_add_action_entries_check_dups
 <SECTION>
 <FILE>amtk-factory</FILE>
 AmtkFactory
+AmtkFactoryFlags
 amtk_factory_get_application
 <SUBSECTION Standard>
 AMTK_FACTORY


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]