summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>2011-03-26 23:29:37 +0100
committerColin Guthrie <colin@mageia.org>2011-04-29 17:10:58 +0100
commit964de9fc7f6261a5f81ff3819d2be9fefd210106 (patch)
treeca219a67ac02f46fb2bba41e6d33ce85374f9a84 /src
parent26d42651c5c74b8a714682d678c2a40e6531a0c8 (diff)
Add support for gtkmm-3.0 and prefer it over gtkmm-2.* by default.HEADmaster
Pass --disable-gtk3 to configure to build against gtk2
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index ddd0579..6d629ad 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -152,7 +152,11 @@ MainWindow* MainWindow::create() {
void MainWindow::on_realize() {
Gtk::Window::on_realize();
+#ifdef HAVE_GTK3
+ get_window()->set_cursor(Gdk::Cursor::create(Gdk::WATCH));
+#else
get_window()->set_cursor(Gdk::Cursor(Gdk::WATCH));
+#endif /* HAVE_GTK3 */
}
MainWindow::~MainWindow() {