# gitview: Set the default width of graph cell

2 messages from 2006-02-28 to 2006-03-01. Participants: Aneesh Kumar K.V, Aneesh Kumar.
Thread: https://gitlist.dev/t/3496

## Aneesh Kumar K.V, 2006-02-28 14:40

Subject: gitview: Set the default width of graph cell
Message-ID: <440460DC.7080307@gmail.com>
URL: https://gitlist.dev/e/440460DC.7080307%40gmail.com

```


Subject: gitview: Set the default width  of graph cell

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>

---

 contrib/gitview/gitview |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

b298aa0ee1d98b263fe3d493f2911164a4488693
diff --git a/contrib/gitview/gitview b/contrib/gitview/gitview
index 47ecaa3..ea05cd4 100755
--- a/contrib/gitview/gitview
+++ b/contrib/gitview/gitview
@@ -526,6 +526,9 @@ class GitView:
 		self.treeview.show()
 
 		cell = CellRendererGraph()
+		#  Set the default width to 265
+		#  This make sure that we have nice display with large tag names
+		cell.set_property("width", 265)
 		column = gtk.TreeViewColumn()
 		column.set_resizable(True)
 		column.pack_start(cell, expand=True)
-- 
1.2.3.gc55f-dirty


```

## Aneesh Kumar, 2006-03-01 07:15

Subject: Re: gitview: Set the default width of graph cell
Message-ID: <cc723f590602282315q7ffac2bbub8a1ee32ee123963@mail.gmail.com>
URL: https://gitlist.dev/e/cc723f590602282315q7ffac2bbub8a1ee32ee123963%40mail.gmail.com
In-Reply-To: <440460DC.7080307@gmail.com>

```
On 2/28/06, Aneesh Kumar K.V <aneesh.kumar@gmail.com> wrote:
>
>
> Subject: gitview: Set the default width  of graph cell
>
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
>
> ---
>

I guess this one is better. Please apply this one . This is on top of
the previous one.

-aneesh


diff --git a/contrib/gitview/gitview b/contrib/gitview/gitview
index ea05cd4..de9f3f3 100755
--- a/contrib/gitview/gitview
+++ b/contrib/gitview/gitview
@@ -513,7 +513,7 @@ class GitView:
 
 
 		scrollwin = gtk.ScrolledWindow()
-		scrollwin.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
+		scrollwin.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
 		scrollwin.set_shadow_type(gtk.SHADOW_IN)
 		vbox.pack_start(scrollwin, expand=True, fill=True)
 		scrollwin.show()
@@ -526,9 +526,6 @@ class GitView:
 		self.treeview.show()
 
 		cell = CellRendererGraph()
-		#  Set the default width to 265
-		#  This make sure that we have nice display with large tag names
-		cell.set_property("width", 265)
 		column = gtk.TreeViewColumn()
 		column.set_resizable(True)
 		column.pack_start(cell, expand=True)

```
