Commit 791987d9 authored by Nick Schermer's avatar Nick Schermer

Give first column an initial size.

parent 6c9c62b4
......@@ -218,11 +218,17 @@ xfce_mime_window_init (XfceMimeWindow *window)
gtk_tree_view_column_set_clickable (column, TRUE);
gtk_tree_view_column_set_sort_indicator (column, TRUE);
gtk_tree_view_column_set_resizable (column, TRUE);
gtk_tree_view_column_set_expand (column, TRUE);
g_signal_connect (G_OBJECT (column), "clicked",
G_CALLBACK (xfce_mime_window_column_clicked), window);
gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column);
/* HACK, wont work in gtk3 */
/* give the first column some initial size that doesn't restrict anything
* later. Expanding this column will resize the view when a setting
* is changed */
column->resized_width = 300;
column->use_resized_width = TRUE;
renderer = gtk_cell_renderer_text_new ();
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (column), renderer, TRUE);
g_object_set (renderer, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
......@@ -233,6 +239,7 @@ xfce_mime_window_init (XfceMimeWindow *window)
column = gtk_tree_view_column_new ();
gtk_tree_view_column_set_title (column, _("Status"));
gtk_tree_view_column_set_clickable (column, TRUE);
gtk_tree_view_column_set_resizable (column, TRUE);
g_signal_connect (G_OBJECT (column), "clicked",
G_CALLBACK (xfce_mime_window_column_clicked), window);
gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment