Commit 618ff2fb authored by Murray Cumming's avatar Murray Cumming
Browse files

Adapt to (pre-3.0) gtkmm API changes.

And therefore also require a newer gtkmm-3.0.
parent 742efaa9
......@@ -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])
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment