cheese r601 - in trunk: . src



Author: dgsiegel
Date: Tue Mar 18 23:44:37 2008
New Revision: 601
URL: http://svn.gnome.org/viewvc/cheese?rev=601&view=rev

Log:
do not allow to take pictures, while the webcam is initialising, fixes bug #523121


Modified:
   trunk/ChangeLog
   trunk/src/cheese-window.c

Modified: trunk/src/cheese-window.c
==============================================================================
--- trunk/src/cheese-window.c	(original)
+++ trunk/src/cheese-window.c	Tue Mar 18 23:44:37 2008
@@ -1096,6 +1096,7 @@
   gtk_label_set_text_with_mnemonic (GTK_LABEL (cheese_window->label_take_photo), str);
   g_free (str);
   gtk_label_set_use_markup (GTK_LABEL (cheese_window->label_take_photo), TRUE);
+  gtk_widget_set_sensitive (GTK_WIDGET (cheese_window->take_picture), FALSE);
 
   cheese_window->thumb_view = cheese_thumb_view_new ();
   gtk_container_add (GTK_CONTAINER (cheese_window->thumb_scrollwindow), cheese_window->thumb_view);
@@ -1272,6 +1273,7 @@
   gtk_notebook_set_current_page (GTK_NOTEBOOK(cheese_window->notebook), 0);
   ephy_spinner_stop (EPHY_SPINNER (cheese_window->throbber));
   gdk_threads_leave ();
+  gtk_widget_set_sensitive (GTK_WIDGET (cheese_window->take_picture), TRUE);
 }
 
 void



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