summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-04-15 21:39:24 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-04-15 21:39:24 +0000
commitb17ec34df93db26c14e83df9a8c50453c509779b (patch)
tree20248107ce7f1993edfd67bb624a2c37d0538c91
parentbc86a92b3fdd29e7bc22ff6d79fbcb93627755ea (diff)
downloadpango-b17ec34df93db26c14e83df9a8c50453c509779b.tar.gz
Switch around the code so that pango_font_description_set_family (desc,
Tue Apr 15 05:34:05 2003 Owen Taylor <otaylor@redhat.com> * pango/fonts.c (pango_font_description_set_family): Switch around the code so that pango_font_description_set_family (desc, pango_font_description_set_family (desc)) in the case where desc->static_family is TRUE. (#106964, Morten Welinder)
-rw-r--r--ChangeLog9
-rw-r--r--ChangeLog.pre-1-109
-rw-r--r--ChangeLog.pre-1-49
-rw-r--r--ChangeLog.pre-1-69
-rw-r--r--ChangeLog.pre-1-89
-rw-r--r--pango/fonts.c10
6 files changed, 51 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 998ffc42..8957b1fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Tue Apr 15 05:34:05 2003 Owen Taylor <otaylor@redhat.com>
+
+ * pango/fonts.c (pango_font_description_set_family):
+ Switch around the code so that
+ pango_font_description_set_family (desc,
+ pango_font_description_set_family (desc))
+ in the case where desc->static_family is TRUE.
+ (#106964, Morten Welinder)
+
Tue Apr 15 04:39:48 2003 Owen Taylor <otaylor@redhat.com>
* pango/pango-coverage.c (pango_coverage_set): Fix
diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10
index 998ffc42..8957b1fd 100644
--- a/ChangeLog.pre-1-10
+++ b/ChangeLog.pre-1-10
@@ -1,3 +1,12 @@
+Tue Apr 15 05:34:05 2003 Owen Taylor <otaylor@redhat.com>
+
+ * pango/fonts.c (pango_font_description_set_family):
+ Switch around the code so that
+ pango_font_description_set_family (desc,
+ pango_font_description_set_family (desc))
+ in the case where desc->static_family is TRUE.
+ (#106964, Morten Welinder)
+
Tue Apr 15 04:39:48 2003 Owen Taylor <otaylor@redhat.com>
* pango/pango-coverage.c (pango_coverage_set): Fix
diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4
index 998ffc42..8957b1fd 100644
--- a/ChangeLog.pre-1-4
+++ b/ChangeLog.pre-1-4
@@ -1,3 +1,12 @@
+Tue Apr 15 05:34:05 2003 Owen Taylor <otaylor@redhat.com>
+
+ * pango/fonts.c (pango_font_description_set_family):
+ Switch around the code so that
+ pango_font_description_set_family (desc,
+ pango_font_description_set_family (desc))
+ in the case where desc->static_family is TRUE.
+ (#106964, Morten Welinder)
+
Tue Apr 15 04:39:48 2003 Owen Taylor <otaylor@redhat.com>
* pango/pango-coverage.c (pango_coverage_set): Fix
diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6
index 998ffc42..8957b1fd 100644
--- a/ChangeLog.pre-1-6
+++ b/ChangeLog.pre-1-6
@@ -1,3 +1,12 @@
+Tue Apr 15 05:34:05 2003 Owen Taylor <otaylor@redhat.com>
+
+ * pango/fonts.c (pango_font_description_set_family):
+ Switch around the code so that
+ pango_font_description_set_family (desc,
+ pango_font_description_set_family (desc))
+ in the case where desc->static_family is TRUE.
+ (#106964, Morten Welinder)
+
Tue Apr 15 04:39:48 2003 Owen Taylor <otaylor@redhat.com>
* pango/pango-coverage.c (pango_coverage_set): Fix
diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8
index 998ffc42..8957b1fd 100644
--- a/ChangeLog.pre-1-8
+++ b/ChangeLog.pre-1-8
@@ -1,3 +1,12 @@
+Tue Apr 15 05:34:05 2003 Owen Taylor <otaylor@redhat.com>
+
+ * pango/fonts.c (pango_font_description_set_family):
+ Switch around the code so that
+ pango_font_description_set_family (desc,
+ pango_font_description_set_family (desc))
+ in the case where desc->static_family is TRUE.
+ (#106964, Morten Welinder)
+
Tue Apr 15 04:39:48 2003 Owen Taylor <otaylor@redhat.com>
* pango/pango-coverage.c (pango_coverage_set): Fix
diff --git a/pango/fonts.c b/pango/fonts.c
index 03d5dfc1..84b659b8 100644
--- a/pango/fonts.c
+++ b/pango/fonts.c
@@ -95,13 +95,12 @@ void
pango_font_description_set_family (PangoFontDescription *desc,
const char *family)
{
+ gchar *old_family = NULL;
+
g_return_if_fail (desc != NULL);
- if (desc->family_name == family)
- return;
-
if (desc->family_name && !desc->static_family)
- g_free (desc->family_name);
+ old_family = desc->family_name;
if (family)
{
@@ -114,6 +113,9 @@ pango_font_description_set_family (PangoFontDescription *desc,
desc->family_name = NULL;
desc->mask &= ~PANGO_FONT_MASK_FAMILY;
}
+
+ if (old_family)
+ g_free (desc->family_name);
}
/**