~canonical-dx-team/unity/unity.fix-ql-losing-focus

« back to all changes in this revision

Viewing changes to src/IndicatorObjectFactoryRemote.cpp

  • Committer: Jason Smith
  • Date: 2011-01-11 15:48:03 UTC
  • mfrom: (729.3.2 scrollwheel-support)
  • Revision ID: jason.smith@canonical.com-20110111154803-kgsad6i33goz7oad
merge mouse wheel support for indicator branch by Connar Carney (big thanks)

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
  // --------------------------------------------------------------------------
225
225
}
226
226
 
 
227
void
 
228
IndicatorObjectFactoryRemote::OnScrollReceived (const char *entry_id,
 
229
                                                       int delta)
 
230
{
 
231
  g_dbus_proxy_call (_proxy,
 
232
                     "ScrollEntry",
 
233
                     g_variant_new ("(si)",
 
234
                                    entry_id,
 
235
                                    delta),
 
236
                     G_DBUS_CALL_FLAGS_NONE,
 
237
                     -1,
 
238
                     NULL,
 
239
                     NULL,
 
240
                     NULL);
 
241
}
 
242
 
227
243
// We need to unset the last active entry and set the new one as active
228
244
void
229
245
IndicatorObjectFactoryRemote::OnEntryActivated (const char *entry_id)
275
291
      remote = new IndicatorObjectProxyRemote (id);
276
292
      remote->OnShowMenuRequest.connect (sigc::mem_fun (this,
277
293
                                                        &IndicatorObjectFactoryRemote::OnShowMenuRequestReceived));
 
294
      remote->OnScroll.connect (sigc::mem_fun (this,
 
295
                                                &IndicatorObjectFactoryRemote::OnScrollReceived));
278
296
 
279
297
      _indicators.push_back (remote);
280
298