[polari] roomList: Set CSS element name for header



commit 3653930289aa0400972ad71f26f78959e48b7d4d
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Nov 12 15:17:07 2015 +0100

    roomList: Set CSS element name for header
    
    GtkButton now uses an element name instead of a style class, so we
    need to override that to disable the normal button theming now.

 data/resources/room-list-header.ui |    1 -
 src/roomList.js                    |    3 +--
 2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/data/resources/room-list-header.ui b/data/resources/room-list-header.ui
index 3e5a3fa..3a80583 100644
--- a/data/resources/room-list-header.ui
+++ b/data/resources/room-list-header.ui
@@ -9,7 +9,6 @@
     <property name="visible">True</property>
     <style>
       <class name="room-list-header"/>
-      <class name="list-row" />
       <class name="activatable" />
     </style>
     <child>
diff --git a/src/roomList.js b/src/roomList.js
index 371906d..16670be 100644
--- a/src/roomList.js
+++ b/src/roomList.js
@@ -159,6 +159,7 @@ const RoomRow = new Lang.Class({
 const RoomListHeader = new Lang.Class({
     Name: 'RoomListHeader',
     Extends: Gtk.MenuButton,
+    CssName: 'row',
     Template: 'resource:///org/gnome/Polari/room-list-header.ui',
     InternalChildren: ['label',
                        'iconStack',
@@ -176,8 +177,6 @@ const RoomListHeader = new Lang.Class({
 
         this.parent(params);
 
-        this.get_style_context().remove_class('button');
-
         this._errorPopover.relative_to = this._iconStack;
         this._popoverButton.connect('clicked', Lang.bind(this,
             function() {


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