Mercurial > pidgin.yaz
diff console/libgnt/gntbutton.c @ 14424:c374f45f4c94
[gaim-migrate @ 17132]
Do the same for the texts in buttons, and minor adjustments.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 02 Sep 2006 23:23:30 +0000 |
parents | 0387a167f342 |
children | 3ac156db9cb6 |
line wrap: on
line diff
--- a/console/libgnt/gntbutton.c Sat Sep 02 23:06:25 2006 +0000 +++ b/console/libgnt/gntbutton.c Sat Sep 02 23:23:30 2006 +0000 @@ -128,7 +128,7 @@ GntWidget *widget = g_object_new(GNT_TYPE_BUTTON, NULL); GntButton *button = GNT_BUTTON(widget); - button->priv->text = g_strdup(text); + button->priv->text = gnt_util_onscreen_fit_string(text, -1); gnt_widget_set_take_focus(widget, TRUE); return widget;