summaryrefslogtreecommitdiff
path: root/gtk/gtkpadcontroller.h
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-03-07 14:48:07 +0100
committerTimm Bäder <mail@baedert.org>2020-03-07 14:52:45 +0100
commit049f841900e0e196f4eba293aadf84b0735ee8d0 (patch)
tree58ba047b933b02ab4e593cf4cf029a61acf70e8d /gtk/gtkpadcontroller.h
parent3c28f6d8917908b125c63c97ab2a0d25f7d552a3 (diff)
downloadgtk+-049f841900e0e196f4eba293aadf84b0735ee8d0.tar.gz
padcontroller: Copy action entries
The label and action_name entries of GtkPadActionEntry are supposed to be const, so copy them into a private ActionEntryData struct that we later free.
Diffstat (limited to 'gtk/gtkpadcontroller.h')
-rw-r--r--gtk/gtkpadcontroller.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkpadcontroller.h b/gtk/gtkpadcontroller.h
index 0fabc4a146..b0749d626e 100644
--- a/gtk/gtkpadcontroller.h
+++ b/gtk/gtkpadcontroller.h
@@ -68,10 +68,10 @@ typedef enum {
*/
struct _GtkPadActionEntry {
GtkPadActionType type;
- gint index;
- gint mode;
- gchar *label;
- gchar *action_name;
+ int index;
+ int mode;
+ const char *label;
+ const char *action_name;
};
GDK_AVAILABLE_IN_ALL