[ekiga] Added an HeapView in the ConversationPage widget



commit b6af1c6d4c03ff55cebdbf1e4a4137db930cf762
Author: Julien Puydt <jpuydt free fr>
Date:   Sun Feb 16 09:48:52 2014 +0100

    Added an HeapView in the ConversationPage widget
    
    It's useless as long as the SIP/loudmouth code don't give
    a meaningful heap to display!

 lib/engine/gui/gtk-frontend/conversation-page.cpp |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/conversation-page.cpp 
b/lib/engine/gui/gtk-frontend/conversation-page.cpp
index e75f9ef..748fe2a 100644
--- a/lib/engine/gui/gtk-frontend/conversation-page.cpp
+++ b/lib/engine/gui/gtk-frontend/conversation-page.cpp
@@ -37,9 +37,11 @@
 
 #include "conversation-page.h"
 #include "chat-area.h"
+#include "heap-view.h"
 
 struct _ConversationPagePrivate {
   GtkWidget* area;
+  GtkWidget* heapview;
 };
 
 G_DEFINE_TYPE (ConversationPage, conversation_page, GTK_TYPE_BOX);
@@ -79,6 +81,7 @@ conversation_page_new (Ekiga::ConversationPtr conversation)
 {
   ConversationPage* result = NULL;
   GtkWidget* area = NULL;
+  GtkWidget* heapview = NULL;
 
   result = (ConversationPage*)g_object_new (TYPE_CONVERSATION_PAGE, NULL);
 
@@ -88,5 +91,12 @@ conversation_page_new (Ekiga::ConversationPtr conversation)
                      TRUE,TRUE, 2);
   gtk_widget_show (area);
 
+  heapview = heap_view_new (conversation->get_heap());
+
+  result->priv->heapview = heapview;
+  gtk_box_pack_start (GTK_BOX (result), heapview,
+                     TRUE,TRUE, 2);
+  gtk_widget_show (heapview);
+
   return GTK_WIDGET (result);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]