X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fdevicetracker.cpp;h=6d2d5165471c9e78c455a543646598ed1e0b74cd;hb=1f453e8ab546a357781372fe98aa1d004387d4b1;hp=65a99d1987295df596c361589a7db2a83017621b;hpb=02252941b29de64037116f4d37991a38d9ff0d94;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/devicetracker.cpp b/synfig-studio/trunk/src/gtkmm/devicetracker.cpp index 65a99d1..6d2d516 100644 --- a/synfig-studio/trunk/src/gtkmm/devicetracker.cpp +++ b/synfig-studio/trunk/src/gtkmm/devicetracker.cpp @@ -2,19 +2,20 @@ /*! \file devicetracker.cpp ** \brief Template File ** -** $Id: devicetracker.cpp,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $ +** $Id$ ** ** \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 */ /* ========================================================================= */ @@ -32,6 +33,8 @@ #include #include +#include "general.h" + #endif /* === U S I N G =========================================================== */ @@ -51,23 +54,24 @@ using namespace studio; DeviceTracker::DeviceTracker() { + // FIXME: We no longer do this, but we should figure out why this was being done // By default, set the input mode on devices to // GDK_MODE_SCREEN. { GList* device_list; GList* iter; device_list=gdk_devices_list(); - + for(iter=device_list;iter;iter=g_list_next(iter)) { GdkDevice* device=reinterpret_cast(iter->data); - gdk_device_set_mode(device,GDK_MODE_SCREEN); - + //gdk_device_set_mode(device,GDK_MODE_SCREEN); + 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); - } + } } }