Mercurial > pidgin.yaz
changeset 10702:f51e040affc6
[gaim-migrate @ 12284]
I think this leaked
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sun, 20 Mar 2005 01:16:43 +0000 |
parents | e4d893b12624 |
children | a7486f12e56f |
files | src/gtkstatusbox.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkstatusbox.c Sun Mar 20 01:14:57 2005 +0000 +++ b/src/gtkstatusbox.c Sun Mar 20 01:16:43 2005 +0000 @@ -112,6 +112,7 @@ char *text, *title; char aa_color[8]; GdkPixbuf *pixbuf; + GtkTreePath *path; GtkStyle *style = gtk_widget_get_style(GTK_WIDGET(status_box)); snprintf(aa_color, sizeof(aa_color), "#%02x%02x%02x", @@ -158,7 +159,9 @@ TITLE_COLUMN, title, DESC_COLUMN, status_box->desc, TYPE_COLUMN, NULL, -1); - gtk_cell_view_set_displayed_row(GTK_CELL_VIEW(status_box->cell_view), gtk_tree_path_new_from_string("0")); + path = gtk_tree_path_new_from_string("0"); + gtk_cell_view_set_displayed_row(GTK_CELL_VIEW(status_box->cell_view), path); + gtk_tree_path_free(path); g_free(text); }