diff options
author | William Jon McCann <mccann@jhu.edu> | 2007-11-09 15:33:05 +0000 |
---|---|---|
committer | William Jon McCann <mccann@src.gnome.org> | 2007-11-09 15:33:05 +0000 |
commit | c8f91aede3bf99e5514201c0b31508e9ad944928 (patch) | |
tree | 94d5577c66883fd4bd8ab28dda2d205f493fa3e9 /daemon | |
parent | e3962077f95f4a7a438e1be8c997c64db7c4ff05 (diff) | |
download | gdm-c8f91aede3bf99e5514201c0b31508e9ad944928.tar.gz |
Add emacs mode lines, split lines.
2007-11-09 William Jon McCann <mccann@jhu.edu>
* daemon/gdm-display-access-file.c:
(gdm_display_access_file_class_init),
(gdm_display_access_file_new),
(gdm_display_access_file_add_display):
* daemon/gdm-display-access-file.h:
Add emacs mode lines, split lines.
svn path=/trunk/; revision=5500
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gdm-display-access-file.c | 32 | ||||
-rw-r--r-- | daemon/gdm-display-access-file.h | 6 |
2 files changed, 24 insertions, 14 deletions
diff --git a/daemon/gdm-display-access-file.c b/daemon/gdm-display-access-file.c index 087de2b7..0cc0edb3 100644 --- a/daemon/gdm-display-access-file.c +++ b/daemon/gdm-display-access-file.c @@ -1,4 +1,6 @@ -/* gdm-display-access-file.c - Abstraction around xauth cookies +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- + * + * gdm-display-access-file.c - Abstraction around xauth cookies * * Copyright (C) 2007 Ray Strode <rstrode@redhat.com> * @@ -17,8 +19,8 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ + #include "config.h" -#include "gdm-display-access-file.h" #include <errno.h> #include <pwd.h> @@ -33,6 +35,8 @@ #include <X11/Xauth.h> +#include "gdm-display-access-file.h" + struct _GdmDisplayAccessFilePrivate { char *username; @@ -112,13 +116,17 @@ gdm_display_access_file_class_init (GdmDisplayAccessFileClass *access_file_class object_class->get_property = gdm_display_access_file_get_property; object_class->set_property = gdm_display_access_file_set_property; - param_spec = g_param_spec_string ("username", "Username", + param_spec = g_param_spec_string ("username", + "Username", "Owner of Xauthority file", - NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); g_object_class_install_property (object_class, PROP_USERNAME, param_spec); - param_spec = g_param_spec_string ("path", "Path", + param_spec = g_param_spec_string ("path", + "Path", "Path to Xauthority file", - NULL, G_PARAM_READABLE); + NULL, + G_PARAM_READABLE); g_object_class_install_property (object_class, PROP_PATH, param_spec); g_type_class_add_private (access_file_class, sizeof (GdmDisplayAccessFilePrivate)); } @@ -175,7 +183,8 @@ gdm_display_access_file_new (const char *username) g_return_val_if_fail (username != NULL, NULL); access_file = g_object_new (GDM_TYPE_DISPLAY_ACCESS_FILE, - "username", username, NULL); + "username", username, + NULL); return access_file; } @@ -359,11 +368,10 @@ gdm_display_access_file_add_display (GdmDisplayAccessFile *file, *cookie_size = GDM_DISPLAY_ACCESS_COOKIE_SIZE; add_error = NULL; - display_added = - gdm_display_access_file_add_display_with_cookie (file, display, - *cookie, - *cookie_size, - &add_error); + display_added = gdm_display_access_file_add_display_with_cookie (file, display, + *cookie, + *cookie_size, + &add_error); if (!display_added) { g_free (*cookie); *cookie = NULL; diff --git a/daemon/gdm-display-access-file.h b/daemon/gdm-display-access-file.h index 79f313e7..5ab7eda9 100644 --- a/daemon/gdm-display-access-file.h +++ b/daemon/gdm-display-access-file.h @@ -1,4 +1,6 @@ -/* gdm-display-access-file.h - Abstraction around xauth cookies +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- + * + * gdm-display-access-file.h - Abstraction around xauth cookies * * Copyright (C) 2007 Ray Strode <rstrode@redhat.com> * @@ -17,7 +19,7 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. + * 02111-1307, USA. */ #ifndef __GDM_DISPLAY_ACCESS_FILE_H__ #define __GDM_DISPLAY_ACCESS_FILE_H__ |