[polari/wip/kunaljain/polari-search] closer to mockup



commit 1d00509c71984a92b4b63b14bda7660beeef2290
Author: Kunaal Jain <kunaalus gmail com>
Date:   Thu Jun 16 02:33:46 2016 +0530

    closer to mockup

 src/mainWindow.js |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index f6dc2c5..b7d5294 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -288,10 +288,15 @@ const MainWindow = new Lang.Class({
             } else {
                 let row = new Gtk.ListBoxRow({visible: true});
                 let box = new Gtk.Box({
-                orientation: Gtk.Orientation.VERTICAL,
+                orientation: Gtk.Orientation.HORIZONTAL,
                homogeneous: false,
                spacing: 0,
                 visible: true});
+                let box1 = new Gtk.Box({
+                orientation: Gtk.Orientation.VERTICAL,
+                homogeneous: false,
+                spacing: 0,
+                visible: true});
                 let label = new Gtk.Label({ label: message,
                                             halign: Gtk.Align.START,
                                             margin_start: 6,
@@ -308,9 +313,19 @@ const MainWindow = new Lang.Class({
                                             ellipsize: Pango.EllipsizeMode.END,
                                             max_width_chars: 18,
                                             use_markup: true });
+                let label2 = new Gtk.Label({ label: "TIMESTAMP",
+                                            halign: Gtk.Align.START,
+                                            margin_start: 6,
+                                            margin_end: 6,
+                                            visible: true,
+                                            ellipsize: Pango.EllipsizeMode.END,
+                                            max_width_chars: 18,
+                                            use_markup: true });
                 box.pack_start(label1, false, true, 0);
-                box.pack_start(label, false, true, 0);
-                row.add(box);
+                box.pack_start(label2, false, true, 0);
+                box1.pack_start(box, false, true, 0);
+                box1.pack_start(label, false, true, 0);
+                row.add(box1);
                 row.uid = events[i].id;
                 widgetMap[uid] = row;
             }


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