diff options
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r-- | src/Toolbar.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 11fea4d..fc61d55 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Toolbar.cc,v 1.16 2002/03/29 21:47:58 pekdon Exp $ | 25 | // $Id: Toolbar.cc,v 1.17 2002/04/03 12:08:54 fluxgen Exp $ |
26 | 26 | ||
27 | // stupid macros needed to access some functions in version 2 of the GNU C | 27 | // stupid macros needed to access some functions in version 2 of the GNU C |
28 | // library | 28 | // library |
@@ -1308,9 +1308,9 @@ Toolbarmenu::Toolbarmenu(Toolbar *tb) : Basemenu(tb->screen) { | |||
1308 | update(); | 1308 | update(); |
1309 | 1309 | ||
1310 | if (toolbar->isOnTop()) | 1310 | if (toolbar->isOnTop()) |
1311 | setItemSelected(1, True); | 1311 | setItemSelected(1, true); |
1312 | if (toolbar->doAutoHide()) | 1312 | if (toolbar->doAutoHide()) |
1313 | setItemSelected(2, True); | 1313 | setItemSelected(2, true); |
1314 | } | 1314 | } |
1315 | 1315 | ||
1316 | 1316 | ||
@@ -1325,7 +1325,7 @@ Toolbarmenu::~Toolbarmenu(void) { | |||
1325 | } | 1325 | } |
1326 | 1326 | ||
1327 | 1327 | ||
1328 | void Toolbarmenu::itemSelected(int button, int index) { | 1328 | void Toolbarmenu::itemSelected(int button, unsigned int index) { |
1329 | if (button == 1) { | 1329 | if (button == 1) { |
1330 | BasemenuItem *item = find(index); | 1330 | BasemenuItem *item = find(index); |
1331 | if (! item) return; | 1331 | if (! item) return; |
@@ -1333,7 +1333,7 @@ void Toolbarmenu::itemSelected(int button, int index) { | |||
1333 | switch (item->function()) { | 1333 | switch (item->function()) { |
1334 | case 1: // always on top | 1334 | case 1: // always on top |
1335 | { | 1335 | { |
1336 | Bool change = ((toolbar->isOnTop()) ? False : True); | 1336 | bool change = ((toolbar->isOnTop()) ? False : True); |
1337 | toolbar->on_top = change; | 1337 | toolbar->on_top = change; |
1338 | setItemSelected(1, change); | 1338 | setItemSelected(1, change); |
1339 | 1339 | ||
@@ -1343,7 +1343,7 @@ void Toolbarmenu::itemSelected(int button, int index) { | |||
1343 | 1343 | ||
1344 | case 2: // auto hide | 1344 | case 2: // auto hide |
1345 | { | 1345 | { |
1346 | Bool change = ((toolbar->doAutoHide()) ? False : True); | 1346 | bool change = ((toolbar->doAutoHide()) ? False : True); |
1347 | toolbar->do_auto_hide = change; | 1347 | toolbar->do_auto_hide = change; |
1348 | setItemSelected(2, change); | 1348 | setItemSelected(2, change); |
1349 | 1349 | ||
@@ -1450,7 +1450,7 @@ Toolbarmenu::Placementmenu::Placementmenu(Toolbarmenu *tm) | |||
1450 | } | 1450 | } |
1451 | 1451 | ||
1452 | 1452 | ||
1453 | void Toolbarmenu::Placementmenu::itemSelected(int button, int index) { | 1453 | void Toolbarmenu::Placementmenu::itemSelected(int button, unsigned int index) { |
1454 | if (button == 1) { | 1454 | if (button == 1) { |
1455 | BasemenuItem *item = find(index); | 1455 | BasemenuItem *item = find(index); |
1456 | if (! item) | 1456 | if (! item) |
@@ -1494,7 +1494,7 @@ Toolbarmenu::Headmenu::Headmenu(Toolbarmenu *tm) | |||
1494 | } | 1494 | } |
1495 | 1495 | ||
1496 | 1496 | ||
1497 | void Toolbarmenu::Headmenu::itemSelected(int button, int index) { | 1497 | void Toolbarmenu::Headmenu::itemSelected(int button, unsigned int index) { |
1498 | if (button == 1) { | 1498 | if (button == 1) { |
1499 | BasemenuItem *item = find(index); | 1499 | BasemenuItem *item = find(index); |
1500 | if (! item) | 1500 | if (! item) |