From d328ab72d554fe60c892ddc8c278340c027b51dc Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 8 Feb 2007 19:34:11 +0000 Subject: ** Fixes bug #357216 2006-02-08 Matthew Barnes ** Fixes bug #357216 * widgets/text/e-entry.c: Remove "font", "fontset", and "gdk_font" properties, since they forward gets and sets to non-existant properties in entry->item. * widgets/table/e-table-field-chooser-item.c: * widgets/table/e-table-field-chooser-item.h: * widgets/table/e-table-group-container.c: * widgets/table/e-table-group-container.h: Replace deprecated GdkFont with PangoFontDescription. * widgets/table/e-table-header-item.c: * widgets/table/e-table-header-item.h: Replace deprecated GdkFont with PangoFontDescription. Rename "fontset" property to "font-desc", and change the property type to a boxed PangoFontDescription. svn path=/trunk/; revision=33185 --- widgets/text/e-entry.c | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) (limited to 'widgets/text') diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c index 5601440b8d..f0653a39b6 100644 --- a/widgets/text/e-entry.c +++ b/widgets/text/e-entry.c @@ -70,9 +70,6 @@ enum { PROP_MODEL, PROP_EVENT_PROCESSOR, PROP_TEXT, - PROP_FONT, - PROP_FONTSET, - PROP_FONT_GDK, PROP_ANCHOR, PROP_JUSTIFICATION, PROP_X_OFFSET, @@ -880,10 +877,6 @@ et_get_property (GObject *object, g_object_get_property (G_OBJECT (item), "text", value); break; - case PROP_FONT_GDK: - g_object_get_property (G_OBJECT (item), "font_gdk", value); - break; - case PROP_JUSTIFICATION: g_object_get_property (G_OBJECT (item), "justification", value); break; @@ -986,25 +979,6 @@ et_set_property (GObject *object, gtk_widget_queue_resize (widget); break; - case PROP_FONT: - g_object_set_property (G_OBJECT (item), "font", value); - d(g_print("%s: font: %s\n", __FUNCTION__, g_value_get_string (value))); - if (entry->priv->emulate_label_resize) - gtk_widget_queue_resize (widget); - break; - - case PROP_FONTSET: - g_object_set_property (G_OBJECT (item), "fontset", value); - if (entry->priv->emulate_label_resize) - gtk_widget_queue_resize (widget); - break; - - case PROP_FONT_GDK: - g_object_set_property (G_OBJECT (item), "font_gdk", value); - if (entry->priv->emulate_label_resize) - gtk_widget_queue_resize (widget); - break; - case PROP_JUSTIFICATION: entry->priv->justification = g_value_get_enum (value); g_object_get(item, @@ -1251,27 +1225,6 @@ e_entry_class_init (GObjectClass *object_class) NULL, G_PARAM_READWRITE)); - g_object_class_install_property (object_class, PROP_FONT, - g_param_spec_string ("font", - _( "Font" ), - _( "Font" ), - NULL, - G_PARAM_READWRITE)); - - g_object_class_install_property (object_class, PROP_FONTSET, - g_param_spec_string ("fontset", - _( "Fontset" ), - _( "Fontset" ), - NULL, - G_PARAM_READWRITE)); - - g_object_class_install_property (object_class, PROP_FONT_GDK, - g_param_spec_boxed ("font_gdk", - _( "GDKFont" ), - _( "GDKFont" ), - GDK_TYPE_FONT, - G_PARAM_WRITABLE)); - g_object_class_install_property (object_class, PROP_JUSTIFICATION, g_param_spec_enum ("justification", _( "Justification" ), -- cgit v1.2.3