Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarlos Garnacho <carlos@lanedo.com>2012-09-13 12:24:30 (GMT)
committer Simon Schampijer <simon@laptop.org>2012-09-16 10:22:55 (GMT)
commitec42f636307c4e6436a99e67f6d9a0eb1e862820 (patch)
treefc8ec2fb62afe297f8c6c277a9f0e11d32a962b1 /src
parenta2b77a21669fad44e4cf9d02e867a343ce115c47 (diff)
event-controller: rename notification signal "swipe" to "swipe-ended"
Signed-off-by: Carlos Garnacho <carlos@lanedo.com> Acked-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'src')
-rw-r--r--src/sugar3/event-controller/sugar-swipe-controller.c10
-rw-r--r--src/sugar3/event-controller/sugar-swipe-controller.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/sugar3/event-controller/sugar-swipe-controller.c b/src/sugar3/event-controller/sugar-swipe-controller.c
index 2d16689..d7a22ca 100644
--- a/src/sugar3/event-controller/sugar-swipe-controller.c
+++ b/src/sugar3/event-controller/sugar-swipe-controller.c
@@ -30,7 +30,7 @@ typedef struct _SugarSwipeControllerPriv SugarSwipeControllerPriv;
typedef struct _SugarEventData SugarEventData;
enum {
- SWIPE_FINISHED,
+ SWIPE_ENDED,
LAST_SIGNAL
};
@@ -193,7 +193,7 @@ _sugar_swipe_controller_check_emit (SugarSwipeController *controller)
priv->swiped = TRUE;
g_signal_emit_by_name (G_OBJECT (controller), "started");
g_object_notify (G_OBJECT (controller), "state");
- g_signal_emit (controller, signals[SWIPE_FINISHED], 0, direction);
+ g_signal_emit (controller, signals[SWIPE_ENDED], 0, direction);
g_signal_emit_by_name (G_OBJECT (controller), "finished");
}
}
@@ -302,11 +302,11 @@ sugar_swipe_controller_class_init (SugarSwipeControllerClass *klass)
controller_class->get_state = sugar_swipe_controller_get_state;
controller_class->reset = sugar_swipe_controller_reset;
- signals[SWIPE_FINISHED] =
- g_signal_new ("swipe-finished",
+ signals[SWIPE_ENDED] =
+ g_signal_new ("swipe-ended",
SUGAR_TYPE_SWIPE_CONTROLLER,
G_SIGNAL_RUN_FIRST,
- G_STRUCT_OFFSET (SugarSwipeControllerClass, swipe_finished),
+ G_STRUCT_OFFSET (SugarSwipeControllerClass, swipe_ended),
NULL, NULL,
g_cclosure_marshal_VOID__ENUM,
G_TYPE_NONE, 1,
diff --git a/src/sugar3/event-controller/sugar-swipe-controller.h b/src/sugar3/event-controller/sugar-swipe-controller.h
index fdfa1cf..c7b67cf 100644
--- a/src/sugar3/event-controller/sugar-swipe-controller.h
+++ b/src/sugar3/event-controller/sugar-swipe-controller.h
@@ -58,8 +58,8 @@ struct _SugarSwipeControllerClass
{
SugarEventControllerClass parent_class;
- void (* swipe_finished) (SugarSwipeController *controller,
- SugarSwipeDirection direction);
+ void (* swipe_ended) (SugarSwipeController *controller,
+ SugarSwipeDirection direction);
};
GType sugar_swipe_controller_get_type (void) G_GNUC_CONST;