[empathy] CameraMenu: restore the last selected camera on creation



commit 25504e2ad3be8e09f12fe9d712be67af11d0c605
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Tue Aug 2 10:01:46 2011 +0100

    CameraMenu: restore the last selected camera on creation

 src/empathy-camera-menu.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-camera-menu.c b/src/empathy-camera-menu.c
index 16ad07a..b73337e 100644
--- a/src/empathy-camera-menu.c
+++ b/src/empathy-camera-menu.c
@@ -286,6 +286,11 @@ empathy_camera_menu_get_cameras (EmpathyCameraMenu *self)
     }
 
   empathy_camera_menu_update (self);
+
+  /* Do as if the gsettings key had changed, so we select the key that
+   * was last set. */
+  empathy_camera_menu_prefs_camera_changed_cb (self->priv->settings,
+      EMPATHY_PREFS_CALL_CAMERA_DEVICE, self);
 }
 
 static void



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