From: Christian Dywan Date: Wed, 24 Nov 2010 18:06:12 +0000 (+0100) Subject: Automatically resize panel columns after changes X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d69e92b76a5fae7575cb9925d3b10e583dd64815;p=midori Automatically resize panel columns after changes --- diff --git a/panels/midori-bookmarks.c b/panels/midori-bookmarks.c index 07a312de..95b14c9a 100644 --- a/panels/midori-bookmarks.c +++ b/panels/midori-bookmarks.c @@ -882,6 +882,7 @@ midori_bookmarks_init (MidoriBookmarks* bookmarks) gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview), FALSE); gtk_tree_view_set_tooltip_column (GTK_TREE_VIEW (treeview), 1); 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 (); gtk_tree_view_column_pack_start (column, renderer_pixbuf, FALSE); gtk_tree_view_column_set_cell_data_func (column, renderer_pixbuf, diff --git a/panels/midori-extensions.c b/panels/midori-extensions.c index 847ff0c3..e25d1c5c 100644 --- a/panels/midori-extensions.c +++ b/panels/midori-extensions.c @@ -357,6 +357,7 @@ midori_extensions_init (MidoriExtensions* extensions) G_CALLBACK (midori_extensions_cell_renderer_toggled_cb), extensions); gtk_tree_view_append_column (GTK_TREE_VIEW (extensions->treeview), column); 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 (); gtk_tree_view_column_pack_start (column, renderer_text, FALSE); gtk_tree_view_column_set_cell_data_func (column, renderer_text, diff --git a/panels/midori-history.c b/panels/midori-history.c index dce2fd14..1f953190 100644 --- a/panels/midori-history.c +++ b/panels/midori-history.c @@ -941,6 +941,7 @@ midori_history_init (MidoriHistory* history) gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview), FALSE); gtk_tree_view_set_tooltip_column (GTK_TREE_VIEW (treeview), 1); 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 (); gtk_tree_view_column_pack_start (column, renderer_pixbuf, FALSE); gtk_tree_view_column_set_cell_data_func (column, renderer_pixbuf, diff --git a/panels/midori-transfers.c b/panels/midori-transfers.c index 6b2f7662..aa159816 100644 --- a/panels/midori-transfers.c +++ b/panels/midori-transfers.c @@ -547,6 +547,7 @@ midori_transfers_init (MidoriTransfers* transfers) transfers->treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (treestore)); gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (transfers->treeview), FALSE); 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 (); gtk_tree_view_column_pack_start (column, renderer_pixbuf, FALSE); gtk_tree_view_column_set_cell_data_func (column, renderer_pixbuf,