/* Gtk Widget Factory generated widget * http://gwf.sourceforge.net * Copyright (c) 1999-2000 Jeroen Benckhuijsen */ /* This file is Copyrighted (C) 1999-2000 by Ishan Chattopadhyaya (ichattopadhyaya@users.sourceforge.net) * Please read the license agreement below */ /* 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 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. */ #ifdef HAVE_CONFIG_H #include #endif #include #include "gtkclock-initial.h" #include "gtkwidget.h" static GtkObjectClass *parent_class = NULL; static void gtk_clock_class_init (GtkClockClass *klass); static void gtk_clock_init (GtkClock *clock); static void gtk_clock_destroy (GtkObject *object); guint gtk_clock_get_type (void) { static guint gtk_clock_type = 0; if (!gtk_clock_type) { GtkTypeInfo gtk_clock_info = { "GtkClock", sizeof (GtkClock), sizeof (GtkClockClass), (GtkClassInitFunc) gtk_clock_class_init, (GtkObjectInitFunc) gtk_clock_init, /* reserved_1 */ NULL, /* reserved_2 */ NULL, (GtkClassInitFunc) NULL, }; gtk_clock_type = gtk_type_unique (gtk_widget_get_type (), >k_clock_info); } return gtk_clock_type; } static void gtk_clock_class_init (GtkClockClass *klass) { GtkObjectClass *object_class; object_class = (GtkObjectClass*) klass; object_class->destroy = gtk_clock_destroy; parent_class = gtk_type_class (gtk_widget_get_type()); } static void gtk_clock_init (GtkClock *clock) { } static void gtk_clock_destroy (GtkObject *object) { parent_class->destroy(object); } GtkClock* gtk_clock_new(void) { GtkClock *clock; clock = GTK_CLOCK( gtk_type_new ( gtk_clock_get_type())); gtk_clock_construct(clock); return clock; } void gtk_clock_construct (GtkClock *clock) { }