[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Sun, 20 Mar 2022 04:55:22 -0400 (EDT) |
branch: master
commit 63c63f4f0d248194673e55e5a8aa4c6d20cb58ad
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Mon Oct 21 11:55:08 2019 +0100
use tree store instead of list store
---
js/infog/main.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/js/infog/main.c b/js/infog/main.c
index e80b95e81a..8cd36151db 100644
--- a/js/infog/main.c
+++ b/js/infog/main.c
@@ -68,7 +68,7 @@ GtkEntryCompletion *index_completion = 0;
GtkListStore *index_store = 0;
GtkTreeView *toc_pane;
-GtkListStore *toc_store = 0;
+GtkTreeStore *toc_store = 0;
GtkTreeSelection *toc_selection = 0;
GtkWidget *toc_scroll = 0;
@@ -235,7 +235,7 @@ load_toc (char *p)
if (!toc_store)
{
- toc_store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING);
+ toc_store = gtk_tree_store_new (2, G_TYPE_STRING, G_TYPE_STRING);
gtk_tree_view_set_model (toc_pane, GTK_TREE_MODEL(toc_store));
toc_renderer = gtk_cell_renderer_text_new ();
@@ -256,8 +256,8 @@ load_toc (char *p)
*q2++ = 0;
debug (1, "add toc entry %s:%s\n", p, q);
- gtk_list_store_append (toc_store, &iter);
- gtk_list_store_set (toc_store, &iter,
+ gtk_tree_store_append (toc_store, &iter, NULL);
+ gtk_tree_store_set (toc_store, &iter,
0, p, 1, q, -1);
p = q2;
@@ -338,7 +338,7 @@ socket_cb (GSocket *socket,
{
debug (1, "NEW MANUAL %s\n", p + 1);
clear_completions ();
- gtk_list_store_clear (toc_store);
+ gtk_tree_store_clear (toc_store);
char *q = strchr (p + 1, '\n');
if (!q)
- [no subject], (continued)
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject],
Gavin D. Smith <=
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20