X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gdk%2Fgdkfont.c;h=9c017840d4c663c94ef3340dbf9d77d6e51e6a93;hb=165e970296cf0fb8e317ce803fb6c8ff0bd31fc3;hp=bc2b82656009fc42257d4e30b628dbdd3f579cfa;hpb=b14b577d59ac904a3e6cbd7cfa53117cfe1dbb5e;p=~andy%2Fgtk diff --git a/gdk/gdkfont.c b/gdk/gdkfont.c index bc2b82656..9c017840d 100644 --- a/gdk/gdkfont.c +++ b/gdk/gdkfont.c @@ -2,23 +2,23 @@ * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public + * modify it under the terms of the GNU Lesser 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. + * Lesser General Public License for more details. * - * You should have received a copy of the GNU Library General Public + * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ /* - * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS * file for a list of people on the GTK+ Team. See the ChangeLog * files for a list of changes. These files are distributed with * GTK+ at ftp://ftp.gtk.org/pub/gtk/. @@ -27,6 +27,18 @@ #include "gdkfont.h" #include "gdkinternals.h" +GType +gdk_font_get_type (void) +{ + static GType our_type = 0; + + if (our_type == 0) + our_type = g_boxed_type_register_static ("GdkFont", + (GBoxedCopyFunc)gdk_font_ref, + (GBoxedFreeFunc)gdk_font_unref); + return our_type; +} + GdkFont* gdk_font_ref (GdkFont *font) {