applied patch from php-coder to fix some warnings, mostly signed vs unsigned

issues
This commit is contained in:
mathias 2006-01-16 18:46:39 +00:00
parent b7ddb0ca13
commit f803d8f250
5 changed files with 12 additions and 9 deletions

View file

@ -1,5 +1,8 @@
(Format: Year/Month/Day)
Changes for 0.9.15:
*06/01/16:
* minor changes to fix some warnings (Thanks php-coder)
Screen.cc Window.cc MenuCreator.cc MenuTheme.hh
*06/01/07:
* minor addons to fbgm, close Gentoo #74523 and #110677 (Mathias)
*06/01/03:

View file

@ -150,8 +150,8 @@ private:
MenuMode m_menumode;
unsigned int m_delayopen; ///< in msec
unsigned int m_delayclose; ///< in msec
int m_real_title_height; ///< the calculated item height (from font and menu.titleHeight)
int m_real_item_height; ///< the calculated item height (from font and menu.itemHeight)
unsigned int m_real_title_height; ///< the calculated item height (from font and menu.titleHeight)
unsigned int m_real_item_height; ///< the calculated item height (from font and menu.itemHeight)
};
} // end namespace FbTk

View file

@ -472,7 +472,7 @@ FbTk::Menu *MenuCreator::createMenuType(const std::string &type, int screen_num)
"close",
0
};
for (int i=0; i < sizeof(default_menu); ++i)
for (unsigned int i=0; i < sizeof(default_menu); ++i)
createWindowMenuItem(default_menu[i], "", *menu);
}
menu->reconfigure(); // update graphics

View file

@ -714,7 +714,7 @@ void BScreen::reconfigure() {
renderPosWindow();
// realize the number of workspaces from the init-file
const int nr_ws = *resource.workspaces;
const unsigned int nr_ws = *resource.workspaces;
if (nr_ws > m_workspaces_list.size()) {
while(nr_ws != m_workspaces_list.size()) {
addWorkspace();
@ -760,7 +760,7 @@ void BScreen::reconfigure() {
if (restore_menus) {
// restore submenus, no timestamp changed
FbTk::Menu *menu = m_rootmenu.get();
for (int i = 0; i < (int)remember_sub.size(); i++ ) {
for (unsigned int i = 0; i < remember_sub.size(); i++ ) {
int sub = remember_sub[i];
if (!menu || sub < 0)
break;

View file

@ -2496,10 +2496,10 @@ void FluxboxWindow::propertyNotifyEvent(WinClient &client, Atom atom) {
#ifdef DEBUG
cerr<<"XA_WM_NORMAL_HINTS("<<title()<<")"<<endl;
#endif // DEBUG
int old_max_width = client.max_width;
int old_min_width = client.min_width;
int old_min_height = client.min_height;
int old_max_height = client.max_height;
unsigned int old_max_width = client.max_width;
unsigned int old_min_width = client.min_width;
unsigned int old_min_height = client.min_height;
unsigned int old_max_height = client.max_height;
bool changed = false;
client.updateWMNormalHints();