~ubuntu-branches/ubuntu/saucy/xterm/saucy-proposed

« back to all changes in this revision

Viewing changes to trace.c

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Kavanagh
  • Date: 2008-11-23 17:15:10 UTC
  • mfrom: (1.1.10 upstream) (11.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20081123171510-fdwvfr4ytnfvjwjl
Tags: 237-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - Enabled URL hilighting
  - Maintainer field
  - rm -rf for .pc patches
* Closes (LP: #301451)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $XTermId: trace.c,v 1.83 2007/12/31 20:58:29 tom Exp $ */
 
1
/* $XTermId: trace.c,v 1.85 2008/06/03 20:52:34 tom Exp $ */
2
2
 
3
3
/************************************************************
4
4
 
5
 
Copyright 1997-2006,2007 by Thomas E. Dickey
 
5
Copyright 1997-2007,2008 by Thomas E. Dickey
6
6
 
7
7
                        All Rights Reserved
8
8
 
438
438
        TRACE(("   max        %d,%d\n", hints->max_height, hints->max_width));
439
439
    if (hints->flags & PResizeInc)
440
440
        TRACE(("   inc        %d,%d\n", hints->height_inc, hints->width_inc));
 
441
    else
 
442
        TRACE(("   inc        NONE!\n"));
441
443
    if (hints->flags & PAspect)
442
444
        TRACE(("   min aspect %d/%d\n", hints->min_aspect.y, hints->min_aspect.y));
443
445
    if (hints->flags & PAspect)
494
496
    XSetErrorHandler(save);
495
497
}
496
498
 
 
499
int
 
500
TraceResizeRequest(const char *fn, int ln, Widget w,
 
501
                   Dimension reqwide,
 
502
                   Dimension reqhigh,
 
503
                   Dimension * gotwide,
 
504
                   Dimension * gothigh)
 
505
{
 
506
    int rc;
 
507
 
 
508
    TRACE(("%s@%d ResizeRequest %dx%d\n", fn, ln, reqhigh, reqwide));
 
509
    rc = XtMakeResizeRequest((Widget) w, reqwide, reqhigh, gotwide, gothigh);
 
510
    TRACE(("... ResizeRequest -> "));
 
511
    if (gothigh && gotwide)
 
512
        TRACE(("%dx%d ", *gothigh, *gotwide));
 
513
    TRACE(("(%d)\n", rc));
 
514
    return rc;
 
515
}
 
516
 
497
517
#define XRES_S(name) Trace(#name " = %s\n", NonNull(resp->name))
498
518
#define XRES_B(name) Trace(#name " = %s\n", BtoS(resp->name))
499
519
#define XRES_I(name) Trace(#name " = %d\n", resp->name)