[Ekiga-devel-list] Patch display video button
- From: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
- To: Ekiga mailing list <ekiga-devel-list gnome org>
- Subject: [Ekiga-devel-list] Patch display video button
- Date: Wed, 11 Jun 2008 19:03:05 +0200
Hi,
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.
Greetings,
--
Eugen
--- 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_ICON_SIZE_MENU);
gtk_container_add (GTK_CONTAINER (mw->preview_button), image);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]