]> Pileus Git - ~andy/gtk/commitdiff
Avoid a crash if the font doesn't exist. (#144967, Yevgen Muntyan)
authorMatthias Clasen <mclasen@redhat.com>
Fri, 25 Jun 2004 14:58:59 +0000 (14:58 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 25 Jun 2004 14:58:59 +0000 (14:58 +0000)
2004-06-25  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkfontbutton.c (gtk_font_button_update_font_info): Avoid
a crash if the font doesn't exist.  (#144967, Yevgen Muntyan)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkfontbutton.c

index 018a02d18d643ac0b661773826c89acd2dd8619e..f0281b67c69320d4f6b568423955d587e52d7945 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-25  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkfontbutton.c (gtk_font_button_update_font_info): Avoid
+       a crash if the font doesn't exist.  (#144967, Yevgen Muntyan) 
+
 Fri Jun 25 00:32:15 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtktreestore.c (gtk_tree_store_swap): Commit the change
index 018a02d18d643ac0b661773826c89acd2dd8619e..f0281b67c69320d4f6b568423955d587e52d7945 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-25  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkfontbutton.c (gtk_font_button_update_font_info): Avoid
+       a crash if the font doesn't exist.  (#144967, Yevgen Muntyan) 
+
 Fri Jun 25 00:32:15 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtktreestore.c (gtk_tree_store_swap): Commit the change
index 018a02d18d643ac0b661773826c89acd2dd8619e..f0281b67c69320d4f6b568423955d587e52d7945 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-25  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkfontbutton.c (gtk_font_button_update_font_info): Avoid
+       a crash if the font doesn't exist.  (#144967, Yevgen Muntyan) 
+
 Fri Jun 25 00:32:15 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtktreestore.c (gtk_tree_store_swap): Commit the change
index 018a02d18d643ac0b661773826c89acd2dd8619e..f0281b67c69320d4f6b568423955d587e52d7945 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-25  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkfontbutton.c (gtk_font_button_update_font_info): Avoid
+       a crash if the font doesn't exist.  (#144967, Yevgen Muntyan) 
+
 Fri Jun 25 00:32:15 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtktreestore.c (gtk_tree_store_swap): Commit the change
index 53eb5cf5a915abc8890adf99270b2328dab6bd98..34e8c2688c9a3ec0c608c96070415f8d90d263e1 100644 (file)
@@ -878,9 +878,10 @@ gtk_font_button_update_font_info (GtkFontButton *font_button)
       gint n_families, n_faces, i;
 
       n_families = 0;
-      n_faces = 0;
       pango_context_list_families (gtk_widget_get_pango_context (GTK_WIDGET (font_button)),
                                    &families, &n_families);
+      n_faces = 0;
+      faces = NULL;
       for (i = 0; i < n_families; i++) 
         {
           const gchar *name = pango_font_family_get_name (families[i]);