diff options
author | nijtmans <nijtmans> | 2010-01-13 23:08:06 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-01-13 23:08:06 (GMT) |
commit | 353d7693729fb7a45a35be7158fc4b94db079735 (patch) | |
tree | 1f472912658d183c50de332bc66a33540b44f060 /unix | |
parent | 15e42ed5b2cbc9b9a5802d75268d97f302ac23c0 (diff) | |
download | tk-353d7693729fb7a45a35be7158fc4b94db079735.zip tk-353d7693729fb7a45a35be7158fc4b94db079735.tar.gz tk-353d7693729fb7a45a35be7158fc4b94db079735.tar.bz2 |
Eliminate tkpMenubuttonClass
make tkpButtonProcs CONST
fix gcc warnings: missing initializer
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tkUnixButton.c | 6 | ||||
-rw-r--r-- | unix/tkUnixMenubu.c | 11 | ||||
-rw-r--r-- | unix/tkUnixScrlbr.c | 9 |
3 files changed, 11 insertions, 15 deletions
diff --git a/unix/tkUnixButton.c b/unix/tkUnixButton.c index 064a2f4..5e4c926 100644 --- a/unix/tkUnixButton.c +++ b/unix/tkUnixButton.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkUnixButton.c,v 1.27 2009/10/24 00:01:48 dkf Exp $ + * RCS: @(#) $Id: tkUnixButton.c,v 1.28 2010/01/13 23:08:11 nijtmans Exp $ */ #include "tkInt.h" @@ -37,9 +37,11 @@ typedef struct UnixButton { * The class function table for the button widgets. */ -Tk_ClassProcs tkpButtonProcs = { +const Tk_ClassProcs tkpButtonProcs = { sizeof(Tk_ClassProcs), /* size */ TkButtonWorldChanged, /* worldChangedProc */ + NULL, /* createProc */ + NULL /* modalProc */ }; /* diff --git a/unix/tkUnixMenubu.c b/unix/tkUnixMenubu.c index 08d796e..790d804 100644 --- a/unix/tkUnixMenubu.c +++ b/unix/tkUnixMenubu.c @@ -9,21 +9,12 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkUnixMenubu.c,v 1.11 2007/12/13 15:28:50 dgp Exp $ + * RCS: @(#) $Id: tkUnixMenubu.c,v 1.12 2010/01/13 23:08:11 nijtmans Exp $ */ #include "tkInt.h" #include "tkMenubutton.h" -/* - * The structure below defines menubutton class behavior by means of functions - * that can be invoked from generic window code. - */ - -Tk_ClassProcs tkpMenubuttonClass = { - sizeof(Tk_ClassProcs), /* size */ - TkMenuButtonWorldChanged, /* worldChangedProc */ -}; /* *---------------------------------------------------------------------- diff --git a/unix/tkUnixScrlbr.c b/unix/tkUnixScrlbr.c index 2ca0a2e..a979797 100644 --- a/unix/tkUnixScrlbr.c +++ b/unix/tkUnixScrlbr.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkUnixScrlbr.c,v 1.8 2009/10/07 14:33:27 dkf Exp $ + * RCS: @(#) $Id: tkUnixScrlbr.c,v 1.9 2010/01/13 23:08:10 nijtmans Exp $ */ #include "tkInt.h" @@ -38,8 +38,11 @@ typedef struct UnixScrollbar { * variable is declared at this scope. */ -Tk_ClassProcs tkpScrollbarProcs = { - sizeof(Tk_ClassProcs) /* size */ +const Tk_ClassProcs tkpScrollbarProcs = { + sizeof(Tk_ClassProcs), /* size */ + NULL, /* worldChangedProc */ + NULL, /* createProc */ + NULL /* modalProc */ }; /* |