[gedit] Remove the custom not-found style



commit acade79b8b301dd474fc561f87081ef680d6a948
Author: Paolo Borelli <pborelli gnome org>
Date:   Tue Jul 29 15:17:29 2014 +0200

    Remove the custom not-found style
    
    We can use the gtk error class

 gedit/gedit-view-frame.c              |    4 ++--
 gedit/resources/css/gedit.adwaita.css |   14 --------------
 libgd                                 |    2 +-
 3 files changed, 3 insertions(+), 17 deletions(-)
---
diff --git a/gedit/gedit-view-frame.c b/gedit/gedit-view-frame.c
index 8434705..fb2eeab 100644
--- a/gedit/gedit-view-frame.c
+++ b/gedit/gedit-view-frame.c
@@ -288,11 +288,11 @@ set_search_state (GeditViewFrame *frame,
 
        if (state == SEARCH_STATE_NOT_FOUND)
        {
-               gtk_style_context_add_class (context, "not-found");
+               gtk_style_context_add_class (context, GTK_STYLE_CLASS_ERROR);
        }
        else
        {
-               gtk_style_context_remove_class (context, "not-found");
+               gtk_style_context_remove_class (context, GTK_STYLE_CLASS_ERROR);
        }
 }
 
diff --git a/gedit/resources/css/gedit.adwaita.css b/gedit/resources/css/gedit.adwaita.css
index 2519efb..6d1d083 100644
--- a/gedit/resources/css/gedit.adwaita.css
+++ b/gedit/resources/css/gedit.adwaita.css
@@ -1,6 +1,3 @@
- define-color gedit_not_found_bg rgb (237, 54, 54);
- define-color gedit_not_found_fg white;
-
 GeditWindow .pane-separator,
 GeditWindow .pane-separator:hover {
     border-width: 0 1px 1px 1px;
@@ -121,17 +118,6 @@ GeditViewFrame .gedit-search-slider {
     border-style: solid;
 }
 
-GeditViewFrame .gedit-search-slider .not-found {
-    color: @gedit_not_found_fg;
-    background-image: none;
-    background-color: @gedit_not_found_bg;
-}
-
-GeditViewFrame .gedit-search-slider .not-found:selected {
-    background-color: @theme_selected_bg_color;
-    color: @theme_selected_fg_color;
-}
-
 GeditFileBrowserWidget .toolbar {
     padding: 3px;
     border-bottom: 1px solid @borders;
diff --git a/libgd b/libgd
index 0a9a80e..ac4ae16 160000
--- a/libgd
+++ b/libgd
@@ -1 +1 @@
-Subproject commit 0a9a80e4d38cd9a9e75e5438c7585d765689065f
+Subproject commit ac4ae160ee92fcf7010d0d9420e6f71532627f80


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