1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
3
* Copyright (C) 2007 William Jon McCann <mccann@jhu.edu>
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.
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.
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
30
#include <glib/gi18n.h>
33
#include "gdm-layout-chooser-dialog.h"
36
main (int argc, char *argv[])
40
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
41
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
42
textdomain (GETTEXT_PACKAGE);
44
setlocale (LC_ALL, "");
46
gtk_init (&argc, &argv);
48
dialog = gdm_layout_chooser_dialog_new ();
49
gtk_widget_set_size_request (dialog, 480, 480);
51
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK) {
54
name = gdm_layout_chooser_dialog_get_current_layout_name (GDM_LAYOUT_CHOOSER_DIALOG (dialog));
55
g_message ("Layout: %s", name ? name : "(null)");
58
gtk_widget_destroy (dialog);