[gnome-shell/wip/fmuellner/notification-redux+sass: 143/207] dateMenu: Remove separator



commit c58f84f0c9fcd88a5184ea340584abacf44109e8
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Feb 13 16:27:50 2015 +0100

    dateMenu: Remove separator

 js/ui/dateMenu.js |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index fbd1037..5659440 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -20,22 +20,6 @@ const PanelMenu = imports.ui.panelMenu;
 const PopupMenu = imports.ui.popupMenu;
 const Calendar = imports.ui.calendar;
 
-function _onVertSepRepaint(area) {
-    let cr = area.get_context();
-    let themeNode = area.get_theme_node();
-    let [width, height] = area.get_surface_size();
-    let stippleColor = themeNode.get_color('-stipple-color');
-    let stippleWidth = themeNode.get_length('-stipple-width');
-    let x = Math.floor(width/2) + 0.5;
-    cr.moveTo(x, 0);
-    cr.lineTo(x, height);
-    Clutter.cairo_set_source_color(cr, stippleColor);
-    cr.setDash([1, 3], 1); // Hard-code for now
-    cr.setLineWidth(stippleWidth);
-    cr.stroke();
-    cr.$dispose();
-}
-
 function _isToday(date) {
     let now = new Date();
     return now.getYear() == date.getYear() &&
@@ -292,11 +276,6 @@ const DateMenuButton = new Lang.Class({
             }
         }));
 
-        this._separator = new St.DrawingArea({ style_class: 'calendar-vertical-separator',
-                                               pseudo_class: 'highlighted' });
-        this._separator.connect('repaint', Lang.bind(this, _onVertSepRepaint));
-        hbox.add(this._separator);
-
         // Fill up the second column
         vbox = new St.BoxLayout({vertical: true});
         hbox.add(vbox);


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