[Xfce4-commits] [xfce/libxfce4ui] 01/01: Enabled doc generation for XfceGtkActionEntry and related methods
noreply at xfce.org
noreply at xfce.org
Wed Mar 25 00:22:09 CET 2020
This is an automated email from the git hooks/post-receive script.
a l e x p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/libxfce4ui.
commit 951c783bfa165a90cccdef40cd3a4705bff66311
Author: Alexander Schwinn <alexxcons at xfce.org>
Date: Wed Mar 25 00:21:00 2020 +0100
Enabled doc generation for XfceGtkActionEntry and related
methods
---
docs/libxfce4ui-sections.txt | 14 ++++++++++++++
libxfce4ui/xfce-gtk-extensions.h | 25 ++++++++++++++-----------
2 files changed, 28 insertions(+), 11 deletions(-)
diff --git a/docs/libxfce4ui-sections.txt b/docs/libxfce4ui-sections.txt
index eb22b2f..a57f9aa 100644
--- a/docs/libxfce4ui-sections.txt
+++ b/docs/libxfce4ui-sections.txt
@@ -28,6 +28,20 @@ xfce_gdk_screen_get_geometry
<SECTION>
<FILE>xfce-gtk-extensions</FILE>
+XfceGtkMenuItem
+XfceGtkActionEntry
+xfce_gtk_menu_item_new
+xfce_gtk_image_menu_item_new
+xfce_gtk_image_menu_item_new_from_icon_name
+xfce_gtk_check_menu_item_new
+xfce_gtk_radio_menu_item_new
+xfce_gtk_menu_item_new_from_action_entry
+xfce_gtk_toggle_menu_item_new_from_action_entry
+xfce_gtk_tool_button_new_from_action_entry
+xfce_gtk_accel_group_append
+xfce_gtk_get_action_entry_by_id
+xfce_gtk_translate_action_entries
+xfce_gtk_menu_append_seperator
xfce_gtk_button_new_mixed
xfce_gtk_frame_box_new
xfce_gtk_frame_box_new_with_content
diff --git a/libxfce4ui/xfce-gtk-extensions.h b/libxfce4ui/xfce-gtk-extensions.h
index 2ae5f79..20b8ac1 100644
--- a/libxfce4ui/xfce-gtk-extensions.h
+++ b/libxfce4ui/xfce-gtk-extensions.h
@@ -40,16 +40,19 @@ typedef enum
XFCE_GTK_RADIO_MENU_ITEM,
} XfceGtkMenuItem;
-/*
- * Replacement for the deprecated GtkActionEntry
- * The idea is to provide a fixed list of XfceGtkActionEntrys
- * - use 'xfce_gtk_translate_action_entries' once to translate the list
- * - use 'xfce_gtk_accel_group_append' once to register the provided accelerators
- * - use 'xfce_gtk_get_action_entry_by_id' to find a single entry, e.g. by using a enumeration
- * - use 'xfce_gtk_***_new_from_action_entry' to create the specific menu- or tool-items from the entry
-*/
-typedef struct
+
+
+struct _XfceGtkActionEntry
{
+ /*
+ * Replacement for the deprecated GtkActionEntry
+ * The idea is to provide a fixed list of XfceGtkActionEntrys
+ * - use 'xfce_gtk_translate_action_entries' once to translate the list
+ * - use 'xfce_gtk_accel_group_append' once to register the provided accelerators
+ * - use 'xfce_gtk_get_action_entry_by_id' to find a single entry, e.g. by using a enumeration
+ * - use 'xfce_gtk_***_new_from_action_entry' to create the specific menu- or tool-items from the entry
+ */
+
guint id; /* unique identifier for instances of this structure (you might want to use a enum) */
const gchar *accel_path; /* The unique path, used to identify the accelerator */
const gchar *default_accelerator; /* The default key and modifier to trigger the callback linked to the entry */
@@ -61,8 +64,8 @@ typedef struct
const gchar *menu_item_icon_name; /* optional icon name which will be used to find a image for the item */
GCallback callback; /* The callback which will be triggered on activation */
-
-} XfceGtkActionEntry;
+};
+typedef struct _XfceGtkActionEntry XfceGtkActionEntry;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list