summary history branches tags files
commit:663d5b795055a2242ff6f95506b7adc9d4bd61f6
author:Trevor Bentley
committer:Trevor Bentley
date:Sun May 7 21:06:24 2017 +0200
parents:6ec8cb01f3b4eb5db550ebdbf431194ded6cef5b
Match updated systray API
diff --git a/src/win/mod.rs b/src/win/mod.rs
line changes: +5/-5
index 700c368..2396ea1
--- a/src/win/mod.rs
+++ b/src/win/mod.rs
@@ -29,8 +29,8 @@ impl TStatusBar for WindowsStatusBar {
             win.add_menu_item(&"Menu Item2".to_string(), false, |window| {println!("hello")});
             let idx = win.add_menu_item(&"Menu Item3".to_string(), false, |window| {println!("hello")});
             let idx = idx.unwrap();
-            win.select_menu_entry(idx);
-            win.unselect_menu_entry(idx);
+            win.select_menu_item(idx);
+            win.unselect_menu_item(idx);
             win.clear_menu();
             win.add_menu_item(&"Menu Item4".to_string(), false, |window| {println!("hello")});
         }
@@ -64,14 +64,14 @@ impl TStatusBar for WindowsStatusBar {
     }
     fn sel_item(&mut self, sender: u64) {
         let ref mut win = &mut self.app.window;
-        win.select_menu_entry(sender as u32);
+        win.select_menu_item(sender as u32);
     }
     fn unsel_item(&mut self, sender: u64) {
         let ref mut win = &mut self.app.window;
-        win.unselect_menu_entry(sender as u32);
+        win.unselect_menu_item(sender as u32);
     }
     fn run(&mut self, block: bool) {
         let ref mut win = &mut self.app.window;
-        win.wait_for_message();
+        win.wait_for_message(block);
     }
 }