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

« back to all changes in this revision

Viewing changes to services/panel-main.c

  • 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:
60
60
  "      <arg type='i' name='button' direction='in'/>"
61
61
  "    </method>"
62
62
  ""
 
63
  "    <method name='ScrollEntry'>"
 
64
  "      <arg type='s' name='entry_id' direction='in'/>"
 
65
  "      <arg type='i' name='delta' direction='in'/>"
 
66
  "    </method>"
 
67
  ""
63
68
  "    <signal name='EntryActivated'>"
64
69
  "     <arg type='s' name='entry_id' />"
65
70
  "    </signal>"
146
151
      g_dbus_method_invocation_return_value (invocation, NULL);
147
152
      g_free (entry_id);
148
153
    }
 
154
  else if (g_strcmp0 (method_name, "ScrollEntry") == 0)
 
155
    {
 
156
      gchar *entry_id;
 
157
      gint32 delta;
 
158
      g_variant_get (parameters, "(si)", &entry_id, &delta, NULL);
 
159
      panel_service_scroll_entry (service, entry_id, delta);
 
160
      g_dbus_method_invocation_return_value (invocation, NULL);
 
161
      g_free(entry_id);
 
162
    }
149
163
}
150
164
 
151
165
static void