diff options
author | Benjamin Otte <otte@redhat.com> | 2010-07-21 03:16:47 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-08-10 21:02:28 +0200 |
commit | 9f1939cbd5aa8fb9ee98e5400780194c9bbb25cf (patch) | |
tree | dfeabe9b93dce21e019d628407a4eb3d8d9914ae /gtk/gtktextlayout.c | |
parent | 4729460a4fa3e0393223aec8bedd675ba1d4afa5 (diff) | |
download | gtk+-9f1939cbd5aa8fb9ee98e5400780194c9bbb25cf.tar.gz |
API: Remove GtkTextTag's stipple properties
They seem pretty much unused and the only reason why GtkTextView uses a
GdkPangoRenderer and not a PangoCairoRenderer.
Diffstat (limited to 'gtk/gtktextlayout.c')
-rw-r--r-- | gtk/gtktextlayout.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index cf40247b67..fba9de5780 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -1424,11 +1424,6 @@ gtk_text_attr_appearance_destroy (PangoAttribute *attr) { GtkTextAttrAppearance *appearance_attr = (GtkTextAttrAppearance *)attr; - if (appearance_attr->appearance.bg_stipple) - g_object_unref (appearance_attr->appearance.bg_stipple); - if (appearance_attr->appearance.fg_stipple) - g_object_unref (appearance_attr->appearance.fg_stipple); - g_slice_free (GtkTextAttrAppearance, appearance_attr); } @@ -1441,8 +1436,6 @@ gtk_text_attr_appearance_compare (const PangoAttribute *attr1, return (gdk_color_equal (&appearance1->fg_color, &appearance2->fg_color) && gdk_color_equal (&appearance1->bg_color, &appearance2->bg_color) && - appearance1->fg_stipple == appearance2->fg_stipple && - appearance1->bg_stipple == appearance2->bg_stipple && appearance1->underline == appearance2->underline && appearance1->strikethrough == appearance2->strikethrough && appearance1->draw_bg == appearance2->draw_bg); @@ -1479,11 +1472,6 @@ gtk_text_attr_appearance_new (const GtkTextAppearance *appearance) result->appearance = *appearance; - if (appearance->bg_stipple) - g_object_ref (appearance->bg_stipple); - if (appearance->fg_stipple) - g_object_ref (appearance->fg_stipple); - return (PangoAttribute *)result; } |