Mercurial > geeqie.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
1342:06ec1279e33e | 1343:eebb8d0cb677 |
---|---|
482 pkd = g_object_get_data(G_OBJECT(pane), "pane_data"); | 482 pkd = g_object_get_data(G_OBJECT(pane), "pane_data"); |
483 if (!pkd) return; | 483 if (!pkd) return; |
484 | 484 |
485 WRITE_STRING("<pane_keywords\n"); | 485 WRITE_STRING("<pane_keywords\n"); |
486 indent++; | 486 indent++; |
487 WRITE_CHAR(*pkd, pane.title); | 487 write_char_option(outstr, indent, "pane.title", gtk_label_get_text(GTK_LABEL(pkd->pane.title))); |
488 WRITE_BOOL(*pkd, pane.expanded); | 488 WRITE_BOOL(*pkd, pane.expanded); |
489 WRITE_CHAR(*pkd, key); | 489 WRITE_CHAR(*pkd, key); |
490 indent--; | 490 indent--; |
491 WRITE_STRING("/>\n"); | 491 WRITE_STRING("/>\n"); |
492 } | 492 } |
726 pkd = g_new0(PaneKeywordsData, 1); | 726 pkd = g_new0(PaneKeywordsData, 1); |
727 | 727 |
728 pkd->pane.pane_set_fd = bar_pane_keywords_set_fd; | 728 pkd->pane.pane_set_fd = bar_pane_keywords_set_fd; |
729 pkd->pane.pane_event = bar_pane_keywords_event; | 729 pkd->pane.pane_event = bar_pane_keywords_event; |
730 pkd->pane.pane_write_config = bar_pane_keywords_write_config; | 730 pkd->pane.pane_write_config = bar_pane_keywords_write_config; |
731 pkd->pane.title = g_strdup(title); | 731 pkd->pane.title = gtk_label_new(title); |
732 pkd->pane.expanded = expanded; | 732 pkd->pane.expanded = expanded; |
733 | 733 |
734 pkd->key = g_strdup(key); | 734 pkd->key = g_strdup(key); |
735 | 735 |
736 | 736 |