[cheese] menu: disable Take Photo when there is no camera



commit fba61486adb3fb9e0172e79ffd8beeaef079ab30
Author: Yuvaraj Pandian <yuvipanda gmail com>
Date:   Fri Apr 9 01:34:42 2010 +0530

    menu: disable Take Photo when there is no camera
    
    https://bugzilla.gnome.org/show_bug.cgi?id=615002

 src/cheese-window.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/cheese-window.c b/src/cheese-window.c
index 7678d5d..01bbb9f 100644
--- a/src/cheese-window.c
+++ b/src/cheese-window.c
@@ -1215,6 +1215,7 @@ on_widget_error (CheeseWidget        *widget,
 
   /* FIXME: hotplug new devices and hide the info bar */
   gtk_action_group_set_sensitive (priv->actions_prefs, FALSE);
+  gtk_action_group_set_sensitive (priv->actions_photo, FALSE);
   cheese_no_camera_set_info_bar_text_and_icon (GTK_INFO_BAR (priv->info_bar),
                                                "gtk-dialog-error",
                                                error->message,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]