diff src/bar_keywords.c @ 1343:eebb8d0cb677

give the panes more control over expander title
author nadvornik
date Sat, 28 Feb 2009 19:44:58 +0000
parents 361120a66609
children c9949c19a6d0
line wrap: on
line diff
--- a/src/bar_keywords.c	Sat Feb 28 19:41:23 2009 +0000
+++ b/src/bar_keywords.c	Sat Feb 28 19:44:58 2009 +0000
@@ -484,7 +484,7 @@
 
 	WRITE_STRING("<pane_keywords\n");
 	indent++;
-	WRITE_CHAR(*pkd, pane.title);
+	write_char_option(outstr, indent, "pane.title", gtk_label_get_text(GTK_LABEL(pkd->pane.title)));
 	WRITE_BOOL(*pkd, pane.expanded);
 	WRITE_CHAR(*pkd, key);
 	indent--;
@@ -728,7 +728,7 @@
 	pkd->pane.pane_set_fd = bar_pane_keywords_set_fd;
 	pkd->pane.pane_event = bar_pane_keywords_event;
 	pkd->pane.pane_write_config = bar_pane_keywords_write_config;
-	pkd->pane.title = g_strdup(title);
+	pkd->pane.title = gtk_label_new(title);
 	pkd->pane.expanded = expanded;
 
 	pkd->key = g_strdup(key);