diff options
author | jenglish@flightlab.com <jenglish> | 2006-12-14 19:51:02 (GMT) |
---|---|---|
committer | jenglish@flightlab.com <jenglish> | 2006-12-14 19:51:02 (GMT) |
commit | 9203d717715a5ba3f49028f2c0a713df20d02b84 (patch) | |
tree | eddfc995a90320e7557281183d21567f58985d44 /generic/ttk/ttkPanedwindow.c | |
parent | 983fb168919502aae8279e5596bfaa149d17ff8f (diff) | |
download | tk-9203d717715a5ba3f49028f2c0a713df20d02b84.zip tk-9203d717715a5ba3f49028f2c0a713df20d02b84.tar.gz tk-9203d717715a5ba3f49028f2c0a713df20d02b84.tar.bz2 |
Global reduction: use per-file *_Init() routines to reduce
the number of globally-visible initialization records.
Diffstat (limited to 'generic/ttk/ttkPanedwindow.c')
-rw-r--r-- | generic/ttk/ttkPanedwindow.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/ttk/ttkPanedwindow.c b/generic/ttk/ttkPanedwindow.c index d53cb71..cb0502a 100644 --- a/generic/ttk/ttkPanedwindow.c +++ b/generic/ttk/ttkPanedwindow.c @@ -1,4 +1,4 @@ -/* $Id: ttkPanedwindow.c,v 1.6 2006/12/13 20:40:32 hobbs Exp $ +/* $Id: ttkPanedwindow.c,v 1.7 2006/12/14 19:51:04 jenglish Exp $ * * Copyright (c) 2005, Joe English. Freely redistributable. * @@ -799,7 +799,8 @@ TTK_END_LAYOUT /*------------------------------------------------------------------------ * +++ Registration routine. */ -MODULE_SCOPE int TtkPanedwindow_Init(Tcl_Interp *interp) +MODULE_SCOPE +void TtkPanedwindow_Init(Tcl_Interp *interp) { Ttk_Theme themePtr = Ttk_GetDefaultTheme(interp); RegisterWidget(interp, "ttk::panedwindow", &PanedWidgetSpec); @@ -810,7 +811,5 @@ MODULE_SCOPE int TtkPanedwindow_Init(Tcl_Interp *interp) Ttk_RegisterLayout(themePtr, "TPanedwindow", PanedLayout); Ttk_RegisterLayout(themePtr, "Horizontal.Sash", HorizontalSashLayout); Ttk_RegisterLayout(themePtr, "Vertical.Sash", VerticalSashLayout); - - return TCL_OK; } |