diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/addressbook.c | 9 |
2 files changed, 13 insertions, 0 deletions
@@ -1,5 +1,9 @@ 2014-03-17 + * src/addressbook.c: auto-expand columns with GTK+ >= 2.14.0. + +2014-03-17 + * src/rpop3.c src/query_search.c src/summaryview.c diff --git a/src/addressbook.c b/src/addressbook.c index c6144d18..93417ee6 100644 --- a/src/addressbook.c +++ b/src/addressbook.c @@ -774,6 +774,9 @@ static void addressbook_create(void) (column, prefs_common.addressbook_col_name); gtk_tree_view_column_set_resizable(column, TRUE); gtk_tree_view_column_set_title(column, _("Name")); +#if GTK_CHECK_VERSION(2, 14, 0) + gtk_tree_view_column_set_expand(column, TRUE); +#endif renderer = gtk_cell_renderer_pixbuf_new(); g_object_set(renderer, "ypad", 0, NULL); @@ -810,6 +813,9 @@ static void addressbook_create(void) gtk_tree_view_column_set_fixed_width (column, prefs_common.addressbook_col_addr); gtk_tree_view_column_set_resizable(column, TRUE); +#if GTK_CHECK_VERSION(2, 14, 0) + gtk_tree_view_column_set_expand(column, TRUE); +#endif gtk_tree_view_column_set_sort_column_id(column, COL_ADDRESS); gtk_tree_view_append_column(GTK_TREE_VIEW(listview), column); g_signal_connect(G_OBJECT(column->button), "size-allocate", @@ -826,6 +832,9 @@ static void addressbook_create(void) (_("Remarks"), renderer, "text", COL_REMARKS, NULL); gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_FIXED); gtk_tree_view_column_set_resizable(column, TRUE); +#if GTK_CHECK_VERSION(2, 14, 0) + gtk_tree_view_column_set_expand(column, TRUE); +#endif gtk_tree_view_column_set_sort_column_id(column, COL_REMARKS); gtk_tree_view_append_column(GTK_TREE_VIEW(listview), column); g_signal_connect(G_OBJECT(column->button), "size-allocate", |