summaryrefslogtreecommitdiff
path: root/xgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2007-12-08 17:09:37 +0000
committerEric S. Raymond <esr@thyrsus.com>2007-12-08 17:09:37 +0000
commit1e2a555be86bb08172f87e510828359a7c488571 (patch)
treee6efad460f3ff6bd955de503f7ade8f2ddab3e1d /xgps.c
parent8d3773dc121ffab4c94c955f5249a668a0bbb3aa (diff)
downloadgpsd-1e2a555be86bb08172f87e510828359a7c488571.tar.gz
Enclose the GPS frame in a form so we can decorate it.
Diffstat (limited to 'xgps.c')
-rw-r--r--xgps.c26
1 files changed, 17 insertions, 9 deletions
diff --git a/xgps.c b/xgps.c
index 8d6cc566..ffe09a47 100644
--- a/xgps.c
+++ b/xgps.c
@@ -61,7 +61,7 @@
#define SATDIAG_SIZE 400 /* size of satellite diagram */
static Widget toplevel, form, left, right;
-static Widget satellite_list, satellite_diagram, status;
+static Widget satellite_list, satellite_diagram, status_form, status;
static Widget text_1, text_2, text_3, text_4, text_5;
static Widget text_6, text_7, text_8, text_9, text_10;
static GC gc;
@@ -240,7 +240,18 @@ build_gui(Widget toplevel)
NULL);
/* the application status bar */
- status = XtVaCreateManagedWidget("status", xmTextFieldWidgetClass, form,
+ status_form = XtVaCreateManagedWidget("status_form",
+ xmFormWidgetClass, form,
+ XmNtopAttachment, XmATTACH_POSITION,
+ XmNtopPosition, 2,
+ XmNleftAttachment, XmATTACH_FORM,
+ XmNrightAttachment, XmATTACH_FORM,
+ XmNtopAttachment, XmATTACH_WIDGET,
+ XmNtopWidget, left,
+ XmNfractionBase, 3,
+ NULL);
+ status = XtVaCreateManagedWidget("status",
+ xmTextFieldWidgetClass, status_form,
XmNcursorPositionVisible, False,
XmNeditable, False,
XmNmarginHeight, 1,
@@ -248,10 +259,11 @@ build_gui(Widget toplevel)
XmNshadowThickness, 2,
XmNleftAttachment, XmATTACH_FORM,
XmNrightAttachment, XmATTACH_FORM,
- XmNtopAttachment, XmATTACH_WIDGET,
- XmNtopWidget, left,
+ XmNtopAttachment, XmATTACH_FORM,
+ XmNbottomAttachment, XmATTACH_FORM,
NULL);
+ /* gps information frame */
gps_form = XtVaCreateManagedWidget("gps_form",
xmFormWidgetClass, form,
XmNtopAttachment, XmATTACH_POSITION,
@@ -260,11 +272,9 @@ build_gui(Widget toplevel)
XmNrightAttachment, XmATTACH_FORM,
XmNbottomAttachment, XmATTACH_FORM,
XmNtopAttachment, XmATTACH_WIDGET,
- XmNtopWidget, status,
+ XmNtopWidget, status_form,
XmNfractionBase, 3,
NULL);
-
- /* gps information frame */
gps_frame = XtVaCreateWidget("gps_frame",
xmFrameWidgetClass, gps_form,
XmNshadowType, XmSHADOW_ETCHED_IN,
@@ -278,12 +288,10 @@ build_gui(Widget toplevel)
XmNchildType, XmFRAME_TITLE_CHILD,
XmNchildVerticalAlignment, XmALIGNMENT_CENTER,
NULL);
-
sw = XtVaCreateManagedWidget("scrolled_w",
xmScrolledWindowWidgetClass, gps_frame,
XmNscrollingPolicy, XmAUTOMATIC,
NULL);
-
gps_data = XtVaCreateWidget("gps_data",
xmFormWidgetClass, sw,
XmNfractionBase, 30,