Mercurial > pidgin.yaz
changeset 13099:913e06e4155c
[gaim-migrate @ 15461]
I hate static buffers.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 02 Feb 2006 19:15:51 +0000 |
parents | 44a4bd35cc97 |
children | b0cbc4a3675d |
files | src/gtkutils.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkutils.c Thu Feb 02 19:14:54 2006 +0000 +++ b/src/gtkutils.c Thu Feb 02 19:15:51 2006 +0000 @@ -382,17 +382,18 @@ gaim_gtk_make_frame(GtkWidget *parent, const char *title) { GtkWidget *vbox, *label, *hbox; - char labeltitle[256]; + char *labeltitle; vbox = gtk_vbox_new(FALSE, GAIM_HIG_BOX_SPACE); gtk_box_pack_start(GTK_BOX(parent), vbox, FALSE, FALSE, 0); gtk_widget_show(vbox); label = gtk_label_new(NULL); - g_snprintf(labeltitle, sizeof(labeltitle), - "<span weight=\"bold\">%s</span>", title); + labeltitle = g_strdup_printf("<span weight=\"bold\">%s</span>", title); gtk_label_set_markup(GTK_LABEL(label), labeltitle); + g_free(labeltitle); + gtk_misc_set_alignment(GTK_MISC(label), 0, 0); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_widget_show(label);