diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-17 19:03:47 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-17 19:03:47 +0000 |
commit | ef6bf0e77229ee34d91221ee4c5e5695ee083ed8 (patch) | |
tree | cd68ec2972de315b910ef8fd12c777e52a41ff82 /handler.c | |
parent | efce7cb078dd34e9e9f7d6f5f5cdd0c8ef267691 (diff) |
merge XFree86 4.3.0.1 to -CURRENT
Diffstat (limited to 'handler.c')
-rw-r--r-- | handler.c | 32 |
1 files changed, 13 insertions, 19 deletions
@@ -24,6 +24,8 @@ used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ +/* $XFree86: xc/programs/editres/handler.c,v 1.7 2001/12/14 20:00:43 dawes Exp $ */ + #include <X11/Intrinsic.h> #include <X11/StringDefs.h> @@ -35,27 +37,21 @@ in this Software without prior written authorization from The Open Group. #include <X11/Xos.h> /* for W_OK def */ #include <stdio.h> +#include <stdlib.h> #include "editresP.h" /* - * Function Definitions. + * Local function definitions. */ - -extern void SetCommand(), PopupSetValues(), SetAndCenterTreeNode(); -extern void _TreeSelect(), _TreeRelabel(), _TreeActivate(), SetMessage(); -extern void _FlashActiveWidgets(), _DumpTreeToFile(), _PopupFileDialog(); -extern void AddString(), CreateResourceBox(), ExecuteOverAllNodes(); -extern void GetNamesAndClasses(), TreeToggle(), InsertWidgetFromNode(); -extern Boolean CheckDatabase(); -extern XrmQuarkList Quarkify(); -extern char *GetResourceValueForSetValues(); - -void SetResourceString(), ActivateResourceWidgets(); -void ActivateWidgetsAndSetResourceString(); -static void SetOnlyMatchingWidgets(); -static void CreateSetValuesCommand(); -static void ObtainResource(); +static char * GetResourceName ( ResourceBoxInfo * res_box ); +static void _AppendResourceString ( Widget w, XtPointer res_box_ptr, + XtPointer filename_ptr ); +static void _SetResourcesFile ( Widget w, XtPointer junk, + XtPointer filename_ptr ); +static void ObtainResource ( XtPointer node_ptr ); +static void CreateSetValuesCommand ( WNode * node, XtPointer info_ptr ); +static void SetOnlyMatchingWidgets ( WNode * node, XtPointer info_ptr ); /* Function Name: Quit * Description: This function prints a message to stdout. @@ -117,7 +113,6 @@ FindWidget(w, client_data, call_data) Widget w; XtPointer client_data, call_data; { - void _FindWidget(); _FindWidget(XtParent(w)); /* Use parent since it is a "real" widget not a rect_obj. */ @@ -812,8 +807,7 @@ XtPointer node_ptr; /*CreateGetValuesCommand(node, (XtPointer)&info); Inserts widget */ /* Insert widget */ - _XEditResPut16(stream, 1); - _XEditResPut32(stream, node->id); + InsertWidgetFromNode(stream, node); SetCommand(node->tree_info->tree_widget, LocalGetValues, NULL); } |