[gnome-clocks] Replace the day & night assets



commit 9983de2a75ed0dc51494d5748c03849d6d25bd0c
Author: Paolo Borelli <pborelli gnome org>
Date:   Tue Feb 19 21:26:27 2013 +0100

    Replace the day & night assets
    
    Use the new assets prepared by Jacub, increase the size of the tiles and
    make the window default to a size that can hold 6 clocks in two rows

 data/images/day.jpg   |  Bin 79416 -> 0 bytes
 data/images/day.png   |  Bin 34012 -> 60927 bytes
 data/images/night.jpg |  Bin 6426 -> 0 bytes
 data/images/night.png |  Bin 5169 -> 18479 bytes
 src/widgets.vala      |    6 +++---
 src/window.vala       |    6 +++---
 6 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/data/images/day.png b/data/images/day.png
index dbbdd94..cb826cf 100644
Binary files a/data/images/day.png and b/data/images/day.png differ
diff --git a/data/images/night.png b/data/images/night.png
index 5215c5f..634d9f3 100644
Binary files a/data/images/night.png and b/data/images/night.png differ
diff --git a/src/widgets.vala b/src/widgets.vala
index 4235638..cd8ef15 100644
--- a/src/widgets.vala
+++ b/src/widgets.vala
@@ -258,16 +258,16 @@ public class IconView : Gtk.IconView {
 
         thumb_renderer = new DigitalClockRenderer ();
         thumb_renderer.set_alignment (0.5f, 0.5f);
-        thumb_renderer.set_fixed_size (160, 160);
+        thumb_renderer.set_fixed_size (256, 256);
         pack_start (thumb_renderer, false);
         add_attribute (thumb_renderer, "active", Column.SELECTED);
         set_cell_data_func (thumb_renderer, (owned) thumb_data_func);
 
         var text_renderer = new Gtk.CellRendererText ();
         text_renderer.set_alignment (0.5f, 0.5f);
-        text_renderer.set_fixed_size (160, -1);
+        text_renderer.set_fixed_size (256, -1);
         text_renderer.alignment = Pango.Alignment.CENTER;
-        text_renderer.wrap_width = 140;
+        text_renderer.wrap_width = 220;
         text_renderer.wrap_mode = Pango.WrapMode.WORD_CHAR;
         pack_start (text_renderer, true);
         add_attribute (text_renderer, "markup", Column.LABEL);
diff --git a/src/window.vala b/src/window.vala
index dfefa64..4e41a7d 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -19,9 +19,9 @@
 namespace Clocks {
 
 public class Window : Gtk.ApplicationWindow {
-    // Default size is enough for two rows of 4 clocks
-    private const int DEFAULT_WIDTH = 788;
-    private const int DEFAULT_HEIGHT = 540;
+    // Default size is enough for two rows of three clocks
+    private const int DEFAULT_WIDTH = 882;
+    private const int DEFAULT_HEIGHT = 680;
 
     private const GLib.ActionEntry[] action_entries = {
         // app menu


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]