[Xfce4-commits] [panel-plugins/xfce4-stopwatch-plugin] 02/02: Add "reset" via context menu
noreply at xfce.org
noreply at xfce.org
Wed Aug 21 11:33:21 CEST 2019
This is an automated email from the git hooks/post-receive script.
n c o p a p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-stopwatch-plugin.
commit f923715e150e2d979fa85ea8de54311afd22f6f8
Author: Natanael Copa <ncopa at alpinelinux.org>
Date: Thu Mar 14 12:03:02 2019 +0100
Add "reset" via context menu
---
panel-plugin/stopwatch.vala | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/panel-plugin/stopwatch.vala b/panel-plugin/stopwatch.vala
index f51a876..2ec1196 100644
--- a/panel-plugin/stopwatch.vala
+++ b/panel-plugin/stopwatch.vala
@@ -209,6 +209,13 @@ public class StopwatchPlugin : Xfce.PanelPlugin {
box.set_orientation (orientation);
});
+ var item = new Gtk.MenuItem.with_label (_("Reset"));
+ item.activate.connect (() => {
+ timerButton.reset ();
+ });
+ item.show_all ();
+ menu_insert_item (item);
+
timerButton = new TimerButton (timer);
this.add_action_widget (timerButton);
box.add (timerButton);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list