[gnome-control-center/show-take-a-pic-button] user-accounts: Show "Take a picture" button only when cam is available
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/show-take-a-pic-button] user-accounts: Show "Take a picture" button only when cam is available
- Date: Wed, 5 Aug 2020 13:47:55 +0000 (UTC)
commit afcd0077dd4fe1b5224c8a789f30cddbbc16aa6b
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Aug 5 15:46:33 2020 +0200
user-accounts: Show "Take a picture" button only when cam is available
We already had the machanism to show/hide the button based on the number
of camera devices detected. We were just not checking for that at
startup.
Fixes #1087
panels/user-accounts/cc-avatar-chooser.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/panels/user-accounts/cc-avatar-chooser.c b/panels/user-accounts/cc-avatar-chooser.c
index 13d290a71..d0d4e1bbe 100644
--- a/panels/user-accounts/cc-avatar-chooser.c
+++ b/panels/user-accounts/cc-avatar-chooser.c
@@ -387,6 +387,7 @@ setup_cheese_camera_device_monitor (CcAvatarChooser *self)
g_signal_connect_object (G_OBJECT (self->monitor), "added", G_CALLBACK (device_added), self,
G_CONNECT_SWAPPED);
g_signal_connect_object (G_OBJECT (self->monitor), "removed", G_CALLBACK (device_removed), self,
G_CONNECT_SWAPPED);
cheese_camera_device_monitor_coldplug (self->monitor);
+ update_photo_menu_status (self);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]