[cheese/three-point-oh] Re-enable mode change when out of video mode
- From: Yuvaraj Pandian <yuvipanda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/three-point-oh] Re-enable mode change when out of video mode
- Date: Tue, 8 Jun 2010 07:56:06 +0000 (UTC)
commit 733c8f359eeb91be1f35baf4e4da0569bce8622d
Author: Yuvi Panda <yuvipanda gmail com>
Date: Tue Jun 8 12:31:39 2010 +0530
Re-enable mode change when out of video mode
valasrc/cheese-window.vala | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/valasrc/cheese-window.vala b/valasrc/cheese-window.vala
index d37d453..4a1fe15 100644
--- a/valasrc/cheese-window.vala
+++ b/valasrc/cheese-window.vala
@@ -91,6 +91,12 @@ public class Cheese.MainWindow : Gtk.Window {
set_mode((MediaMode)action.value);
}
+ private void enable_mode_change() {
+ photo_mode_action.sensitive = true;
+ video_mode_action.sensitive = true;
+ burst_mode_action.sensitive = true;
+ }
+
private void disable_mode_change() {
switch(this.current_mode) {
case MediaMode.PHOTO:
@@ -280,6 +286,7 @@ public class Cheese.MainWindow : Gtk.Window {
take_action_button_label.label = "<b>" + take_action_button.related_action.label + "</b>";
take_action_button_image.set_from_stock(Gtk.STOCK_MEDIA_RECORD, Gtk.IconSize.BUTTON);
this.is_recording = false;
+ this.enable_mode_change();
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]