[hamster-applet] tick labels on top
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] tick labels on top
- Date: Tue, 12 Jan 2010 13:53:30 +0000 (UTC)
commit 998a96799e0fc779985b09f4194f15f9517640bf
Author: Toms Bauģis <toms baugis gmail com>
Date: Tue Jan 12 13:53:02 2010 +0000
tick labels on top
data/stats.ui | 1 +
data/stats_stats.ui | 2 +-
hamster/widgets/timechart.py | 4 ++--
3 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/data/stats.ui b/data/stats.ui
index 4e47058..6fdb274 100644
--- a/data/stats.ui
+++ b/data/stats.ui
@@ -276,6 +276,7 @@
<object class="GtkVBox" id="vbox2">
<property name="visible">True</property>
<property name="orientation">vertical</property>
+ <property name="spacing">10</property>
<child>
<object class="GtkLabel" id="range_title">
<property name="visible">True</property>
diff --git a/data/stats_stats.ui b/data/stats_stats.ui
index c595fdb..60d10e6 100644
--- a/data/stats_stats.ui
+++ b/data/stats_stats.ui
@@ -97,7 +97,7 @@
<property name="spacing">12</property>
<child>
<object class="GtkAlignment" id="explore_everything">
- <property name="height_request">50</property>
+ <property name="height_request">70</property>
<property name="visible">True</property>
<child>
<placeholder/>
diff --git a/hamster/widgets/timechart.py b/hamster/widgets/timechart.py
index 6f44f06..8a0100a 100644
--- a/hamster/widgets/timechart.py
+++ b/hamster/widgets/timechart.py
@@ -213,7 +213,7 @@ class TimeChart(graphics.Area):
# the bars
for i, (current_time, total) in enumerate(self.tick_totals):
- bar_size = max(round(self.height * total * 0.9), 1)
+ bar_size = max(round(self.height * total * 0.8), 1)
x, bar_width = exes[current_time]
self.set_color(self.bar_color)
@@ -250,7 +250,7 @@ class TimeChart(graphics.Area):
self.layout.set_markup(current_time.strftime(step_format))
w, h = self.layout.get_pixel_size()
- self.context.move_to(x + 2, self.height - h - 2)
+ self.context.move_to(x + 2, 0)
self.context.show_layout(self.layout)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]