[regexxer] Adapt to (pre-3.0) gtkmm API changes.



commit 618ff2fb87d2ab41e6d9197f2a4b4055fe7ec9d8
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Jun 22 15:14:49 2011 +0200

    Adapt to (pre-3.0) gtkmm API changes.
    
    And therefore also require a newer gtkmm-3.0.

 configure.ac      |    2 +-
 src/mainwindow.cc |    2 +-
 src/statusline.cc |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 590b30b..e7ae9ab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,7 +36,7 @@ AM_GNU_GETTEXT_VERSION([0.11])
 AM_GLIB_GNU_GETTEXT
 
 PKG_CHECK_MODULES([REGEXXER_MODULES],
-                  [gtkmm-3.0 >= 2.99.5 glibmm-2.4 >= 2.27.94
+                  [gtkmm-3.0 >= 3.0.0 glibmm-2.4 >= 2.27.94
                   gtksourceviewmm-3.0 >= 2.91.5])
 
 DK_PKG_PATH_PROG([GDK_PIXBUF_CSOURCE], [gdk-pixbuf-2.0], [gdk-pixbuf-csource])
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index 3fa101e..5f15eef 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -1062,7 +1062,7 @@ void MainWindow::on_conf_value_changed(const Glib::ustring& key)
     style += Settings::instance()->get_string(key);
     style += "}";
     Glib::RefPtr<Gtk::CssProvider> css = Gtk::CssProvider::create();
-    css->load_from_data(style, style.size());
+    css->load_from_data(style);
 
     textview_     ->get_style_context()->add_provider(css, 1);
     entry_preview_->get_style_context()->add_provider(css, 1);
diff --git a/src/statusline.cc b/src/statusline.cc
index 3d79d7e..6453b17 100644
--- a/src/statusline.cc
+++ b/src/statusline.cc
@@ -240,7 +240,7 @@ StatusLine::StatusLine()
                       "  -GtkWidget-focus-padding: 0;\n"
                       "}";
   Glib::RefPtr<Gtk::CssProvider> css = Gtk::CssProvider::create();
-  css->load_from_data(style, style.size());
+  css->load_from_data(style);
 
   stop_button_ = new Button(_("Stop"));
   pack_start(*manage(stop_button_), PACK_SHRINK);



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