// -*- c++ -*- /* $Id: control.ccg,v 1.3 2003/07/02 13:35:24 mxpxpod Exp $ */ /* * * Copyright 1998-1999 The Gtk-- Development Team * Copyright 2001 Free Software Foundation * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ namespace Gnome { namespace Bonobo { namespace Servers { Control::Control (Gtk::Widget &widget) : Bonobo::Servers::Unknown_CImpl((BonoboObject*)( g_object_new( get_type(), 0 ) )) { bonobo_control_construct (gobj(), widget.gobj ()); corbaref_ = ::Bonobo::Control::_orbitcpp_wrap( BONOBO_OBJREF(gobject_) ); } char* Control::getWindowId(char const* cookie) throw (CORBA::SystemException,::Bonobo::Control::NoContents) { return corbaref_->getWindowId(cookie); } } /* namespace Servers */ } /* namespace Bonobo */ } /* namespace Gnome */