]> git.0d.be Git - empathy.git/blobdiff - src/empathy-call-window.c
Save the video preview position in gsettings
[empathy.git] / src / empathy-call-window.c
index c1cf561418ca1e798efc8ddc8ec9712e89e6d0c3..0fd81ee04284d0b0c29fbc40e782d3648a93836c 100644 (file)
@@ -810,6 +810,8 @@ empathy_call_window_move_video_preview (EmpathyCallWindow *self,
       default:
         g_warn_if_reached ();
     }
+
+  g_settings_set_enum (self->priv->settings, "camera-position", pos);
 }
 
 static void
@@ -985,9 +987,12 @@ create_video_preview (EmpathyCallWindow *self)
   ClutterActor *b;
   ClutterAction *action;
   GtkWidget *button;
+  PreviewPosition pos;
 
   g_assert (priv->video_preview == NULL);
 
+  pos = g_settings_get_enum (priv->settings, "camera-position");
+
   preview = empathy_rounded_texture_new ();
   clutter_actor_set_size (preview,
       SELF_VIDEO_SECTION_WIDTH, SELF_VIDEO_SECTION_HEIGHT);
@@ -1072,6 +1077,8 @@ create_video_preview (EmpathyCallWindow *self)
       CLUTTER_BIN_ALIGNMENT_START,
       CLUTTER_BIN_ALIGNMENT_END);
 
+  empathy_call_window_move_video_preview (self, pos);
+
   action = clutter_drag_action_new ();
   g_signal_connect (action, "drag-begin",
       G_CALLBACK (empathy_call_window_preview_on_drag_begin_cb), self);