Skip to content

Commit

Permalink
Remove long back press event
Browse files Browse the repository at this point in the history
This was not woking/implemented and is no longer useful. brickrun takes care of handling stopping programs by pressing a button.
  • Loading branch information
dlech committed Aug 31, 2017
1 parent c3199ad commit 9dd7198
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
3 changes: 2 additions & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
brickman (0.10.0) testing; urgency=medium

* Update for GRX 3.0.0
* Update for GRX 3.0.0 (fixes console switching)
* Use brickrun to launch programs and log stderr to file
* Remove long back press feature

-- David Lechner <david@lechnology.com> Thu, 31 Aug 2017 15:57:10 -0500

Expand Down
5 changes: 0 additions & 5 deletions src/GlobalManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ namespace BrickManager {
*/
public Ev3devKit.Devices.DeviceManager device_manager { get; private set; }

/**
* Emitted when the back button is held down for one second.
*/
public signal void back_button_long_pressed ();

public GlobalManager () {
device_manager = new Ev3devKit.Devices.DeviceManager ();
if (Ev3devKit.Devices.Cpu.get_model ().has_prefix ("LEGO MINDSTORMS EV3")) {
Expand Down
8 changes: 0 additions & 8 deletions src/main.vala
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ namespace BrickManager {
Screen.get_active_screen ().status_bar.add_right (bluetooth_controller.status_bar_item);
Screen.get_active_screen ().status_bar.add_right (open_roberta_controller.status_bar_item);

// show the shutdown menu on long back button press, but only if
// brickman is active.
global_manager.back_button_long_pressed.connect_after (() => {
if (app.is_active) {
home_window.shutdown_dialog.show ();
}
});

Systemd.Logind.Manager logind_manager = null;
Systemd.Logind.Manager.get_system_manager.begin ((obj, res) => {
try {
Expand Down

0 comments on commit 9dd7198

Please sign in to comment.