diff options
author | Ted Gould <ted@gould.cx> | 2012-03-02 17:02:32 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-03-02 17:02:32 -0600 |
commit | 5960d8f7683d83a8e20a4eb924a506afa33e8adc (patch) | |
tree | ce3e8a266c334ac2b5dc50f2cdf06bce442c904a /src | |
parent | e2bbff710dd9d9ea79908b49ed02438d11ef1010 (diff) | |
download | ayatana-indicator-application-5960d8f7683d83a8e20a4eb924a506afa33e8adc.tar.gz ayatana-indicator-application-5960d8f7683d83a8e20a4eb924a506afa33e8adc.tar.bz2 ayatana-indicator-application-5960d8f7683d83a8e20a4eb924a506afa33e8adc.zip |
Cleaning up switch statement to be more readable
Diffstat (limited to 'src')
-rw-r--r-- | src/application-service-appstore.c | 11 |
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); |