[gnome-shell/wip/fmuellner/notification-redux: 62/82] dateMenu: Remove separator



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

    dateMenu: Remove separator

 data/theme/gnome-shell.css |    6 ------
 js/ui/dateMenu.js          |   21 ---------------------
 2 files changed, 0 insertions(+), 27 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index e9de696..46682ce 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -1293,12 +1293,6 @@ StScrollBar StButton#vhandle:active {
 
 /* Calendar popup */
 
-.calendar-vertical-separator {
-    -stipple-width: 1px;
-    -stipple-color: #505050;
-    width: 0.3em;
-}
-
 .calendar {
     padding: .4em 1.75em .8em 1.75em;
 }
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]