summaryrefslogtreecommitdiff
path: root/gtk/gtkbuttonprivate.h
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2012-01-05 22:22:06 -0500
committerRyan Lortie <desrt@desrt.ca>2012-01-09 15:02:06 +0100
commit88ec007b9858132720cc602ac1a63396f66116bc (patch)
tree0f82ee7e7fc2d40f80835def27050abc55d5fbc6 /gtk/gtkbuttonprivate.h
parenta3629592d303b4eea920b25746a13d194f08335c (diff)
downloadgtk+-88ec007b9858132720cc602ac1a63396f66116bc.tar.gz
Add new GtkActionable interface
This is the interface for GtkWidgets that can be associated with an action on a GtkAppicationWindow or associated GtkApplication. It essentially features 'action-name' and 'action-target' properties with some associated convenience API. This interface is implemented by GtkButton and GtkToolButton. https://bugzilla.gnome.org/show_bug.cgi?id=667394
Diffstat (limited to 'gtk/gtkbuttonprivate.h')
-rw-r--r--gtk/gtkbuttonprivate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkbuttonprivate.h b/gtk/gtkbuttonprivate.h
index 5db1bc1171..232973c1fc 100644
--- a/gtk/gtkbuttonprivate.h
+++ b/gtk/gtkbuttonprivate.h
@@ -19,6 +19,7 @@
#ifndef __GTK_BUTTON_PRIVATE_H__
#define __GTK_BUTTON_PRIVATE_H__
+#include "gsimpleactionobserver.h"
#include "gtkaction.h"
G_BEGIN_DECLS
@@ -29,6 +30,10 @@ struct _GtkButtonPrivate
GtkAction *action;
GtkWidget *image;
+ gchar *action_name;
+ GVariant *action_target;
+ GSimpleActionObserver *action_observer;
+
GdkDevice *grab_keyboard;
GdkWindow *event_window;