[chronojump] Added person name label on sprint treeview
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Added person name label on sprint treeview
- Date: Fri, 21 Apr 2017 19:51:35 +0000 (UTC)
commit f2c25f3e67d778f81352344602598effee9056e6
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Apr 21 21:50:17 2017 +0200
Added person name label on sprint treeview
glade/app1.glade | 141 +++++++++++++++++++++++++++++++------------------
src/gui/chronojump.cs | 2 +
2 files changed, 91 insertions(+), 52 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index e8aba90..47994b2 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -1221,6 +1221,9 @@
<placeholder/>
</child>
<child>
+ <placeholder/>
+ </child>
+ <child>
<widget class="GtkLabel"
id="label_start_selector_jumps">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -13995,94 +13998,125 @@ Concentric</property>
</packing>
</child>
<child>
- <widget class="GtkVPaned" id="vpaned1">
+ <widget class="GtkAlignment" id="alignment28">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <property name="can_focus">False</property>
+ <property name="top_padding">4</property>
<child>
- <widget class="GtkHBox" id="hbox76">
- <property name="height_request">75</property>
+ <widget class="GtkVPaned" id="vpaned1">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">12</property>
+ <property name="can_focus">True</property>
<child>
- <widget class="GtkScrolledWindow" id="scrolledwindow3">
+ <widget class="GtkVBox" id="vbox44">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property
name="hscrollbar_policy">automatic</property>
- <property
name="vscrollbar_policy">automatic</property>
+ <property name="can_focus">False</property>
+ <property name="spacing">2</property>
<child>
- <widget class="GtkTreeView"
id="treeview_runs_interval_sprint">
+ <widget class="GtkLabel"
id="label_sprint_person_name">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="rules_hint">True</property>
- <property name="enable_search">False</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
</widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
</child>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHButtonBox" id="hbuttonbox9">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="border_width">10</property>
<child>
- <widget class="GtkButton" id="button_sprint">
+ <widget class="GtkHBox" id="hbox76">
+ <property name="height_request">75</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="spacing">12</property>
+ <child>
+ <widget class="GtkScrolledWindow"
id="scrolledwindow3">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property
name="hscrollbar_policy">automatic</property>
+ <property
name="vscrollbar_policy">automatic</property>
+ <child>
+ <widget class="GtkTreeView"
id="treeview_runs_interval_sprint">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="rules_hint">True</property>
+ <property name="enable_search">False</property>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkHButtonBox" id="hbuttonbox9">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="border_width">10</property>
+ <child>
+ <widget class="GtkButton" id="button_sprint">
<property name="label">Sprint</property>
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<signal name="clicked"
handler="on_button_sprint_clicked" swapped="no"/>
- </widget>
- <packing>
+ </widget>
+ <packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
</packing>
</child>
</widget>
<packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">1</property>
+ <property name="resize">False</property>
+ <property name="shrink">False</property>
</packing>
</child>
- </widget>
- <packing>
- <property name="resize">False</property>
- <property name="shrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow4">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">automatic</property>
- <property name="vscrollbar_policy">automatic</property>
<child>
- <widget class="GtkViewport" id="viewport_sprint">
- <property name="height_request">200</property>
+ <widget class="GtkScrolledWindow" id="scrolledwindow4">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can_focus">True</property>
+ <property
name="hscrollbar_policy">automatic</property>
+ <property
name="vscrollbar_policy">automatic</property>
<child>
- <widget class="GtkImage" id="image_sprint">
+ <widget class="GtkViewport" id="viewport_sprint">
+ <property name="height_request">200</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <widget class="GtkImage" id="image_sprint">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property
name="stock">gtk-missing-image</property>
+ </widget>
+ </child>
</widget>
</child>
</widget>
+ <packing>
+ <property name="resize">True</property>
+ <property name="shrink">False</property>
+ </packing>
</child>
</widget>
- <packing>
- <property name="resize">True</property>
- <property name="shrink">False</property>
- </packing>
</child>
</widget>
<packing>
@@ -20205,6 +20239,9 @@ then click this button.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 310c6ff..bfde035 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -82,6 +82,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.RadioButton radio_mode_contacts_analyze;
[Widget] Gtk.RadioButton radio_mode_contacts_jumps_profile;
[Widget] Gtk.RadioButton radio_mode_contacts_sprint;
+ [Widget] Gtk.Label label_sprint_person_name;
[Widget] Gtk.Label label_version;
[Widget] Gtk.Label label_version_hidden; //just to have logo aligned on the middle
@@ -994,6 +995,7 @@ public partial class ChronoJumpWindow
else if(radio_menuitem_mode_runs_intervallic.Active)
{
updateGraphRunsInterval();
+ label_sprint_person_name.Text = string.Format(Catalog.GetString("Sprints of {0}"),
currentPerson.Name);
createTreeView_runs_interval_sprint (treeview_runs_interval_sprint);
}
else if(radio_menuitem_mode_rt.Active)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]