Author: bklaas
Date: Wed Apr 20 15:08:49 2011
New Revision: 9429

URL: http://svn.slimdevices.com/jive?rev=9429&view=rev
Log:
Bug: 15398
Description: first pass at making the alarm popup menu scrolling "sticky". 
Trying this out with 3x the stickiness of a normal menu, where stickiness is 
defined as how many more detents are needed to trigger a menu scroll.

Modified:
    
7.6/trunk/squeezeplay/src/squeezeplay/share/applets/AlarmSnooze/AlarmSnoozeApplet.lua
    7.6/trunk/squeezeplay/src/squeezeplay/share/jive/ui/StickyMenu.lua

Modified: 
7.6/trunk/squeezeplay/src/squeezeplay/share/applets/AlarmSnooze/AlarmSnoozeApplet.lua
URL: 
http://svn.slimdevices.com/jive/7.6/trunk/squeezeplay/src/squeezeplay/share/applets/AlarmSnooze/AlarmSnoozeApplet.lua?rev=9429&r1=9428&r2=9429&view=diff
==============================================================================
--- 
7.6/trunk/squeezeplay/src/squeezeplay/share/applets/AlarmSnooze/AlarmSnoozeApplet.lua
 (original)
+++ 
7.6/trunk/squeezeplay/src/squeezeplay/share/applets/AlarmSnooze/AlarmSnoozeApplet.lua
 Wed Apr 20 15:08:49 2011
@@ -14,7 +14,7 @@
 local Group            = require("jive.ui.Group")
 local Icon             = require("jive.ui.Icon")
 local Label            = require("jive.ui.Label")
-local SimpleMenu       = require("jive.ui.SimpleMenu")
+local StickyMenu       = require("jive.ui.StickyMenu")
 local Window           = require("jive.ui.Window")
 local Popup            = require("jive.ui.Popup")
 local Timer            = require("jive.ui.Timer")
@@ -570,7 +570,7 @@
                time = label,
        })
 
-       local menu = SimpleMenu('menu')
+       local menu = StickyMenu('menu', 3)
        menu:addItem({
                text = self:string("ALARM_SNOOZE_SNOOZE"),
                sound = "WINDOWHIDE",

Modified: 7.6/trunk/squeezeplay/src/squeezeplay/share/jive/ui/StickyMenu.lua
URL: 
http://svn.slimdevices.com/jive/7.6/trunk/squeezeplay/src/squeezeplay/share/jive/ui/StickyMenu.lua?rev=9429&r1=9428&r2=9429&view=diff
==============================================================================
--- 7.6/trunk/squeezeplay/src/squeezeplay/share/jive/ui/StickyMenu.lua 
(original)
+++ 7.6/trunk/squeezeplay/src/squeezeplay/share/jive/ui/StickyMenu.lua Wed Apr 
20 15:08:49 2011
@@ -9,8 +9,8 @@
 
 =head1 SYNOPSIS
 
- -- Create a new menu
- local menu = jive.ui.StickyMenu("menu",
+ -- Create a new menu, with a sticky multiplier of 3x the stickiness of a 
normal menu
+ local menu = jive.ui.StickyMenu("menu", 3
                   {
                           {
                                   id = 'uniqueString',
@@ -26,8 +26,7 @@
                                   icon = widget2,
                                   callback = function2
                           ),
-                  },
-               2
+                  }
 )
 
 =head1 STYLE

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to