summaryrefslogtreecommitdiff
path: root/gnome-initial-setup
diff options
context:
space:
mode:
authorWill Thompson <wjt@endlessos.org>2022-12-02 14:45:55 +0000
committerWill Thompson <wjt@endlessos.org>2023-01-09 13:17:25 +0000
commit037d1ffea751b17be59821c5bf611e8fdc666d60 (patch)
treedd96416e1375336d9e109856855728bf4f212ed7 /gnome-initial-setup
parent03dcfd21523b52be9cf91c768894d92a03915d37 (diff)
downloadgnome-initial-setup-037d1ffea751b17be59821c5bf611e8fdc666d60.tar.gz
account: Remove “Take a Picture…” button
This button was previously shown only if libcheese found at least one webcam, and hidden otherwise. But since d118d1f14f9eecca1c2935a06d54e0f4e8e00b27 removed the libcheese-based webcam support, there has been no way to take a picture, and this button has always been hidden. Remove the button, saving translators some busywork.
Diffstat (limited to 'gnome-initial-setup')
-rw-r--r--gnome-initial-setup/pages/account/gis-account-avatar-chooser.ui20
-rw-r--r--gnome-initial-setup/pages/account/um-photo-dialog.c2
2 files changed, 0 insertions, 22 deletions
diff --git a/gnome-initial-setup/pages/account/gis-account-avatar-chooser.ui b/gnome-initial-setup/pages/account/gis-account-avatar-chooser.ui
index dff58a1..c533ac9 100644
--- a/gnome-initial-setup/pages/account/gis-account-avatar-chooser.ui
+++ b/gnome-initial-setup/pages/account/gis-account-avatar-chooser.ui
@@ -25,26 +25,6 @@
<property name="selection-mode">none</property>
</object>
</child>
- <child>
- <object class="GtkBox">
- <property name="halign">GTK_ALIGN_CENTER</property>
- <property name="margin-top">12</property>
- <property name="margin-bottom">12</property>
- <property name="margin-start">12</property>
- <property name="margin-end">12</property>
- <property name="spacing">12</property>
- <child>
- <object class="GtkButton" id="take_picture_button">
- <property name="visible">False</property>
- <property name="label" translatable="yes">Take a Picture…</property>
- <signal name="clicked" handler="webcam_icon_selected" swapped="yes"/>
- <style>
- <class name="suggested-action"/>
- </style>
- </object>
- </child>
- </object>
- </child>
</object>
</child>
</template>
diff --git a/gnome-initial-setup/pages/account/um-photo-dialog.c b/gnome-initial-setup/pages/account/um-photo-dialog.c
index 383101d..45cfca1 100644
--- a/gnome-initial-setup/pages/account/um-photo-dialog.c
+++ b/gnome-initial-setup/pages/account/um-photo-dialog.c
@@ -37,7 +37,6 @@
struct _UmPhotoDialog {
GtkPopover parent;
- GtkWidget *take_picture_button;
GtkWidget *flowbox;
GtkWidget *recent_pictures;
@@ -307,7 +306,6 @@ um_photo_dialog_class_init (UmPhotoDialogClass *klass)
gtk_widget_class_bind_template_child (wclass, UmPhotoDialog, flowbox);
gtk_widget_class_bind_template_child (wclass, UmPhotoDialog, recent_pictures);
- gtk_widget_class_bind_template_child (wclass, UmPhotoDialog, take_picture_button);
gtk_widget_class_bind_template_callback (wclass, webcam_icon_selected);
oclass->dispose = um_photo_dialog_dispose;