all repos — fluxbox @ 853c075a5e23cb5b565886df8549edf93ec8297a

custom fork of the fluxbox windowmanager

minor cleaning
fluxgen fluxgen
commit

853c075a5e23cb5b565886df8549edf93ec8297a

parent

c2cc8cb8b8d23bcf85d0367cf5ba01ffcb9a1cee

1 files changed, 10 insertions(+), 7 deletions(-)

jump to
M src/FbTk/Menu.ccsrc/FbTk/Menu.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Menu.cc,v 1.19 2003/05/01 14:33:36 rathnor Exp $ +// $Id: Menu.cc,v 1.20 2003/05/04 10:34:09 fluxgen Exp $ //use GNU extensions #ifndef _GNU_SOURCE

@@ -427,8 +427,12 @@ m_frame_pm = FbTk::FbPixmap(menu.frame.window(),

menu.frame.width(), menu.frame.height(), attr.depth); - if (m_frame_pm.drawable() == 0) - cerr<<"Can't create pixmap!"<<endl; + if (m_frame_pm.drawable() == 0) { + cerr<<"FbTk::Menu: Warning: Failed to create pixmap ("<< + menu.frame.window()<<", "<<menu.frame.width()<<", "<< + menu.frame.height()<< + ", "<<attr.depth<<") !"<<endl; + } }

@@ -660,8 +664,7 @@ }

void Menu::drawItem(unsigned int index, bool highlight, bool clear, bool render_trans, - int x, int y, unsigned int w, unsigned int h) -{ + int x, int y, unsigned int w, unsigned int h) { if (index >= menuitems.size() || menuitems.size() == 0 || menu.persub == 0) return;

@@ -939,7 +942,7 @@

if (item->submenu()) drawSubmenu(w); else - drawItem(w, (item->isEnabled()), true, true); + drawItem(w, item->isEnabled(), true, true); } } else { menu.x_move = be.x_root - menu.x;

@@ -1045,7 +1048,7 @@

if (itmp->submenu()) drawSubmenu(w); else - drawItem(w, (itmp->isEnabled()), true, true); + drawItem(w, itmp->isEnabled(), true, true); } } }