Do

Merge lp://staging/~jassmith/do/trunk into lp://staging/do/0.8

Proposed by Jason Smith
Status: Merged
Merged at revision: not available
Proposed branch: lp://staging/~jassmith/do/trunk
Merge into: lp://staging/do/0.8
To merge this branch: bzr merge lp://staging/~jassmith/do/trunk
Reviewer Review Type Date Requested Status
Do Core Team Pending
Review via email: mp+2512@code.staging.launchpad.net
To post a comment you must log in.
Revision history for this message
Jason Smith (jassmith) wrote :

Render optimizations and seriously improved menu's

TRY BRANCH BEFORE VOTING, CODE REVIEW IS NOT ENOUGH

lp://staging/~jassmith/do/trunk updated
783. By David Siegel <david@x>

New addin classifiers to designate "official" vs "community".

784. By David Siegel <david@x>

Statically version assemblies until autofoo can do it for us.

785. By David Siegel <david@x>

Don't look for plugins in directories that don't exist.

Revision history for this message
David Siegel (djsiegel-deactivatedaccount) wrote :

Please fix your warnings:

Compiling Do.Interface.Linux.Docky.dll...
./src/Docky.Interface/ApplicationDockItem.cs(57,25): warning CS0169: The private field `Docky.Interface.ApplicationDockItem.icon_surface' is never used
./src/Docky.Interface/DoDockItem.cs(39,25): warning CS0169: The private field `Docky.Interface.DoDockItem.icon_surface' is never used
./src/Docky.Interface/DockArea.cs(64,22): warning CS0414: The private field `Docky.Interface.DockArea.gtk_drag_dest_set' is assigned but its value is never used
./src/Docky.Interface/DockItem.cs(44,25): warning CS0169: The private field `Docky.Interface.DockItem.icon_surface' is never used
Compilation succeeded - 4 warning(s)

Revision history for this message
David Siegel (djsiegel-deactivatedaccount) wrote :

Why do you have IDockItem and AbstractDockItem -- why not just abstract class DockItem?

### AbstractDockItem

  Do not allow any characters but tabs before get { ...

  Do you need to cast to int?
  (int) ((DockPreferences.FullIconSize - pbuf.Width) / 2

  Why is GetDragPixbuf returning null? That seems bad. Maybe make the method abstract?

### ApplicationDockItem.cs

Please organize your using statements at the top of your files:

   using System;
   using System.Collections.Generic;
   using System.IO;
  +using System.Linq;

Your summary for GetSurfacePixbuf is too long. Put remarks in <remarks> tags. Summary should be short and to the point (1 sentence, maybe 2).

GetSurfacePixbuf is way too long and ugly. Break it up into smaller methods, use syntactic sugar to avoid repeating yourself.

Holy moly, please do not look for DesktopFiles. Why are you doing this? Don't do it.

Import System.IO, import System.Diagnostics. Drop the prefixes.

WindowCount is an expensive call, should be GetWindowCount ().

You have some double newlines.

new Wnck.Application[] {application} can be new [] { application }.

Why is your property "App"? It should be "Application".

GetMenuItems is really messy. Make it sexy. You have literal constants. Move them to consts. Use yield. Use camelCase for locals.

The body of Equals should be:
  return other is ApplicationDockItem && Equals (other as ApplicationDockItem);
Then implement IEquatable<ApplicationDockItem>. Also, do you declare IDockItem to be IEquatable<IDockItem>?

I stopped here. ApplicationDockItem needs a lot of cleaning up. Let me know when it's ready to be reviewed again.

lp://staging/~jassmith/do/trunk updated
786. By David Siegel <david@x>

Make virgin elements 10x less relevant.

787. By David Siegel <david@x>

Even more drastic relevance simplification: don't check types!

788. By David Siegel <david@david-desktop>

Remove alias actions and item source.

789. By David Siegel <david@david-desktop>

Warn instead of crashing.

790. By David Siegel <david@david-desktop>

Remove unneeded cast

791. By David Siegel <david@david-desktop>

Don't mash the highlight format when query is "b", substituting the <b> tag body!.

792. By Sandy Armstrong

Patch from Sandy Armstrong to fix Main Menu positioning

793. By David Siegel <david@x>

Merge Docky cleanup and feature polish.

794. By David Siegel <david@x>

Remove multiple windows dot indication.

795. By David Siegel <david@x>

Make multiple window indication configurable.

Subscribers

People subscribed via source and target branches