~ubuntu-branches/ubuntu/quantal/libxss/quantal

« back to all changes in this revision

Viewing changes to src/XScrnSaver.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau, Brice Goglin, Timo Aaltonen, Julien Cristau
  • Date: 2009-12-02 15:28:17 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20091202152817-60f4e53kgd9l90vh
Tags: 1:1.2.0-1
[ Brice Goglin ]
* Add a link to www.X.org and a reference to the upstream module
  in the long description.
* Add README.source, bump Standards-Version to 3.8.2.
* Use updated xsfbs, closes: #538600.
* Move -dbg package to section debug.

[ Timo Aaltonen ]
* New upstream release.
* Add includes in -dev, bump {Build-,}Depends, add Replaces on
  x11proto-scrnsaver-dev.
* Run autoreconf on build. Add build-deps on automake, libtool
  and xutils-dev.
* Parse space-separated DEB_BUILD_OPTIONS, and handle parallel=N.
* Bump Standards-Version to 3.8.3 (no changes).
* Drop pre-dependency on x11-common from libxss-dev. This was needed
  for upgrades from sarge.

[ Julien Cristau ]
* debian/rules: fix rules dependencies.
* libxss-dev.install: add header moved over from the proto.

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
 
157
157
Bool XScreenSaverQueryExtension (
158
158
    Display     *dpy,
159
 
    int         *event_basep,
160
 
    int         *error_basep)
 
159
    int         *event_base_return,
 
160
    int         *error_base_return)
161
161
{
162
162
    XExtDisplayInfo *info = find_display (dpy);
163
163
 
164
164
    if (XextHasExtension(info)) {
165
 
        *event_basep = info->codes->first_event;
166
 
        *error_basep = info->codes->first_error;
 
165
        *event_base_return = info->codes->first_event;
 
166
        *error_base_return = info->codes->first_error;
167
167
        return True;
168
168
    } else {
169
169
        return False;
173
173
 
174
174
Status XScreenSaverQueryVersion(
175
175
    Display     *dpy,
176
 
    int         *major_versionp,
177
 
    int         *minor_versionp)
 
176
    int         *major_version_return,
 
177
    int         *minor_version_return)
178
178
{
179
179
    XExtDisplayInfo *info = find_display (dpy);
180
180
    xScreenSaverQueryVersionReply           rep;
193
193
        SyncHandle ();
194
194
        return 0;
195
195
    }
196
 
    *major_versionp = rep.majorVersion;
197
 
    *minor_versionp = rep.minorVersion;
 
196
    *major_version_return = rep.majorVersion;
 
197
    *minor_version_return = rep.minorVersion;
198
198
    UnlockDisplay (dpy);
199
199
    SyncHandle ();
200
200
    return 1;
351
351
    req->borderWidth = border_width;
352
352
    req->c_class = class;
353
353
    req->depth = depth;
354
 
    if (visual == CopyFromParent)
 
354
    if (visual == (Visual *)CopyFromParent)
355
355
        req->visualID = CopyFromParent;
356
356
    else
357
357
        req->visualID = visual->visualid;