[gitg/vala] history: no need of grid, use directly the scrolled window
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/vala] history: no need of grid, use directly the scrolled window
- Date: Wed, 30 May 2012 20:53:01 +0000 (UTC)
commit 8e76c08ce4bd011d9294b65b55963d750d2f9b90
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed May 30 22:04:14 2012 +0200
history: no need of grid, use directly the scrolled window
plugins/history/gitg-history.vala | 4 +-
plugins/history/resources/view-history.ui | 107 ++++++++++++----------------
2 files changed, 48 insertions(+), 63 deletions(-)
---
diff --git a/plugins/history/gitg-history.vala b/plugins/history/gitg-history.vala
index b927b8c..fd9fbce 100644
--- a/plugins/history/gitg-history.vala
+++ b/plugins/history/gitg-history.vala
@@ -69,13 +69,13 @@ namespace GitgHistory
private void build_ui()
{
- var ret = from_builder("view-history.ui", {"view", "commit_list_view"});
+ var ret = from_builder("view-history.ui", {"scrolled_window_commit_list", "commit_list_view"});
d_view = ret["commit_list_view"] as Gtk.TreeView;
d_view.model = d_model;
update_walker(null);
- d_main = ret["view"] as Gtk.Widget;
+ d_main = ret["scrolled_window_commit_list"] as Gtk.Widget;
}
private void update_walker(Ggit.Ref? head)
diff --git a/plugins/history/resources/view-history.ui b/plugins/history/resources/view-history.ui
index 090b0c3..72cca18 100644
--- a/plugins/history/resources/view-history.ui
+++ b/plugins/history/resources/view-history.ui
@@ -1,82 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.3 -->
- <object class="GtkGrid" id="view">
+ <object class="GtkScrolledWindow" id="scrolled_window_commit_list">
<property name="visible">True</property>
- <property name="row-spacing">6</property>
- <property name="vexpand">True</property>
<property name="hexpand">True</property>
- <property name="orientation">vertical</property>
+ <property name="vexpand">True</property>
+ <property name="can_focus">True</property>
+ <property name="shadow-type">etched-in</property>
<child>
- <object class="GtkScrolledWindow" id="scrolled_window_commit_list">
+ <object class="GitgGtkCommitListView" id="commit_list_view">
<property name="visible">True</property>
- <property name="hexpand">True</property>
- <property name="vexpand">True</property>
<property name="can_focus">True</property>
- <property name="shadow-type">etched-in</property>
+ <property name="rules_hint">True</property>
+ <property name="fixed-height-mode">True</property>
<child>
- <object class="GitgGtkCommitListView" id="commit_list_view">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="rules_hint">True</property>
- <property name="fixed-height-mode">True</property>
+ <object class="GtkTreeViewColumn" id="column_commit_list_subject">
+ <property name="title" translatable="yes">Subject</property>
+ <property name="sizing">fixed</property>
+ <property name="resizable">True</property>
+ <property name="fixed-width">400</property>
<child>
- <object class="GtkTreeViewColumn" id="column_commit_list_subject">
- <property name="title" translatable="yes">Subject</property>
- <property name="sizing">fixed</property>
- <property name="resizable">True</property>
- <property name="fixed-width">400</property>
- <child>
- <object class="GitgGtkCellRendererLanes" id="renderer_commit_list_subject">
- <property name="ellipsize">end</property>
- </object>
- <attributes>
- <attribute name="text">1</attribute>
- </attributes>
- </child>
+ <object class="GitgGtkCellRendererLanes" id="renderer_commit_list_subject">
+ <property name="ellipsize">end</property>
</object>
+ <attributes>
+ <attribute name="text">1</attribute>
+ </attributes>
</child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkTreeViewColumn" id="column_commit_list_author">
+ <property name="title" translatable="yes">Author</property>
+ <property name="sizing">fixed</property>
+ <property name="resizable">True</property>
+ <property name="fixed-width">200</property>
<child>
- <object class="GtkTreeViewColumn" id="column_commit_list_author">
- <property name="title" translatable="yes">Author</property>
- <property name="sizing">fixed</property>
- <property name="resizable">True</property>
- <property name="fixed-width">200</property>
- <child>
- <object class="GtkCellRendererText" id="renderer_commit_list_author">
- <property name="ellipsize">end</property>
- </object>
- <attributes>
- <attribute name="text">4</attribute>
- </attributes>
- </child>
+ <object class="GtkCellRendererText" id="renderer_commit_list_author">
+ <property name="ellipsize">end</property>
</object>
+ <attributes>
+ <attribute name="text">4</attribute>
+ </attributes>
</child>
- <!--<child>
- <object class="GtkTreeViewColumn" id="column_commit_list_date">
- <property name="title" translatable="yes">Date</property>
- <property name="sizing">fixed</property>
- <property name="resizable">True</property>
- <property name="fixed-width">150</property>
- <child>
- <object class="GtkCellRendererText" id="renderer_commit_list_date">
- <property name="ellipsize">end</property>
- </object>
- <attributes>
- <attribute name="text">6</attribute>
- </attributes>
- </child>
- </object>
- </child>-->
</object>
</child>
+ <!--<child>
+ <object class="GtkTreeViewColumn" id="column_commit_list_date">
+ <property name="title" translatable="yes">Date</property>
+ <property name="sizing">fixed</property>
+ <property name="resizable">True</property>
+ <property name="fixed-width">150</property>
+ <child>
+ <object class="GtkCellRendererText" id="renderer_commit_list_date">
+ <property name="ellipsize">end</property>
+ </object>
+ <attributes>
+ <attribute name="text">6</attribute>
+ </attributes>
+ </child>
+ </object>
+ </child>-->
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
</child>
</object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]