X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fdevicetracker.cpp;h=156a0a9aac5cbcb6e5a51fc7e6c7b324fa2ea1fe;hb=e7e1794959f6b4af0d60d69b5501adcd305f2207;hp=6723e8f13cc49abbffa101cc803dd6d72959053c;hpb=3a3c4bca3a17137bec5d7960560934b91ef4146e;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/devicetracker.cpp b/synfig-studio/trunk/src/gtkmm/devicetracker.cpp index 6723e8f..156a0a9 100644 --- a/synfig-studio/trunk/src/gtkmm/devicetracker.cpp +++ b/synfig-studio/trunk/src/gtkmm/devicetracker.cpp @@ -1,20 +1,21 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file devicetracker.cpp ** \brief Template File ** ** $Id: devicetracker.cpp,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. ** \endlegal */ /* ========================================================================= */ @@ -30,7 +31,7 @@ #include "devicetracker.h" #include -#include +#include #endif @@ -38,7 +39,7 @@ using namespace std; using namespace etl; -using namespace sinfg; +using namespace synfig; using namespace studio; /* === M A C R O S ========================================================= */ @@ -63,10 +64,10 @@ DeviceTracker::DeviceTracker() GdkDevice* device=reinterpret_cast(iter->data); gdk_device_set_mode(device,GDK_MODE_SCREEN); - sinfgapp::InputDevice::Handle input_device; - input_device=sinfgapp::Main::add_input_device(device->name,sinfgapp::InputDevice::Type(device->source)); - if(input_device->get_type()==sinfgapp::InputDevice::TYPE_MOUSE) - sinfgapp::Main::select_input_device(input_device); + synfigapp::InputDevice::Handle input_device; + input_device=synfigapp::Main::add_input_device(device->name,synfigapp::InputDevice::Type(device->source)); + if(input_device->get_type()==synfigapp::InputDevice::TYPE_MOUSE) + synfigapp::Main::select_input_device(input_device); } } }