[Ekiga-devel-list] Patch display video button


The "Display video from camera" button does not get the saved value from the init file. To reproduce: start ekiga, suppose the video is on. Press the button, the video turns off. Stop ekiga. Restart ekiga. The video is seen but the button is off.

Patch attached.  Please review.

--- src/gui/main.cpp-orig	2008-06-11 18:56:49.000000000 +0200
+++ src/gui/main.cpp	2008-06-11 18:54:19.000000000 +0200
@@ -2193,6 +2193,8 @@
   item = gtk_tool_item_new ();
   mw->preview_button = gtk_toggle_button_new ();
   gtk_button_set_relief (GTK_BUTTON (mw->preview_button), GTK_RELIEF_NONE);
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (mw->preview_button),
+								gm_conf_get_bool ((gchar *) VIDEO_DEVICES_KEY "enable_preview"));
   image = gtk_image_new_from_icon_name (GM_ICON_CAMERA_VIDEO, 
   gtk_container_add (GTK_CONTAINER (mw->preview_button), image);

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