typo in gtktexttag.c - patch
- From: Kristian Rietveld <kristian planet nl>
- To: GTK Development list <gtk-devel-list gnome org>
- Subject: typo in gtktexttag.c - patch
- Date: Sat, 22 Sep 2001 15:51:14 +0200 (CEST)
Hi,
gtk-demo gave g_warnings. I traced it down to a typo in gtktexttag.c (font
weight is an enum not an int). Appended patch fixes this.
Ok to commit?
regards,
Kris
Index: gtktexttag.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtktexttag.c,v
retrieving revision 1.46
diff -u -r1.46 gtktexttag.c
--- gtktexttag.c 2001/09/19 00:58:09 1.46
+++ gtktexttag.c 2001/09/22 13:46:58
@@ -323,13 +323,12 @@
g_object_class_install_property (object_class,
PROP_WEIGHT,
- g_param_spec_int ("weight",
- _("Font weight"),
- _("Font weight"),
- 0,
- G_MAXINT,
- PANGO_WEIGHT_NORMAL,
- G_PARAM_READABLE | G_PARAM_WRITABLE));
+ g_param_spec_enum ("weight",
+ _("Font weight"),
+ _("Font weight"),
+ PANGO_TYPE_WEIGHT,
+ PANGO_WEIGHT_NORMAL,
+ G_PARAM_READABLE | G_PARAM_WRITABLE));
g_object_class_install_property (object_class,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]