Mercurial > geeqie
diff src/bar_comment.c @ 1343:eebb8d0cb677
give the panes more control over expander title
author | nadvornik |
---|---|
date | Sat, 28 Feb 2009 19:44:58 +0000 |
parents | c1d108ab3388 |
children | 99eae1622e0c |
line wrap: on
line diff
--- a/src/bar_comment.c Sat Feb 28 19:41:23 2009 +0000 +++ b/src/bar_comment.c Sat Feb 28 19:44:58 2009 +0000 @@ -153,7 +153,7 @@ WRITE_STRING("<pane_comment\n"); indent++; - WRITE_CHAR(*pcd, pane.title); + write_char_option(outstr, indent, "pane.title", gtk_label_get_text(GTK_LABEL(pcd->pane.title))); WRITE_BOOL(*pcd, pane.expanded); WRITE_CHAR(*pcd, key); WRITE_INT(*pcd, height); @@ -204,7 +204,6 @@ file_data_unregister_notify_func(bar_pane_comment_notify_cb, pcd); file_data_unref(pcd->fd); - g_free(pcd->pane.title); g_free(pcd->key); @@ -223,7 +222,7 @@ pcd->pane.pane_set_fd = bar_pane_comment_set_fd; pcd->pane.pane_event = bar_pane_comment_event; pcd->pane.pane_write_config = bar_pane_comment_write_config; - pcd->pane.title = g_strdup(title); + pcd->pane.title = gtk_label_new(title); pcd->pane.expanded = expanded; pcd->key = g_strdup(key);