aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-03-05 15:14:00 -0600
committerCharles Kerr <charles.kerr@canonical.com>2012-03-05 15:14:00 -0600
commitd6769d59b87905efe5d12f8ecd61d0489b334e80 (patch)
treece3e8a266c334ac2b5dc50f2cdf06bce442c904a /src
parente2bbff710dd9d9ea79908b49ed02438d11ef1010 (diff)
parent5960d8f7683d83a8e20a4eb924a506afa33e8adc (diff)
downloadayatana-indicator-application-d6769d59b87905efe5d12f8ecd61d0489b334e80.tar.gz
ayatana-indicator-application-d6769d59b87905efe5d12f8ecd61d0489b334e80.tar.bz2
ayatana-indicator-application-d6769d59b87905efe5d12f8ecd61d0489b334e80.zip
merge lp:~ted/indicator-application/lp944236 to fix the warning that Coverity reported in bug #944236
Diffstat (limited to 'src')
-rw-r--r--src/application-service-appstore.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index 5d4296d..2663003 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -284,14 +284,23 @@ bus_method_call (GDBusConnection * connection, const gchar * sender,
switch (direction) {
case INDICATOR_OBJECT_SCROLL_UP:
delta = -delta;
+ orientation = "vertical";
+ break;
case INDICATOR_OBJECT_SCROLL_DOWN:
+ /* delta unchanged */
orientation = "vertical";
break;
-
case INDICATOR_OBJECT_SCROLL_LEFT:
delta = -delta;
+ orientation = "horizontal";
+ break;
case INDICATOR_OBJECT_SCROLL_RIGHT:
+ /* delta unchanged */
orientation = "horizontal";
+ break;
+ default:
+ g_assert_not_reached();
+ break;
}
app = find_application_by_menu(service, dbusaddress, dbusmenuobject);