File: window.c

package info (click to toggle)
viewmol 2.4.1-18
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 7,300 kB
  • sloc: ansic: 30,727; python: 1,846; sh: 1,282; awk: 433; makefile: 374
file content (49 lines) | stat: -rw-r--r-- 1,554 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*******************************************************************************
*                                                                              *
*                                   Viewmol                                    *
*                                                                              *
*                               W I N D O W . C                                *
*                                                                              *
*                 Copyright (c) Joerg-R. Hill, October 2003                    *
*                                                                              *
********************************************************************************
*
* $Id: window.c,v 1.6 2003/11/07 11:17:31 jrh Exp $
* $Log: window.c,v $
* Revision 1.6  2003/11/07 11:17:31  jrh
* Release 2.4
*
* Revision 1.5  2000/12/10 15:19:04  jrh
* Release 2.3
*
* Revision 1.4  1999/05/24 01:27:59  jrh
* Release 2.2.1
*
* Revision 1.3  1999/02/07 21:59:50  jrh
* Release 2.2
*
* Revision 1.2  1998/01/26 00:49:49  jrh
* Release 2.1
*
* Revision 1.1  1996/12/10  18:44:28  jrh
* Initial revision
*
*/
#include<X11/Xlib.h>
#include<X11/Intrinsic.h>
#include<Xm/Xm.h>
#include "viewmol.h"

void setWindowTitle(Widget widget, char *title)
{
  if (title != NULL)
    XtVaSetValues(XtParent(widget), XmNtitle, title, NULL);

/*XTextProperty text;

  if (XStringListToTextProperty(&title, 1, &text))
  {
    XSetWMName(XtDisplay(widget), XtWindow(widget), &text);
    XFlush(XtDisplay(widget));
  } */
}