[134] | 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- |
---|
| 2 | * |
---|
| 3 | * Copyright (C) 2007 William Jon McCann <mccann@jhu.edu> |
---|
| 4 | * |
---|
| 5 | * This program is free software; you can redistribute it and/or modify |
---|
| 6 | * it under the terms of the GNU General Public License as published by |
---|
| 7 | * the Free Software Foundation; either version 2 of the License, or |
---|
| 8 | * (at your option) any later version. |
---|
| 9 | * |
---|
| 10 | * This program is distributed in the hope that it will be useful, |
---|
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 13 | * GNU General Public License for more details. |
---|
| 14 | * |
---|
| 15 | * You should have received a copy of the GNU General Public License |
---|
| 16 | * along with this program; if not, write to the Free Software |
---|
| 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
| 18 | */ |
---|
| 19 | |
---|
| 20 | #include "config.h" |
---|
| 21 | |
---|
| 22 | #include <stdlib.h> |
---|
| 23 | #include <libintl.h> |
---|
| 24 | #include <locale.h> |
---|
| 25 | #include <string.h> |
---|
| 26 | #include <unistd.h> |
---|
| 27 | #include <signal.h> |
---|
| 28 | #include <errno.h> |
---|
| 29 | |
---|
| 30 | #include <glib/gi18n.h> |
---|
| 31 | #include <gtk/gtk.h> |
---|
| 32 | |
---|
| 33 | #include "gdm-settings-client.h" |
---|
| 34 | |
---|
| 35 | #include "gdm-greeter-login-window.h" |
---|
| 36 | |
---|
| 37 | int |
---|
| 38 | main (int argc, char *argv[]) |
---|
| 39 | { |
---|
| 40 | GtkWidget *login_window; |
---|
| 41 | |
---|
| 42 | bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); |
---|
| 43 | bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); |
---|
| 44 | textdomain (GETTEXT_PACKAGE); |
---|
| 45 | |
---|
| 46 | setlocale (LC_ALL, ""); |
---|
| 47 | |
---|
| 48 | gtk_init (&argc, &argv); |
---|
| 49 | |
---|
| 50 | if (! gdm_settings_client_init (GDMCONFDIR "/gdm.schemas", "/")) { |
---|
| 51 | g_critical ("Unable to initialize settings client"); |
---|
| 52 | exit (1); |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | login_window = gdm_greeter_login_window_new (TRUE); |
---|
| 56 | gtk_widget_show (login_window); |
---|
| 57 | |
---|
| 58 | gtk_main (); |
---|
| 59 | |
---|
| 60 | return 0; |
---|
| 61 | } |
---|