~ubuntu-branches/ubuntu/wily/bombono-dvd/wily

« back to all changes in this revision

Viewing changes to src/mgui/common_tool.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-11-04 11:46:25 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20101104114625-8xfdhvhpsm51i0nu
Tags: upstream-0.8.0
ImportĀ upstreamĀ versionĀ 0.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
// mgui/common_tool.h
3
3
// This file is part of Bombono DVD project.
4
4
//
5
 
// Copyright (c) 2007-2009 Ilya Murav'jov
 
5
// Copyright (c) 2007-2010 Ilya Murav'jov
6
6
//
7
7
// This program is free software; you can redistribute it and/or modify
8
8
// it under the terms of the GNU General Public License as published by
97
97
template<typename Obj>
98
98
bool OnFocusInEvent(Obj& obj, ObjectState<Obj>* stt, GdkEventFocus* event)
99
99
{
100
 
    ASSERT( event->in );
 
100
    ASSERT_OR_UNUSED_VAR( event->in, event );
101
101
    stt->OnGetFocus(obj);
102
102
    return false;
103
103
}
105
105
template<typename Obj>
106
106
bool OnFocusOutEvent(Obj& obj, ObjectState<Obj>* stt, GdkEventFocus* event)
107
107
{
108
 
    ASSERT( !(event->in) );
 
108
    ASSERT_OR_UNUSED_VAR( !(event->in), event );
109
109
    stt->OnLeaveFocus(obj);
110
110
    return false;
111
111
}