Merge lp://staging/~larsu/indicator-messages/watch-desktop-files into lp://staging/indicator-messages/12.10

Proposed by Lars Karlitski
Status: Merged
Merge reported by: Lars Karlitski
Merged at revision: not available
Proposed branch: lp://staging/~larsu/indicator-messages/watch-desktop-files
Merge into: lp://staging/indicator-messages/12.10
Diff against target: 325 lines (+131/-52)
3 files modified
src/app-section.c (+108/-40)
src/app-section.h (+0/-2)
src/messages-service.c (+23/-10)
To merge this branch: bzr merge lp://staging/~larsu/indicator-messages/watch-desktop-files
Reviewer Review Type Date Requested Status
jenkins (community) continuous-integration Needs Fixing
Charles Kerr (community) Approve
Review via email: mp+122873@code.staging.launchpad.net
To post a comment you must log in.
Revision history for this message
jenkins (martin-mrazik+qa) wrote :
review: Approve (continuous-integration)
Revision history for this message
Charles Kerr (charlesk) wrote :

Overall this is a good patch as usual. :)

Needs Fixing:

  * in app-section.c, the file-scope variable destroy_count should be static

  * the new function app_section_get_name() is not used anywhere, was this included by accident?

Comment:

  * in remove_application(), the new call to g_hash_table_remove() added when (section == NULL) should be removed.

  * remove_section() is wrapped in a g_hash_table_lookup() safety check when called from remove_application(), but not when called from the destroy callback. Both this and the previous bullet point could be addressed by moving the g_hash_table_lookup() + g_warning() from remove_application() to remove_section().

review: Needs Fixing
Revision history for this message
Lars Karlitski (larsu) wrote :

> Overall this is a good patch as usual. :)
>
> Needs Fixing:
>
> * in app-section.c, the file-scope variable destroy_count should be static

Fixed in r311. (you meant destroy_signal, right?)

> * the new function app_section_get_name() is not used anywhere, was this
> included by accident?

That's a very old function. Removed it anyway in r312.

> Comment:
>
> * in remove_application(), the new call to g_hash_table_remove() added when
> (section == NULL) should be removed.

Right, fixed in r313.

> * remove_section() is wrapped in a g_hash_table_lookup() safety check when
> called from remove_application(), but not when called from the destroy
> callback. Both this and the previous bullet point could be addressed by moving
> the g_hash_table_lookup() + g_warning() from remove_application() to
> remove_section().

I didn't do this because remove_section is called from the "destroy" signal from the AppSection. There's no need to look up the AppSection again in the hash table, because we already have it. That said, are you okay with keeping this as it is for now? I plan on refactoring thatq bit starting next cycle anyway.

Thanks for reviewing!

Revision history for this message
jenkins (martin-mrazik+qa) wrote :
review: Approve (continuous-integration)
Revision history for this message
Charles Kerr (charlesk) wrote :

Yes, I'm fine with that part as-is, especially if it's getting refactored away :)

review: Approve
Revision history for this message
jenkins (martin-mrazik+qa) wrote :

FAILED: Autolanding.
No commit message was specified.
http://jenkins.qa.ubuntu.com/job/indicator-messages-autolanding/7/

review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches