Mercurial > pidgin.yaz
comparison pidgin/gtkblist-theme.c @ 26660:e9e253607e35
Fix some assertion failures.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 18 Apr 2009 23:21:56 +0000 |
parents | 80f2d19e524f |
children | 9b6619a28f5d |
comparison
equal
deleted
inserted
replaced
26659:4fca203e33be | 26660:e9e253607e35 |
---|---|
125 copy_font_and_color(const PidginThemeFont *pair) | 125 copy_font_and_color(const PidginThemeFont *pair) |
126 { | 126 { |
127 PidginThemeFont *copy = g_new0(PidginThemeFont, 1); | 127 PidginThemeFont *copy = g_new0(PidginThemeFont, 1); |
128 copy->font = g_strdup(pair->font); | 128 copy->font = g_strdup(pair->font); |
129 strncpy(copy->color, pair->color, sizeof(copy->color) - 1); | 129 strncpy(copy->color, pair->color, sizeof(copy->color) - 1); |
130 copy->gdkcolor = gdk_color_copy(pair->gdkcolor); | 130 if (pair->gdkcolor) |
131 copy->gdkcolor = gdk_color_copy(pair->gdkcolor); | |
131 return copy; | 132 return copy; |
132 } | 133 } |
133 | 134 |
134 void | 135 void |
135 pidgin_theme_font_set_font_face(PidginThemeFont *font, const gchar *face) | 136 pidgin_theme_font_set_font_face(PidginThemeFont *font, const gchar *face) |