aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-05-22 23:19:50 -0400
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-05-22 23:19:50 -0400
commit12a5f15581d2c8ba5e6b4ec4baa19bd436e4fd8d (patch)
treedb7b5c3a4ed464a8445de8ae4e8a21ab604d8b6a /src/Makefile.am
parent3f3aa147ac8ee224f40d9c4e9800b4c5825fde59 (diff)
downloadayatana-ido-12a5f15581d2c8ba5e6b4ec4baa19bd436e4fd8d.tar.gz
ayatana-ido-12a5f15581d2c8ba5e6b4ec4baa19bd436e4fd8d.tar.bz2
ayatana-ido-12a5f15581d2c8ba5e6b4ec4baa19bd436e4fd8d.zip
Add IdoActionHelper
This class contains some functionality that all menu items that are bound to an action need. It listens for action additions and removals, changes in enabled state, and state changes. It is _not_ intended to be used by specific menu items, but rather as the glue in IdoMenuItemFactory, to bind a widget to an action. An alternative way to reach the same goal is to have an IdoMenuItem base class which contains the common functionality. This would have required touching all existing menu items (slider, user menu item, media player items) and would have added more complexity to them. It is similar in spirit to GtkActionHelper (a private class in gtk), but very different in API and implementation.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index d6012f1..a2a82da 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -18,7 +18,8 @@ sources_h = \
idoscalemenuitem.h \
idoswitchmenuitem.h \
idotimeline.h \
- libido.h
+ libido.h \
+ idoactionhelper.h
EXTRA_DIST = \
ido.list \
@@ -68,7 +69,8 @@ libido_0_1_la_SOURCES = \
idoscalemenuitem.c \
idoswitchmenuitem.c \
idotimeline.c \
- idomenuitemfactory.c
+ idomenuitemfactory.c \
+ idoactionhelper.c
libido3_0_1_la_SOURCES = $(libido_0_1_la_SOURCES)