[gnome-text-editor] tab: remove old EditorTab code



commit 6120d5708504fb59cda54caa21a5cb49382868d1
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jun 22 14:21:39 2021 -0700

    tab: remove old EditorTab code
    
    We don't need this now that we have the new tab bar.
    
    Also, fix the icon highlight issue from the previous commit by removing our
    CSS hack to hide images on the non-active tab.

 src/TextEditor.css                     |   3 -
 src/editor-tab-actions.c               | 197 --------------------
 src/editor-tab-private.h               |  51 ------
 src/editor-tab.c                       | 325 ---------------------------------
 src/editor-tab.h                       |  33 ----
 src/editor-tab.ui                      |  58 ------
 src/editor-window.c                    |   1 -
 src/meson.build                        |   2 -
 src/org.gnome.TextEditor.gresource.xml |   1 -
 9 files changed, 671 deletions(-)
---
diff --git a/src/TextEditor.css b/src/TextEditor.css
index 1b9430b..3b7cae5 100644
--- a/src/TextEditor.css
+++ b/src/TextEditor.css
@@ -28,9 +28,6 @@
   font-feature-settings: "tnum";
 }
 
-.org-gnome-TextEditor tab:not(:checked):not(:hover) image {
-  opacity: 0;
-}
 
 .org-gnome-TextEditor .empty-state image.dim-label { color: alpha(@theme_fg_color, 0.5); }
 .org-gnome-TextEditor .empty-state image:backdrop.dim-label { color: alpha(@theme_unfocused_fg_color, 0.5); }
diff --git a/src/editor-window.c b/src/editor-window.c
index 3d95856..675f3b5 100644
--- a/src/editor-window.c
+++ b/src/editor-window.c
@@ -29,7 +29,6 @@
 #include "editor-open-popover-private.h"
 #include "editor-save-changes-dialog-private.h"
 #include "editor-session-private.h"
-#include "editor-tab-private.h"
 #include "editor-theme-selector-private.h"
 #include "editor-utils-private.h"
 #include "editor-window-private.h"
diff --git a/src/meson.build b/src/meson.build
index 0b072ca..732f3e0 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -30,8 +30,6 @@ editor_sources = [
   'editor-sidebar-model.c',
   'editor-sidebar-row.c',
   'editor-signal-group.c',
-  'editor-tab.c',
-  'editor-tab-actions.c',
   'editor-theme-selector.c',
   'editor-utils.c',
   'editor-window.c',
diff --git a/src/org.gnome.TextEditor.gresource.xml b/src/org.gnome.TextEditor.gresource.xml
index 5970432..263cc9a 100644
--- a/src/org.gnome.TextEditor.gresource.xml
+++ b/src/org.gnome.TextEditor.gresource.xml
@@ -11,7 +11,6 @@
     <file preprocess="xml-stripblanks">editor-search-bar.ui</file>
     <file preprocess="xml-stripblanks">editor-sidebar-row.ui</file>
     <file preprocess="xml-stripblanks">editor-sidebar.ui</file>
-    <file preprocess="xml-stripblanks">editor-tab.ui</file>
     <file preprocess="xml-stripblanks">editor-theme-selector.ui</file>
     <file preprocess="xml-stripblanks">editor-window.ui</file>
   </gresource>


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