[gnote] Drop use of Gtk::Style



commit 8c61064ddba0d4519de99a2acb985e435a231320
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date:   Fri May 20 23:18:37 2011 +0300

    Drop use of Gtk::Style
    
    It is not available in Gtkmm 3.0.

 src/notetag.cpp |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/notetag.cpp b/src/notetag.cpp
index 4251339..4158eea 100644
--- a/src/notetag.cpp
+++ b/src/notetag.cpp
@@ -303,9 +303,7 @@ namespace gnote {
       return property_background_gdk().get_value();
 
     
-    Glib::RefPtr<Gtk::Style> s = Glib::wrap(gtk_rc_get_style_by_paths(gtk_settings_get_default(),
-                                                                "GtkTextView", "GtkTextView",
-                                                                      GTK_TYPE_TEXT_VIEW), true);
+    GtkStyle * s = gtk_rc_get_style_by_paths(gtk_settings_get_default(), "GtkTextView", "GtkTextView", GTK_TYPE_TEXT_VIEW);
     if (!s) {
       DBG_OUT("get_background: Style for GtkTextView came back null! Returning white...");
       Gdk::Color color;
@@ -313,7 +311,7 @@ namespace gnote {
       return color;
     }
     else
-      return s->get_background(Gtk::STATE_NORMAL);
+      return Glib::wrap(&(s->bg[GTK_STATE_NORMAL]), true);
   }
 
   Gdk::Color NoteTag::render_foreground(ContrastPaletteColor symbol)



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