]> spindle.queued.net Git - midori/commitdiff
Automatically resize panel columns after changes
authorChristian Dywan <christian@twotoasts.de>
Wed, 24 Nov 2010 18:06:12 +0000 (19:06 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 24 Nov 2010 18:10:53 +0000 (19:10 +0100)
panels/midori-bookmarks.c
panels/midori-extensions.c
panels/midori-history.c
panels/midori-transfers.c

index 07a312de5851fb5e931fda0b55c6686f6b5caeb0..95b14c9ae2178c3e3525d4199b20054be0699306 100644 (file)
@@ -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,
index 847ff0c3728bcbbb81a7e8c4f01562cbc5c025c9..e25d1c5cf29371d00170bcebc809d6df33f9a234 100644 (file)
@@ -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,
index dce2fd1497a0a8a3f012c4acc53f6f4126740c0a..1f95319000527f19f283d8ca17b0629d2a550518 100644 (file)
@@ -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,
index 6b2f76622802b3745245895fabce9facbf574180..aa1598161b40729f52cc9994e903f9d4584c5e90 100644 (file)
@@ -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,