From 86174df35cd77038e4850e96ac4b933ed6677bd5 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 5 Jul 2004 10:37:44 +0000 Subject: Some ordering/sizing tweak 2004-07-05 Marco Pesenti Gritti * embed/downloader-view.c: (downloader_view_build_ui): Some ordering/sizing tweak --- ChangeLog | 6 ++++++ embed/downloader-view.c | 15 ++++----------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index a74429e68..dad340f5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-07-05 Marco Pesenti Gritti + + * embed/downloader-view.c: (downloader_view_build_ui): + + Some ordering/sizing tweak + 2004-07-05 Marco Pesenti Gritti * src/bookmarks/ephy-bookmark-action.c: (drag_motion_cb): diff --git a/embed/downloader-view.c b/embed/downloader-view.c index e9db4edb2..9b38ea993 100644 --- a/embed/downloader-view.c +++ b/embed/downloader-view.c @@ -47,17 +47,17 @@ enum { + COL_PERCENT, COL_IMAGE, COL_FILE, - COL_PERCENT, COL_REMAINING, COL_DOWNLOAD_OBJECT }; enum { - FILE_COL_POS, PERCENT_COL_POS, + FILE_COL_POS, REMAINING_COL_POS }; @@ -542,9 +542,9 @@ downloader_view_build_ui (DownloaderView *dv) GTK_SELECTION_BROWSE); liststore = gtk_list_store_new (5, + G_TYPE_INT, GDK_TYPE_PIXBUF, G_TYPE_STRING, - G_TYPE_INT, G_TYPE_STRING, G_TYPE_OBJECT); @@ -557,7 +557,7 @@ downloader_view_build_ui (DownloaderView *dv) column = gtk_tree_view_column_new (); gtk_tree_view_column_set_title (column, _("File")); renderer = gtk_cell_renderer_pixbuf_new (); - g_object_set (renderer, "xpad", 3, "ypad", 3, NULL); + g_object_set (renderer, "xpad", 3, NULL); gtk_tree_view_column_pack_start (column, renderer, FALSE); gtk_tree_view_column_set_attributes (column, renderer, "pixbuf", COL_IMAGE, @@ -569,7 +569,6 @@ downloader_view_build_ui (DownloaderView *dv) NULL); gtk_tree_view_insert_column (GTK_TREE_VIEW (priv->treeview), column, FILE_COL_POS); gtk_tree_view_column_set_expand (column, TRUE); - gtk_tree_view_column_set_reorderable (column, TRUE); gtk_tree_view_column_set_resizable (column, TRUE); gtk_tree_view_column_set_sort_column_id (column, COL_FILE); gtk_tree_view_column_set_spacing (column, 3); @@ -583,10 +582,6 @@ downloader_view_build_ui (DownloaderView *dv) "value", COL_PERCENT, NULL); column = gtk_tree_view_get_column (GTK_TREE_VIEW(priv->treeview), PERCENT_COL_POS); - gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_FIXED); - gtk_tree_view_column_set_fixed_width (column, 200); - gtk_tree_view_column_set_reorderable (column, TRUE); - gtk_tree_view_column_set_resizable (column, TRUE); gtk_tree_view_column_set_sort_column_id (column, COL_PERCENT); /* Remainng time column */ @@ -600,8 +595,6 @@ downloader_view_build_ui (DownloaderView *dv) column = gtk_tree_view_get_column (GTK_TREE_VIEW(priv->treeview), REMAINING_COL_POS); - gtk_tree_view_column_set_reorderable (column, TRUE); - gtk_tree_view_column_set_resizable (column, TRUE); gtk_tree_view_column_set_sort_column_id (column, COL_REMAINING); priv->model = GTK_TREE_MODEL (liststore); -- cgit v1.2.3