~ubuntu-branches/ubuntu/utopic/lightdm/utopic-proposed

« back to all changes in this revision

Viewing changes to liblightdm-gobject/layout.c

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2014-09-30 15:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20140930151151-qnewlpmhhou8u25w
Tags: 1.12.0-0ubuntu1
* New upstream release:
  - Fix assumption that the display server is X when running scripts.
    (LP: #1305006)
  - Don't access .dmrc files until information from these files is required.
    (LP: #1370852)
* debian/patches/01_transition_ubuntu2d_ubuntu_desktop.patch:
  - Dropped, Unity 2D doesn't exist and all users will have been migrated in
    14.04 LTS

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *
3
3
 * Copyright (C) 2010 Robert Ancell.
4
4
 * Author: Robert Ancell <robert.ancell@canonical.com>
5
 
 * 
 
5
 *
6
6
 * This library is free software; you can redistribute it and/or modify it under
7
7
 * the terms of the GNU Lesser General Public License as published by the Free
8
8
 * Software Foundation; either version 2 or version 3 of the License.
117
117
    display = XOpenDisplay (NULL);
118
118
    if (display == NULL)
119
119
        return NULL;
120
 
    
 
120
 
121
121
    xkl_engine = xkl_engine_get_instance (display);
122
122
    xkl_config = xkl_config_rec_new ();
123
123
    if (!xkl_config_rec_get_from_server (xkl_config, xkl_engine))
203
203
/**
204
204
 * lightdm_layout_get_name:
205
205
 * @layout: A #LightDMLayout
206
 
 * 
 
206
 *
207
207
 * Get the name of a layout.
208
 
 * 
 
208
 *
209
209
 * Return value: The name of the layout
210
210
 **/
211
211
const gchar *
218
218
/**
219
219
 * lightdm_layout_get_short_description:
220
220
 * @layout: A #LightDMLayout
221
 
 * 
 
221
 *
222
222
 * Get the short description of a layout.
223
223
 *
224
224
 * Return value: A short description of the layout
233
233
/**
234
234
 * lightdm_layout_get_description:
235
235
 * @layout: A #LightDMLayout
236
 
 * 
 
236
 *
237
237
 * Get the long description of a layout.
238
 
 * 
 
238
 *
239
239
 * Return value: A long description of the layout
240
240
 **/
241
241
const gchar *
308
308
lightdm_layout_class_init (LightDMLayoutClass *klass)
309
309
{
310
310
    GObjectClass *object_class = G_OBJECT_CLASS (klass);
311
 
  
 
311
 
312
312
    g_type_class_add_private (klass, sizeof (LightDMLayoutPrivate));
313
313
 
314
314
    object_class->set_property = lightdm_layout_set_property;