smart view: prevent call duration column from taking up space
Moves the call duration cell renderer to the same
cell area as the photo and name renderers.
Change-Id: Ia5b15e03409ad4b573dc41b4168f27a69275fedb
Tuleap: #74
diff --git a/src/recentcontactsview.cpp b/src/recentcontactsview.cpp
index 573ef4b..11bbd27 100644
--- a/src/recentcontactsview.cpp
+++ b/src/recentcontactsview.cpp
@@ -544,14 +544,10 @@
self,
NULL);
- gtk_tree_view_append_column(GTK_TREE_VIEW(self), column);
- gtk_tree_view_column_set_resizable(column, TRUE);
- gtk_tree_view_column_set_expand(column, TRUE);
-
- /* call duration column */
+ /* call duration */
renderer = gtk_cell_renderer_text_new();
- column = gtk_tree_view_column_new_with_attributes("Duration", renderer, NULL);
- gtk_tree_view_append_column(GTK_TREE_VIEW(self), column);
+ g_object_set(G_OBJECT(renderer), "xalign", 1.0, NULL);
+ gtk_cell_area_box_pack_end(GTK_CELL_AREA_BOX(area), renderer, FALSE, FALSE, FALSE);
gtk_tree_view_column_set_cell_data_func(
column,
renderer,
@@ -559,6 +555,9 @@
NULL,
NULL);
+ gtk_tree_view_append_column(GTK_TREE_VIEW(self), column);
+ gtk_tree_view_column_set_resizable(column, TRUE);
+ gtk_tree_view_column_set_expand(column, TRUE);
gtk_tree_view_expand_all(GTK_TREE_VIEW(self));
g_signal_connect(self, "button-press-event", G_CALLBACK(create_popup_menu), NULL);