/**********************************************************************
 *
 *   FreeDoko a Doppelkopf-Game
 *    
 *   Copyright (C) 2001-2004  by Diether Knof and Borg Enders
 *
 *   This program 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.
 *
 *   This program 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. 
 *   You can find this license in the file 'gpl.txt'.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 *   MA  02111-1307  USA
 *
 *  Contact:
 *    Diether Knof dknof@gmx.de
 *    Borg Enders  borg@borgsoft.de
 *
 *********************************************************************/

#include "constants.h"

#ifdef USE_UI_GTK

#include "XGtkWidget.h"

#include "../../../misc/language.h"

namespace GTK_DOKO
{

  /*****************************************************************************
   *
   * XGtkWidget::XGtkWidget(string const& text)
   *
   * Parameters:	text - text for the label
   *
   * Result:	-
   * 
   * Version:	0.4.2
   *
   * Description:	Constructor
   *
   ****************************************************************************/
  XGtkWidget::XGtkWidget()
  {
    DEBUG_CALLING(INFO_GTK_WIDGET && INFO_GTK_INIT,
		  "XGtkWidget::XGtkWidget()");

    DEBUG_RETURNING(VOID,
		    INFO_GTK_WIDGET && INFO_GTK_INIT,
		    "XGtkWidget::XGtkWidget()");
  } // XGtkWidget::XGtkWidget()

  /*****************************************************************************
   *
   * virtual XGtkWidget::~XGtkWidget()
   *
   * Parameters:	-
   *
   * Result:	-
   * 
   * Version:	0.4.2
   *
   * Description:	Destructor
   *
   ****************************************************************************/
  XGtkWidget::~XGtkWidget()
  {
    DEBUG_CALLING(INFO_GTK_WIDGET && INFO_GTK_INIT,
		  "XGtkWidget::~XGtkWidget()");

    gtk_widget_destroy(this->widget());

    DEBUG_RETURNING(VOID,
		    INFO_GTK_WIDGET && INFO_GTK_INIT,
		    "XGtkWidget::~XGtkWidget()");
  } // XGtkWidget::XGtkWidget()

  /*****************************************************************************
   *
   * virtual GtkWidget* XGtkWidget::widget()
   *
   * Parameters:	-
   *
   * Result:	the widget (container)
   *
   * Version:	0.4.2
   *
   * Description:	Result
   *
   ****************************************************************************/
  GtkWidget*
    XGtkWidget::widget()
    {
      DEBUG_CALLING(INFO_GTK_WIDGET && INFO_GTK_VALUE,
		    "XGtkWidget::widget()");

      DEBUG_ASSERTION(false,
		      "XGtkWidget::widget()\n"
		      "  calling of this virtual function");

      DEBUG_RETURNING(NULL,
		      INFO_GTK_WIDGET && INFO_GTK_VALUE,
		      "XGtkWidget::widget()");
    } // GtkWidget* XGtkWidget::widget()

  /*****************************************************************************
   *
   * virtual void XGtkWidget::language_update()
   *
   * Parameters:	-
   *
   * Result:	-
   * 
   * Version:	0.4.2
   *
   * Description:	updates the language
   *
   ****************************************************************************/
  void
    XGtkWidget::language_update()
    {
      DEBUG_CALLING(INFO_GTK_WIDGET && INFO_GTK_UPDATE,
		    "XGtkWidget::language_update()");

      DEBUG_ASSERTION(false,
		      "XGtkWidget::language_update()\n"
		      "  calling of this virtual function");

      DEBUG_RETURNING(VOID,
		      INFO_GTK_WIDGET && INFO_GTK_UPDATE,
		      "XGtkWidget::language_update()");
    } // void XGtkWidget::language_update()

}
#endif
