Commit bf5cb440 authored by William Jon McCann's avatar William Jon McCann

Add user-accounts dialog

Copied from the accounts-dialog git module.
parent 6638e984
......@@ -94,7 +94,7 @@ PKG_CHECK_MODULES(DBUS, dbus-1 dbus-glib-1)
PKG_CHECK_MODULES(GNOME_DESKTOP, gnome-desktop-3.0)
PKG_CHECK_MODULES(DEFAULT_APPLICATIONS_CAPPLET, libxml-2.0)
PKG_CHECK_MODULES(GSD_DBUS, gnome-settings-daemon)
PKG_CHECK_MODULES(GIO, gio-2.0)
PKG_CHECK_MODULES(GIO, gio-2.0 gio-unix-2.0)
PKG_CHECK_MODULES(XML, libxml-2.0)
PKG_CHECK_MODULES(CANBERRA, libcanberra-gtk3 >= $CANBERRA_REQUIRED_VERSION)
AC_SUBST(CANBERRA_CFLAGS)
......@@ -112,6 +112,16 @@ AC_SUBST(GTK_ENGINE_DIR)
PKG_CHECK_MODULES(GLIB, glib-2.0)
PKG_CHECK_MODULES(POLKIT, polkit-gobject-1)
PKG_CHECK_MODULES(CHEESE, gstreamer-0.10 cheese-gtk >= 2.29.90, have_cheese=yes, have_cheese=no)
if test x$have_cheese = xyes ; then
AC_DEFINE(HAVE_CHEESE, 1, [Define to 1 to enable cheese webcam support])
fi
AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["`$PKG_CONFIG --variable=prefix iso-codes`"],[ISO codes prefix])
ISO_CODES=iso-codes
dnl
dnl Check for Xft version 2; we build in extra functionality to the font capplet
dnl when we have it.
......@@ -361,6 +371,10 @@ panels/sound/data/icons/scalable/devices/Makefile
panels/sound/data/sounds/Makefile
panels/universal-access/Makefile
panels/universal-access/gnome-universal-access-panel.desktop.in
panels/user-accounts/Makefile
panels/user-accounts/data/Makefile
panels/user-accounts/data/gnome-user-accounts-panel.desktop.in
panels/user-accounts/data/icons/Makefile
po/Makefile.in
shell/Makefile
shell/gnome-control-center.desktop.in
......
......@@ -8,6 +8,7 @@ SUBDIRS= \
default-applications \
keybindings \
universal-access \
user-accounts \
datetime
-include $(top_srcdir)/git.mk
SUBDIRS = data
# This is used in GNOMECC_CAPPLETS_CFLAGS
cappletname = user-accounts
NULL =
ccpanelsdir = $(PANELS_DIR)
ccpanels_LTLIBRARIES = libuser-accounts.la
AM_CPPFLAGS = \
$(GNOMECC_CAPPLETS_CFLAGS) \
-DDATADIR=\""$(datadir)"\" \
-DUIDIR=\""$(pkgdatadir)/ui/user-accounts"\" \
-DLIBLOCALEDIR=\""$(prefix)/lib/locale"\" \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-DUM_PIXMAP_DIR=\""$(pkgdatadir)/pixmaps"\" \
$(PANEL_CFLAGS) \
$(GNOME_DESKTOP_CFLAGS) \
$(POLKIT_CFLAGS) \
$(CHEESE_CFLAGS) \
$(DBUS_CFLAGS) \
$(GIO_CFLAGS) \
$(WARN_CFLAGS)
MARSHALFILES = marshal.c marshal.h
BUILT_SOURCES = $(MARSHALFILES)
marshal.h: fprintd-marshal.list
@GLIB_GENMARSHAL@ --prefix=fprintd_marshal $< --header > $@
marshal.c: fprintd-marshal.list
@GLIB_GENMARSHAL@ --prefix=fprintd_marshal $< --body --header > $@
libuser_accounts_la_CFLAGS = \
$(PANEL_CFLAGS)
libuser_accounts_la_SOURCES = \
gdm-languages.h \
gdm-languages.c \
um-account-type.h \
um-account-type.c \
um-user.h \
um-user.c \
um-user-manager.h \
um-user-manager.c \
um-account-dialog.h \
um-account-dialog.c \
um-language-dialog.h \
um-language-dialog.c \
um-lockbutton.h \
um-lockbutton.c \
um-login-options.h \
um-login-options.c \
um-password-dialog.h \
um-password-dialog.c \
um-photo-dialog.h \
um-photo-dialog.c \
um-crop-area.h \
um-crop-area.c \
um-fingerprint-dialog.h \
um-fingerprint-dialog.c \
um-utils.h \
um-utils.c \
fingerprint-strings.h \
um-strength-bar.h \
um-strength-bar.c \
run-passwd.h \
run-passwd.c \
$(MARSHALFILES) \
um-editable-button.h \
um-editable-button.c \
um-editable-entry.h \
um-editable-entry.c \
um-editable-combo.h \
um-editable-combo.c \
um-user-panel.h \
um-user-panel.c \
um-user-module.c
libuser_accounts_la_LIBADD = \
$(PANEL_LIBS) \
$(GNOME_DESKTOP_LIBS) \
$(POLKIT_LIBS) \
$(CHEESE_LIBS) \
$(DBUS_LIBS) \
$(GIO_LIBS) \
-lcrypt
libuser_accounts_la_LDFLAGS = $(PANEL_LDFLAGS)
EXTRA_DIST = \
locarchive.h \
fprintd-marshal.list
CLEANFILES = \
$(BUILT_SOURCES) \
$(NULL)
MAINTAINERCLEANFILES = \
*~ \
Makefile.in
-include $(top_srcdir)/git.mk
SUBDIRS = icons
uidir = $(pkgdatadir)/ui/user-accounts
ui_DATA = \
account-dialog.ui \
language-chooser.ui \
password-dialog.ui \
photo-dialog.ui \
user-accounts-dialog.ui \
account-fingerprint.ui
@INTLTOOL_DESKTOP_RULE@
desktopdir = $(datadir)/applications
Desktop_in_files = gnome-user-accounts-panel.desktop.in
desktop_DATA = $(Desktop_in_files:.desktop.in=.desktop)
EXTRA_DIST = \
gnome-user-accounts-panel.desktop.in.in \
$(ui_DATA)
CLEANFILES = \
gnome-user-accounts-panel.desktop \
$(NULL)
DISTCLEANFILES = \
$(NULL)
-include $(top_srcdir)/git.mk
<?xml version="1.0"?>
<interface>
<!-- interface-requires gtk+ 2.12 -->
<!-- interface-naming-policy toplevel-contextual -->
<object class="GtkListStore" id="username-model">
<columns>
<!-- column-name gchararray -->
<column type="gchararray"/>
</columns>
</object>
<object class="GtkListStore" id="account-type-model">
<columns>
<!-- column-name gchararray -->
<column type="gchararray"/>
<!-- column-name gint -->
<column type="gint"/>
</columns>
<data>
<row>
<col id="0" translatable="yes" context="Account type">Standard</col>
<col id="1">0</col>
</row>
<row>
<col id="0" translatable="yes" context="Account type">Administrator</col>
<col id="1">1</col>
</row>
<row>
<col id="0" translatable="yes" context="Account type">Supervised</col>
<col id="1">2</col>
</row>
</data>
</object>
<object class="GtkDialog" id="dialog">
<property name="border_width">5</property>
<property name="title"> </property>
<property name="resizable">False</property>
<property name="modal">True</property>
<property name="window_position">center-on-parent</property>
<property name="icon_name">system-users</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkVBox" id="content-area">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<child>
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="border_width">10</property>
<property name="spacing">6</property>
<child>
<object class="GtkTable" id="table1">
<property name="visible">True</property>
<property name="n_rows">5</property>
<property name="n_columns">2</property>
<property name="column_spacing">6</property>
<property name="row_spacing">6</property>
<child>
<object class="GtkComboBoxEntry" id="username-combo">
<property name="visible">True</property>
<property name="model">username-model</property>
<property name="text_column">0</property>
<child internal-child="entry">
<object class="GtkEntry" id="username-entry">
<property name="activates_default">True</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label6">
<property name="visible">True</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">_Username:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">username-combo</property>
<attributes>
<attribute name="foreground" value="#555555555555"/>
</attributes>
</object>
<packing>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="x_options">GTK_FILL</property>
</packing>
</child>
<child>
<object class="GtkHBox" id="hbox1">
<property name="visible">True</property>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
</object>
<packing>
<property name="position">0</property>
</packing>
</child>
</object>
<packing>
<property name="x_options">GTK_FILL</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="label" translatable="yes">Create new account</property>
<attributes>
<attribute name="weight" value="bold"/>
<attribute name="scale" value="1.200000"/>
</attributes>
</object>
<packing>
<property name="right_attach">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
</object>
<packing>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">GTK_FILL</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="name-entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="activates_default">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label5">
<property name="visible">True</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">_Full name:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">name-entry</property>
<attributes>
<attribute name="foreground" value="#555555555555"/>
</attributes>
</object>
<packing>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="x_options">GTK_FILL</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label7">
<property name="visible">True</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">_Account Type:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">account-type-combo</property>
<attributes>
<attribute name="foreground" value="#555555555555"/>
</attributes>
</object>
<packing>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
</packing>
</child>
<child>
<object class="GtkComboBox" id="account-type-combo">
<property name="visible">True</property>
<property name="model">account-type-model</property>
<child>
<object class="GtkCellRendererText" id="account-type-cell"/>
<attributes>
<attribute name="text">0</attribute>
</attributes>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area9">
<property name="visible">True</property>
<property name="layout_style">end</property>
<child>
<object class="GtkButton" id="cancel-button">
<property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="ok-button">
<property name="label" translatable="yes">Cr_eate</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="receives_default">True</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
</object>
</child>
<action-widgets>
<action-widget response="0">cancel-button</action-widget>
<action-widget response="0">ok-button</action-widget>
</action-widgets>
</object>
</interface>
<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="2.16"/>
<!-- interface-naming-policy toplevel-contextual -->
<object class="GtkListStore" id="model1">
<columns>
<!-- column-name gchararray -->
<column type="gchararray"/>
</columns>
<data>
<row>
<col id="0" translatable="yes">Left thumb</col>
</row>
<row>
<col id="0" translatable="yes">Left middle finger</col>
</row>
<row>
<col id="0" translatable="yes">Left ring finger</col>
</row>
<row>
<col id="0" translatable="yes">Left little finger</col>
</row>
<row>
<col id="0" translatable="yes">Right thumb</col>
</row>
<row>
<col id="0" translatable="yes">Right middle finger</col>
</row>
<row>
<col id="0" translatable="yes">Right ring finger</col>
</row>
<row>
<col id="0" translatable="yes">Right little finger</col>
</row>
</data>
</object>
<object class="GtkAssistant" id="assistant">
<property name="border_width">12</property>
<property name="title" translatable="yes">Enable Fingerprint Login</property>
<property name="icon_name">system-users</property>
<child>
<placeholder/>
</child>
<child>
<object class="GtkVBox" id="page1">
<property name="visible">True</property>
<property name="border_width">12</property>
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
<object class="GtkHBox" id="hbox74">
<property name="visible">True</property>
<property name="spacing">6</property>
<child>
<object class="GtkImage" id="image">
<property name="visible">True</property>
<property name="stock">gtk-dialog-info</property>
<property name="icon-size">6</property>
</object>
<packing>
<property name="expand">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="intro-label">
<property name="visible">True</property>
<property name="label">To enable fingerprint login, you need to save one of your fingerprints, using the Acme Foobar 5000.</property>
<property name="wrap">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkVBox" id="vbox70">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkRadioButton" id="radiobutton1">
<property name="label" translatable="yes">Right index finger</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkRadioButton" id="radiobutton2">
<property name="label" translatable="yes">Left index finger</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<property name="group">radiobutton1</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkHBox" id="radiobutton3-hbox">
<property name="visible">True</property>
<property name="spacing">6</property>
<child>
<object class="GtkRadioButton" id="radiobutton3">
<property name="visible">True</property>
<property name="label" translatable="yes">Other finger: </property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<property name="group">radiobutton1</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<object class="GtkComboBox" id="finger_combobox">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="model">model1</property>
<child>
<object class="GtkCellRendererText" id="renderer1"/>
<attributes>
<attribute name="text">0</attribute>
</attributes>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
<child>
<object class="GtkVBox" id="page2">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="enroll-label">
<property name="visible">True</property>
<property name="label">In order to save your fingerprints, you need to swipe your thumb on the "Acme foobar" device.</property>
<property name="wrap">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkHBox" id="enroll_hbox">
<property name="visible">True</property>
<child>
<placeholder/>
</child>
<child>
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="stock">gtk-no</property>
<property name="icon-size">6</property>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkImage" id="image2">
<property name="visible">True</property>
<property name="stock">gtk-no</property>
<property name="icon-size">6</property>
</object>
<packing>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkImage" id="image3">
<property name="visible">True</property>
<property name="stock">gtk-no</property>
<property name="icon-size">6</property>
</object>
<packing>
<property name="position">3</property>
</packing>
</child>
<child>
<object class="GtkImage" id="image4">
<property name="visible">True</property>
<property name="stock">gtk-no</property>
<property name="icon-size">6</property>
</object>
<packing>
<property name="position">4</property>
</packing>
</child>
<child>
<object class="GtkImage" id="image5">
<property name="visible">True</property>
<property name="stock">gtk-no</property>
<property name="icon-size">6</property>
</object>
<packing>
<property name="position">5</property>
</packing>
</child>
<child>
<placeholder/>