aboutsummaryrefslogtreecommitdiff
path: root/src/conversation/gnunet-conversation-gtk_history.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conversation/gnunet-conversation-gtk_history.c')
-rw-r--r--src/conversation/gnunet-conversation-gtk_history.c44
1 files changed, 25 insertions, 19 deletions
diff --git a/src/conversation/gnunet-conversation-gtk_history.c b/src/conversation/gnunet-conversation-gtk_history.c
index 5956b611..296f6ccd 100644
--- a/src/conversation/gnunet-conversation-gtk_history.c
+++ b/src/conversation/gnunet-conversation-gtk_history.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 (C) 2010-2013 Christian Grothoff (and other contributing authors) 3 (C) 2010-2014 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -19,23 +19,21 @@
19*/ 19*/
20/** 20/**
21 * @file src/conversation/gnunet-conversation-gtk_history.c 21 * @file src/conversation/gnunet-conversation-gtk_history.c
22 * @brief 22 * @brief manages the call history view
23 * @author yids 23 * @author yids
24 * @author hark 24 * @author hark
25 * @author Christian Grothoff
25 */ 26 */
26#include "gnunet-conversation-gtk.h" 27#include "gnunet-conversation-gtk.h"
28#include "gnunet-conversation-gtk_history.h"
27 29
28
29/*******
30 * history
31 ********/
32/** 30/**
33 * call history liststore 31 * call history liststore // FIXME: which one is it?
34 */ 32 */
35static GtkListStore *history_liststore; 33static GtkListStore *history_liststore;
36 34
37/** 35/**
38 * call history treestore 36 * call history treestore // FIXME: which one is it?
39 */ 37 */
40static GtkTreeStore *history_treestore; 38static GtkTreeStore *history_treestore;
41 39
@@ -50,16 +48,15 @@ static GtkTreeView *history_treeview;
50static GtkTreeModel *history_treemodel; 48static GtkTreeModel *history_treemodel;
51 49
52 50
53/* 51/**
54 *
55 * adds a item to the call history 52 * adds a item to the call history
56 * 53 *
57 * @param type type of call: 0: accepted 1: rejected 2: outgoing call 54 * @param type type of call: 0: accepted 1: rejected 2: outgoing call
58 * @return void 55 * @return void
59 */ 56 */
60 57void
61extern void 58GCG_HISTORY_add (int type,
62GNUNET_CONVERSATION_GTK_history_add (int type, char *contactName) 59 char *contactName)
63{ 60{
64 GtkTreeIter iter; 61 GtkTreeIter iter;
65 time_t t; 62 time_t t;
@@ -92,15 +89,24 @@ GNUNET_CONVERSATION_GTK_history_add (int type, char *contactName)
92 contactName, -1); 89 contactName, -1);
93} 90}
94 91
95extern void 92
96GNUNET_CONVERSATION_GTK_history_init(){ 93/**
94 * Intialize history subsystem.
95 */
96void
97GCG_HISTORY_init ()
98{
97 // call history 99 // call history
98 history_liststore = 100 history_liststore =
99 GTK_LIST_STORE (GCG_get_main_window_object ("gnunet_conversation_gtk_history_liststore")); 101 GTK_LIST_STORE (GCG_get_main_window_object
102 ("gnunet_conversation_gtk_history_liststore"));
100 history_treeview = 103 history_treeview =
101 GTK_TREE_VIEW (GCG_get_main_window_object ("gnunet_conversation_gtk_history_treeview")); 104 GTK_TREE_VIEW (GCG_get_main_window_object
105 ("gnunet_conversation_gtk_history_treeview"));
102 history_treestore = 106 history_treestore =
103 GTK_TREE_STORE (GCG_get_main_window_object ("gnunet_conversation_gtk_history_treestore")); 107 GTK_TREE_STORE (GCG_get_main_window_object
108 ("gnunet_conversation_gtk_history_treestore"));
104 history_treemodel = GTK_TREE_MODEL (history_treestore); 109 history_treemodel = GTK_TREE_MODEL (history_treestore);
105
106} 110}
111
112/* end of gnunet-conversation-gtk_history.c */