[gtk+] inspector: Make resource list columns resizable
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Make resource list columns resizable
- Date: Sat, 11 Oct 2014 12:02:23 +0000 (UTC)
commit 615e4332eff99a54a27f83ec06c96c4a62adc5c1
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 11 07:55:25 2014 -0400
inspector: Make resource list columns resizable
This tree has the potential to be deep, and contain long
names, so it forces the window to be wide, unless we
allow the columns to shrink.
gtk/inspector/resource-list.ui | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/inspector/resource-list.ui b/gtk/inspector/resource-list.ui
index 3ad78bf..6211ce7 100644
--- a/gtk/inspector/resource-list.ui
+++ b/gtk/inspector/resource-list.ui
@@ -37,10 +37,14 @@
<child>
<object class="GtkTreeViewColumn">
<property name="title" translatable="yes">Path</property>
+ <property name="resizable">True</property>
<property name="sort-column-id">0</property>
<child>
<object class="GtkCellRendererText">
<property name="scale">0.8</property>
+ <property name="ellipsize">end</property>
+ <property name="width-chars">10</property>
+ <property name="max-width-chars">5</property>
</object>
<attributes>
<attribute name="text">0</attribute>
@@ -51,6 +55,7 @@
<child>
<object class="GtkTreeViewColumn" id="count_column">
<property name="title" translatable="yes">Count</property>
+ <property name="resizable">True</property>
<property name="sort-column-id">1</property>
<child>
<object class="GtkCellRendererText" id="count_renderer">
@@ -62,6 +67,7 @@
<child>
<object class="GtkTreeViewColumn" id="size_column">
<property name="title" translatable="yes">Size</property>
+ <property name="resizable">True</property>
<property name="sort-column-id">2</property>
<child>
<object class="GtkCellRendererText" id="size_renderer">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]