[gnome-clocks] Force integer division in togglerenderer
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Force integer division in togglerenderer
- Date: Mon, 12 Nov 2012 20:27:39 +0000 (UTC)
commit 84625bb95dc3d64fa5c7af7bffe47b382226a3d3
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Nov 4 21:31:37 2012 +0100
Force integer division in togglerenderer
gnomeclocks/widgets.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomeclocks/widgets.py b/gnomeclocks/widgets.py
index 4a6c48d..7c4de4b 100644
--- a/gnomeclocks/widgets.py
+++ b/gnomeclocks/widgets.py
@@ -207,7 +207,7 @@ class TogglePixbufRenderer(Gtk.CellRendererPixbuf):
x_offset, y_offset, width, height = Gtk.CellRendererPixbuf.do_get_size(self, widget, cell_area)
- width += icon_size / 4
+ width += icon_size // 4
return (x_offset, y_offset, width, height)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]