[cheese] Disable the preferences action while shooting
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Disable the preferences action while shooting
- Date: Tue, 17 Sep 2013 07:11:38 +0000 (UTC)
commit 7ab9209f06b89f6f830169f1f3e4a2afda2c44aa
Author: David King <amigadave amigadave com>
Date: Tue Sep 3 17:53:13 2013 +0100
Disable the preferences action while shooting
Changing the resolution or camera device while recording can lead to a
crash, so avoid the problem by disabling the preferences action whenever
the mode change actions are disabled. Fixes bug 670782.
src/cheese-window.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index a406288..4585a66 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -381,6 +381,8 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
mode.set_enabled (true);
var effects = this.application.lookup_action ("effects") as SimpleAction;
effects.set_enabled (true);
+ var preferences = this.application.lookup_action ("preferences") as SimpleAction;
+ preferences.set_enabled (true);
}
/**
@@ -392,6 +394,8 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
mode.set_enabled (false);
var effects = this.application.lookup_action ("effects") as SimpleAction;
effects.set_enabled (false);
+ var preferences = this.application.lookup_action ("preferences") as SimpleAction;
+ preferences.set_enabled (false);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]