~charlesk/indicator-application/lp-1197788

« back to all changes in this revision

Viewing changes to src/application-service-appstore.c

  • Committer: Charles Kerr
  • Date: 2012-03-05 21:14:00 UTC
  • mfrom: (222.1.1 lp944236)
  • Revision ID: charles.kerr@canonical.com-20120305211400-5a0g1pninz4nsqwy
merge lp:~ted/indicator-application/lp944236 to fix the warning that Coverity reported in bug #944236

Show diffs side-by-side

added added

removed removed

Lines of Context:
284
284
                switch (direction) {
285
285
                        case INDICATOR_OBJECT_SCROLL_UP:
286
286
                                delta = -delta;
 
287
                                orientation = "vertical";
 
288
                                break;
287
289
                        case INDICATOR_OBJECT_SCROLL_DOWN:
 
290
                                /* delta unchanged */
288
291
                                orientation = "vertical";
289
292
                                break;
290
 
 
291
293
                        case INDICATOR_OBJECT_SCROLL_LEFT:
292
294
                                delta = -delta;
 
295
                                orientation = "horizontal";
 
296
                                break;
293
297
                        case INDICATOR_OBJECT_SCROLL_RIGHT:
 
298
                                /* delta unchanged */
294
299
                                orientation = "horizontal";
 
300
                                break;
 
301
                        default:
 
302
                                g_assert_not_reached();
 
303
                                break;
295
304
                }
296
305
 
297
306
                app = find_application_by_menu(service, dbusaddress, dbusmenuobject);