comparison src/bar_keywords.c @ 1387:6f31fa931d3f

simplified bar interface
author nadvornik
date Fri, 06 Mar 2009 15:52:47 +0000
parents c9949c19a6d0
children c44f21235ffe
comparison
equal deleted inserted replaced
1386:4da6d326919c 1387:6f31fa931d3f
24 #include "ui_utildlg.h" 24 #include "ui_utildlg.h"
25 #include "utilops.h" 25 #include "utilops.h"
26 #include "bar.h" 26 #include "bar.h"
27 #include "ui_menu.h" 27 #include "ui_menu.h"
28 #include "rcfile.h" 28 #include "rcfile.h"
29 #include "layout.h"
29 30
30 static const gchar *keyword_favorite_defaults[] = { 31 static const gchar *keyword_favorite_defaults[] = {
31 N_("Favorite"), 32 N_("Favorite"),
32 N_("Todo"), 33 N_("Todo"),
33 N_("People"), 34 N_("People"),
559 { 560 {
560 GList *keywords = NULL; 561 GList *keywords = NULL;
561 GList *list = NULL; 562 GList *list = NULL;
562 GList *work; 563 GList *work;
563 564
564 if (!pkd->pane.list_func) return;
565
566 keywords = keyword_list_pull(pkd->keyword_view); 565 keywords = keyword_list_pull(pkd->keyword_view);
567 566
568 list = pkd->pane.list_func(pkd->pane.list_data); 567 list = layout_selection_list(pkd->pane.lw);
569 work = list; 568 work = list;
570 while (work) 569 while (work)
571 { 570 {
572 FileData *fd = work->data; 571 FileData *fd = work->data;
573 work = work->next; 572 work = work->next;
727 726
728 pkd->pane.pane_set_fd = bar_pane_keywords_set_fd; 727 pkd->pane.pane_set_fd = bar_pane_keywords_set_fd;
729 pkd->pane.pane_event = bar_pane_keywords_event; 728 pkd->pane.pane_event = bar_pane_keywords_event;
730 pkd->pane.pane_write_config = bar_pane_keywords_write_config; 729 pkd->pane.pane_write_config = bar_pane_keywords_write_config;
731 pkd->pane.title = gtk_label_new(title); 730 pkd->pane.title = gtk_label_new(title);
731 pref_label_bold(pkd->pane.title, TRUE, FALSE);
732
732 pkd->pane.expanded = expanded; 733 pkd->pane.expanded = expanded;
733 734
734 pkd->key = g_strdup(key); 735 pkd->key = g_strdup(key);
735 736
736 737