Merge lp:~3v1n0/unity/scroll-event-support into lp:unity

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Mirco Müller
Approved revision: no longer in the source branch.
Merged at revision: 807
Proposed branch: lp:~3v1n0/unity/scroll-event-support
Merge into: lp:unity
Diff against target: 13 lines (+2/-0)
1 file modified
services/panel-service.c (+2/-0)
To merge this branch: bzr merge lp:~3v1n0/unity/scroll-event-support
Reviewer Review Type Date Requested Status
Mirco Müller (community) Approve
Review via email: mp+47613@code.launchpad.net

Description of the change

unity (panel-service, in fact): now sends also a "scroll-entry" signal when an indicator is scrolled, with the target entry as parameter.

This depends on:
lp:~3v1n0/libindicator/scroll-event-support
lp:~3v1n0/indicator-application/scroll-event-support
lp:~3v1n0/libappindicator/scroll-event-support

This is part of the Indicators "scroll-event" support patch, see bug #708180

To post a comment you must log in.
Revision history for this message
Mirco Müller (macslow) wrote :

Looks good to me

review: Approve
Revision history for this message
Mirco Müller (macslow) wrote :

But before merging this we need to make sure all the other patches land _before_ this one is merged to untiy trunk.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

To get it working yes, however in Unity merging the patch shouldn't cause build breakage (the signal simply won't cause any effect). The only "strong" dependency here is between libindicator and indicator-application

Revision history for this message
Ted Gould (ted) wrote :

libinidcator changes for this were released yesterday in libindicator 0.3.18

Revision history for this message
Alex Launi (alexlauni) wrote :

Looks good but before we merge it we need you to sign the Canonical contributer agreement. It's a quick, but necessary step to getting your code into the tree. Luckily you only need to sign it once and it will apply to all other Canonical project contributions you may make in the future. http://www.canonical.com/contributors Make sure to CC David Barth when you send it in.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

> Looks good but before we merge it we need you to sign the Canonical
> contributer agreement. It's a quick, but necessary step to getting your code
> into the tree. Luckily you only need to sign it once and it will apply to all
> other Canonical project contributions you may make in the future.
> http://www.canonical.com/contributors Make sure to CC David Barth when you
> send it in.

Well, I've already signed and sent it to Ted Gould when my branch for indicator-datetime was merged!
Don't you have it?

Revision history for this message
Alex Launi (alexlauni) wrote :

I think someone forgot to update the list. I will look into it and merge asap. Thanks!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'services/panel-service.c'
2--- services/panel-service.c 2010-12-29 17:30:12 +0000
3+++ services/panel-service.c 2011-01-27 00:02:25 +0000
4@@ -1005,7 +1005,9 @@
5 IndicatorObjectEntry *entry = g_hash_table_lookup (priv->id2entry_hash, entry_id);
6 IndicatorObject *object = g_hash_table_lookup (priv->entry2indicator_hash, entry);
7 GdkScrollDirection direction = delta > 0 ? GDK_SCROLL_DOWN : GDK_SCROLL_UP;
8+
9 g_signal_emit_by_name(object, "scroll", abs(delta/120), direction);
10+ g_signal_emit_by_name(object, "scroll-entry", entry, abs(delta/120), direction);
11 }
12
13 void