[gnome-clocks] Timer and stopwatch buttons - smaller labels
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Timer and stopwatch buttons - smaller labels
- Date: Thu, 16 Aug 2012 23:54:08 +0000 (UTC)
commit b2275bd4e0a98b680cb22fb3e8e8227ce7e9b2a1
Author: Allan Day <allanpday gmail com>
Date: Fri Aug 17 00:24:10 2012 +0100
Timer and stopwatch buttons - smaller labels
This looks better.
https://bugzilla.gnome.org/show_bug.cgi?id=682054
gnomeclocks/clocks.py | 4 +---
gnomeclocks/timer.py | 3 ++-
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gnomeclocks/clocks.py b/gnomeclocks/clocks.py
index a025129..803ae77 100644
--- a/gnomeclocks/clocks.py
+++ b/gnomeclocks/clocks.py
@@ -30,11 +30,10 @@ import pytz, time, os
STOPWATCH_LABEL_MARKUP = "<span font_desc=\"64.0\">%02i:%02i</span>"
-STOPWATCH_BUTTON_MARKUP = "<span font_desc=\"24.0\">%s</span>"
+STOPWATCH_BUTTON_MARKUP = "<span font_desc=\"18.0\">%s</span>"
TIMER_LABEL_MARKUP = "<span font_desc=\"64.0\">%02i:%02i:%02i</span>"
TIMER = "<span font_desc=\"64.0\">%02i</span>"
-TIMER_BUTTON_MARKUP = "<span font_desc=\"24.0\">%s</span>"
class ToggleButton(Gtk.ToggleButton):
def __init__(self, text):
@@ -408,7 +407,6 @@ class Timer (Clock):
self.timerbox.show_all()
def end_timer_screen(self):
- self.timer_screen.leftLabel.set_markup(TIMER_BUTTON_MARKUP % (_("Pause")))
self.timerbox.remove(self.timer_screen)
self.show_timer_welcome_screen()
self.timer_welcome_screen.hours.set_value(0)
diff --git a/gnomeclocks/timer.py b/gnomeclocks/timer.py
index e3bb488..bd85fb5 100644
--- a/gnomeclocks/timer.py
+++ b/gnomeclocks/timer.py
@@ -21,7 +21,7 @@ from gi.repository import Gtk, Gio, Gdk
TIMER = "<span font_desc=\"64.0\">%02i</span>"
TIMER_LABEL_MARKUP = "<span font_desc=\"64.0\">%02i:%02i:%02i</span>"
TIMER = "<span font_desc=\"64.0\">%02i</span>"
-TIMER_BUTTON_MARKUP = "<span font_desc=\"24.0\">%s</span>"
+TIMER_BUTTON_MARKUP = "<span font_desc=\"18.0\">%s</span>"
class Spinner(Gtk.Box):
@@ -124,6 +124,7 @@ class TimerScreen (Gtk.Box):
self.pack_start(hbox, False, False, 5)
def _on_right_button_clicked(self, data):
+ self.leftLabel.set_markup(TIMER_BUTTON_MARKUP % (_("Pause")))
self.timer.reset()
def _on_left_button_clicked(self, widget):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]