diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-08-30 16:00:06 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-08-30 17:46:10 +0800 |
commit | 44f6461a975b9b2e309fae4ff052eb12df99704a (patch) | |
tree | 9c9b52b64157e592121bb1cde0a0f98f6d4fa45e /src | |
parent | cd4cb2693bf0d46201971720cc9c6e4d70fbb8dc (diff) | |
download | gsoc2013-empathy-44f6461a975b9b2e309fae4ff052eb12df99704a.tar gsoc2013-empathy-44f6461a975b9b2e309fae4ff052eb12df99704a.tar.gz gsoc2013-empathy-44f6461a975b9b2e309fae4ff052eb12df99704a.tar.bz2 gsoc2013-empathy-44f6461a975b9b2e309fae4ff052eb12df99704a.tar.lz gsoc2013-empathy-44f6461a975b9b2e309fae4ff052eb12df99704a.tar.xz gsoc2013-empathy-44f6461a975b9b2e309fae4ff052eb12df99704a.tar.zst gsoc2013-empathy-44f6461a975b9b2e309fae4ff052eb12df99704a.zip |
Save the video preview position in gsettings
And place it in the last used position when starting a new call.
https://bugzilla.gnome.org/show_bug.cgi?id=656889
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-call-window.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index c1cf56141..0fd81ee04 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -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); |