~ubuntu-branches/ubuntu/wily/docky/wily-proposed

« back to all changes in this revision

Viewing changes to StandardPlugins/Clock/src/ClockDockItem.cs

  • Committer: Bazaar Package Importer
  • Author(s): Iain Lane
  • Date: 2010-05-04 16:15:39 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100504161539-fxt02zw6oprun9gi
Tags: 2.0.3.1-1
* New upstream release 2.0.3.1 "You should have heard from us by now",
  changes include:
  + fix gnome-keyring related crash in Lucid caused by GMail docklet
    (LP: #555562)
  + catch exception for read-failure of cxoffice launcher (LP: #573294)
  + check if authentication is used before using network proxy
  + make sure to update screen regions when showing menus
  + make transparent themed docks still glow in configuration mode
    (LP: #572416)
  + Memory Leaks
    - some unlinked handlers and pixbufs (DockItemMenu, WindowDockItem, ...)
    - proper disposal of tile-widgets in preferences dialog
    - properly using DesktopAppInfo for launching application
  + GMail: fix exception when reloading (LP: #573991)
  + CLOCK: popup menu must always show icons (LP: #574003)
  + helpers crash when dbus isn't available (LP: #540688)
* debian/rules: Don't byte compile python helpers as this causes them to
  appear in the prefs window twice (and the compiled ones don't work) 
* debian/control: Add dep on librsvg2-common to fix installability when this
  isn't otherwise available.

Show diffs side-by-side

added added

removed removed

Lines of Context:
418
418
                protected override MenuList OnGetMenuItems ()
419
419
                {
420
420
                        MenuList list = base.OnGetMenuItems ();
421
 
                        list[MenuListContainer.Actions].Add (new MenuItem (Catalog.GetString ("Di_gital Clock"), ShowDigital ? "gtk-apply" : "gtk-remove", (o, a) =>
 
421
                        list[MenuListContainer.Actions].Add (new IconMenuItem (Catalog.GetString ("Di_gital Clock"), ShowDigital ? "gtk-apply" : "gtk-remove", (o, a) =>
422
422
                        {
423
423
                                ShowDigital = !ShowDigital;
424
424
                                QueueRedraw ();
425
425
                        }));
426
426
                        
427
 
                        list[MenuListContainer.Actions].Add (new MenuItem (Catalog.GetString ("24-Hour _Clock"), ShowMilitary ? "gtk-apply" : "gtk-remove", (o, a) =>
 
427
                        list[MenuListContainer.Actions].Add (new IconMenuItem (Catalog.GetString ("24-Hour _Clock"), ShowMilitary ? "gtk-apply" : "gtk-remove", (o, a) =>
428
428
                        {
429
429
                                ShowMilitary = !ShowMilitary;
430
430
                                QueueRedraw ();
431
431
                        }, !ShowDigital));
432
432
                        
433
 
                        list[MenuListContainer.Actions].Add (new MenuItem (Catalog.GetString ("Show _Date"), ShowDate ? "gtk-apply" : "gtk-remove", (o, a) =>
 
433
                        list[MenuListContainer.Actions].Add (new IconMenuItem (Catalog.GetString ("Show _Date"), ShowDate ? "gtk-apply" : "gtk-remove", (o, a) =>
434
434
                        {
435
435
                                ShowDate = !ShowDate;
436
436
                                QueueRedraw ();