[geary/wip/765516-gtk-widget-conversation-viewer: 200/207] Remove obsolete ConversationFindBar class and related code.



commit fa840101332799d801acf797042f7f6016c2f1ad
Author: Michael James Gratton <mike vee net>
Date:   Sun Sep 25 23:30:23 2016 +1000

    Remove obsolete ConversationFindBar class and related code.

 po/POTFILES.in                                   |    1 -
 src/CMakeLists.txt                               |    1 -
 src/client/components/conversation-find-bar.vala |  300 ----------------------
 src/client/util/util-gtk.vala                    |   12 -
 4 files changed, 0 insertions(+), 314 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index cfa662e..ccae634 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -22,7 +22,6 @@ src/client/application/geary-config.vala
 src/client/application/geary-controller.vala
 src/client/application/main.vala
 src/client/application/secret-mediator.vala
-src/client/components/conversation-find-bar.vala
 src/client/components/count-badge.vala
 src/client/components/empty-placeholder.vala
 src/client/components/folder-popover.vala
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9b00c0f..cf0a45c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -331,7 +331,6 @@ client/accounts/account-spinner-page.vala
 client/accounts/add-edit-page.vala
 client/accounts/login-dialog.vala
 
-client/components/conversation-find-bar.vala
 client/components/count-badge.vala
 client/components/empty-placeholder.vala
 client/components/folder-popover.vala
diff --git a/src/client/util/util-gtk.vala b/src/client/util/util-gtk.vala
index a409180..f6e17b0 100644
--- a/src/client/util/util-gtk.vala
+++ b/src/client/util/util-gtk.vala
@@ -108,18 +108,6 @@ void set_source_color_from_string(Cairo.Context ctx, string spec) {
     ctx.set_source_rgb(rgba.red, rgba.green, rgba.blue);
 }
 
-void apply_style(Gtk.Widget widget, string style) {
-    try {
-        Gtk.CssProvider style_provider = new Gtk.CssProvider();
-        style_provider.load_from_data(style, -1);
-        
-        Gtk.StyleContext style_context = widget.get_style_context();
-        style_context.add_provider(style_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
-    } catch (Error e) {
-        warning("Could not load style: %s", e.message);
-    }
-}
-
 /**
  * Returns a Pango markup-compatible string for a GTK+ CSS theme color name.
  */


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