[ekiga] Fixed gtk+ warnings in the heap view widget



commit 6cf4ead79b5512f9e01d65ff60ed12781f021a51
Author: Julien Puydt <jpuydt free fr>
Date:   Wed Feb 26 09:08:39 2014 +0100

    Fixed gtk+ warnings in the heap view widget
    
    I moved code around and ended up duplicating some lines... sloppy.

 lib/engine/gui/gtk-frontend/heap-view.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/heap-view.cpp b/lib/engine/gui/gtk-frontend/heap-view.cpp
index 6bb30f7..c75cf3a 100644
--- a/lib/engine/gui/gtk-frontend/heap-view.cpp
+++ b/lib/engine/gui/gtk-frontend/heap-view.cpp
@@ -576,11 +576,11 @@ heap_view_init (HeapView* self)
 
   /* hidden column to hide the default expanders */
   col = gtk_tree_view_column_new ();
+  gtk_tree_view_append_column (self->priv->view, col);
   renderer = gtk_cell_renderer_pixbuf_new ();
   gtk_tree_view_column_set_spacing (col, 0);
   gtk_tree_view_column_pack_start (col, renderer, TRUE);
   g_object_set (col, "visible", FALSE, NULL);
-  gtk_tree_view_append_column (self->priv->view, col);
   gtk_tree_view_set_expander_column (self->priv->view, col);
 
 
@@ -600,7 +600,6 @@ heap_view_init (HeapView* self)
                 NULL);
   gtk_tree_view_column_set_cell_data_func (col, renderer,
                                           expand_cell_data_func, self, NULL);
-  gtk_tree_view_append_column (self->priv->view, col);
 
   /* show the name of a group */
   renderer = gtk_cell_renderer_text_new ();


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