Automatically resize panel columns after changes
This commit is contained in:
parent
5da6ef2a5d
commit
d69e92b76a
4 changed files with 4 additions and 0 deletions
|
@ -882,6 +882,7 @@ midori_bookmarks_init (MidoriBookmarks* bookmarks)
|
||||||
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview), FALSE);
|
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview), FALSE);
|
||||||
gtk_tree_view_set_tooltip_column (GTK_TREE_VIEW (treeview), 1);
|
gtk_tree_view_set_tooltip_column (GTK_TREE_VIEW (treeview), 1);
|
||||||
column = gtk_tree_view_column_new ();
|
column = gtk_tree_view_column_new ();
|
||||||
|
gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
|
||||||
renderer_pixbuf = gtk_cell_renderer_pixbuf_new ();
|
renderer_pixbuf = gtk_cell_renderer_pixbuf_new ();
|
||||||
gtk_tree_view_column_pack_start (column, renderer_pixbuf, FALSE);
|
gtk_tree_view_column_pack_start (column, renderer_pixbuf, FALSE);
|
||||||
gtk_tree_view_column_set_cell_data_func (column, renderer_pixbuf,
|
gtk_tree_view_column_set_cell_data_func (column, renderer_pixbuf,
|
||||||
|
|
|
@ -357,6 +357,7 @@ midori_extensions_init (MidoriExtensions* extensions)
|
||||||
G_CALLBACK (midori_extensions_cell_renderer_toggled_cb), extensions);
|
G_CALLBACK (midori_extensions_cell_renderer_toggled_cb), extensions);
|
||||||
gtk_tree_view_append_column (GTK_TREE_VIEW (extensions->treeview), column);
|
gtk_tree_view_append_column (GTK_TREE_VIEW (extensions->treeview), column);
|
||||||
column = gtk_tree_view_column_new ();
|
column = gtk_tree_view_column_new ();
|
||||||
|
gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
|
||||||
renderer_text = gtk_cell_renderer_text_new ();
|
renderer_text = gtk_cell_renderer_text_new ();
|
||||||
gtk_tree_view_column_pack_start (column, renderer_text, FALSE);
|
gtk_tree_view_column_pack_start (column, renderer_text, FALSE);
|
||||||
gtk_tree_view_column_set_cell_data_func (column, renderer_text,
|
gtk_tree_view_column_set_cell_data_func (column, renderer_text,
|
||||||
|
|
|
@ -941,6 +941,7 @@ midori_history_init (MidoriHistory* history)
|
||||||
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview), FALSE);
|
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview), FALSE);
|
||||||
gtk_tree_view_set_tooltip_column (GTK_TREE_VIEW (treeview), 1);
|
gtk_tree_view_set_tooltip_column (GTK_TREE_VIEW (treeview), 1);
|
||||||
column = gtk_tree_view_column_new ();
|
column = gtk_tree_view_column_new ();
|
||||||
|
gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
|
||||||
renderer_pixbuf = gtk_cell_renderer_pixbuf_new ();
|
renderer_pixbuf = gtk_cell_renderer_pixbuf_new ();
|
||||||
gtk_tree_view_column_pack_start (column, renderer_pixbuf, FALSE);
|
gtk_tree_view_column_pack_start (column, renderer_pixbuf, FALSE);
|
||||||
gtk_tree_view_column_set_cell_data_func (column, renderer_pixbuf,
|
gtk_tree_view_column_set_cell_data_func (column, renderer_pixbuf,
|
||||||
|
|
|
@ -547,6 +547,7 @@ midori_transfers_init (MidoriTransfers* transfers)
|
||||||
transfers->treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (treestore));
|
transfers->treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (treestore));
|
||||||
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (transfers->treeview), FALSE);
|
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (transfers->treeview), FALSE);
|
||||||
column = gtk_tree_view_column_new ();
|
column = gtk_tree_view_column_new ();
|
||||||
|
gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
|
||||||
renderer_pixbuf = gtk_cell_renderer_pixbuf_new ();
|
renderer_pixbuf = gtk_cell_renderer_pixbuf_new ();
|
||||||
gtk_tree_view_column_pack_start (column, renderer_pixbuf, FALSE);
|
gtk_tree_view_column_pack_start (column, renderer_pixbuf, FALSE);
|
||||||
gtk_tree_view_column_set_cell_data_func (column, renderer_pixbuf,
|
gtk_tree_view_column_set_cell_data_func (column, renderer_pixbuf,
|
||||||
|
|
Loading…
Reference in a new issue