[gedit] Remove custom split headerbar css



commit 358082373c42d2203cce0d1f88f6645f0eaf64cc
Author: Paolo Borelli <pborelli gnome org>
Date:   Wed Dec 30 17:36:16 2015 +0100

    Remove custom split headerbar css
    
    It is now handled automatically by Adwaita

 gedit/gedit-window.c                |    2 --
 gedit/resources/css/gedit-style.css |   22 ----------------------
 gedit/resources/ui/gedit-window.ui  |   10 ----------
 3 files changed, 0 insertions(+), 34 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index d073ae4..7597863 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -2349,12 +2349,10 @@ side_panel_visibility_changed (GtkWidget   *panel,
        context = gtk_widget_get_style_context (window->priv->headerbar);
        if (visible)
        {
-               gtk_style_context_add_class (context, "gedit-titlebar-right");
                gtk_widget_grab_focus (window->priv->side_panel);
        }
        else
        {
-               gtk_style_context_remove_class (context, "gedit-titlebar-right");
                gtk_widget_grab_focus (GTK_WIDGET (window->priv->multi_notebook));
        }
 
diff --git a/gedit/resources/css/gedit-style.css b/gedit/resources/css/gedit-style.css
index 2223e86..fa14f8c 100644
--- a/gedit/resources/css/gedit-style.css
+++ b/gedit/resources/css/gedit-style.css
@@ -1,31 +1,9 @@
-.gedit-titlebar-left:dir(ltr),
-.gedit-titlebar-right:dir(rtl) {
-    border-top-right-radius: 0;
-}
-
-.gedit-titlebar-right:dir(ltr),
-.gedit-titlebar-left:dir(rtl) {
-    border-top-left-radius: 0;
-}
-
-.gedit-headerbar-paned.pane-separator:dir(ltr),
-.gedit-headerbar-paned.pane-separator:hover:dir(ltr) {
-    border-radius: 0;
-    border-width: 0 1px 1px 0;
-}
-
 .gedit-side-panel-paned.pane-separator:dir(ltr),
 .gedit-side-panel-paned.pane-separator:hover:dir(ltr) {
     border-radius: 0;
     border-width: 0 1px 0 0;
 }
 
-.gedit-headerbar-paned.pane-separator:dir(rtl),
-.gedit-headerbar-paned.pane-separator:hover:dir(rtl) {
-    border-radius: 0;
-    border-width: 0 0 1px 1px;
-}
-
 .gedit-side-panel-paned.pane-separator:dir(rtl),
 .gedit-side-panel-paned.pane-separator:hover:dir(rtl) {
     border-radius: 0;
diff --git a/gedit/resources/ui/gedit-window.ui b/gedit/resources/ui/gedit-window.ui
index cac2005..3c91873 100644
--- a/gedit/resources/ui/gedit-window.ui
+++ b/gedit/resources/ui/gedit-window.ui
@@ -9,18 +9,11 @@
       <object class="GtkPaned" id="titlebar_paned">
         <property name="visible">True</property>
         <property name="position" bind-source="hpaned" bind-property="position" 
bind-flags="bidirectional|sync-create"/>
-        <style>
-          <class name="gedit-headerbar-paned"/>
-        </style>
         <child>
           <object class="GtkHeaderBar" id="side_headerbar">
             <property name="visible" bind-source="side_panel" bind-property="visible" 
bind-flags="sync-create"/>
             <property name="show_close_button">False</property>
             <property name="title" translatable="yes">Documents</property>
-            <style>
-              <class name="gedit-titlebar-left"/>
-              <class name="titlebar"/>
-            </style>
           </object>
           <packing>
             <property name="resize">False</property>
@@ -31,9 +24,6 @@
           <object class="GtkHeaderBar" id="headerbar">
             <property name="visible">True</property>
             <property name="show_close_button">True</property>
-            <style>
-              <class name="titlebar"/>
-            </style>
             <child>
               <object class="GtkMenuButton" id="open_button">
                 <property name="visible">True</property>


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