[devhelp] BookTree: better specify columns when calling gtk_tree_store_new()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] BookTree: better specify columns when calling gtk_tree_store_new()
- Date: Fri, 5 May 2017 11:55:53 +0000 (UTC)
commit 95915be3b42aff53ba7f972dd26ca9ba84f25a85
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri May 5 13:30:58 2017 +0200
BookTree: better specify columns when calling gtk_tree_store_new()
src/dh-book-tree.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/dh-book-tree.c b/src/dh-book-tree.c
index 9af6971..66ea9d2 100644
--- a/src/dh-book-tree.c
+++ b/src/dh-book-tree.c
@@ -646,9 +646,9 @@ dh_book_tree_init (DhBookTree *tree)
priv = dh_book_tree_get_instance_private (tree);
priv->store = gtk_tree_store_new (N_COLUMNS,
- G_TYPE_STRING,
- G_TYPE_POINTER,
- G_TYPE_OBJECT,
+ G_TYPE_STRING, /* Title */
+ G_TYPE_POINTER, /* DhLink */
+ DH_TYPE_BOOK,
PANGO_TYPE_WEIGHT,
PANGO_TYPE_UNDERLINE);
priv->selected_link = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]