diff --git a/.gitignore b/.gitignore
index 0ca678a..87bcc15 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,6 @@ notify-sharp.pc
*.user*
*.pidb
bin/
+docs/notify-sharp-docs.tree
+docs/notify-sharp-docs.zip
+src/notify-sharp.dll
diff --git a/configure.ac b/configure.ac
index 880c3c0..2cc8b3e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,8 +62,8 @@ else
AM_CONDITIONAL(BUILD_DOCS, false)
fi
-GTK_SHARP_REQ_VERSION=2.10.1
-PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTK_SHARP_REQ_VERSION)
+GTK_SHARP_REQ_VERSION=2.99.1
+PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-3.0 >= $GTK_SHARP_REQ_VERSION)
AC_SUBST(GTK_SHARP_LIBS)
DBUS_SHARP_REQ_VERSION=0.7
diff --git a/notify-sharp.csproj b/notify-sharp.csproj
index ccedb2e..54f301e 100644
--- a/notify-sharp.csproj
+++ b/notify-sharp.csproj
@@ -53,25 +53,25 @@
dbus-sharp-glib-1.0
False
-
+
False
- gtk-sharp-2.0
+ gtk-sharp-3.0
False
-
+
False
- gtk-sharp-2.0
+ gtk-sharp-3.0
False
-
+
False
- gtk-sharp-2.0
+ gtk-sharp-3.0
False
-
+
False
- glib-sharp-2.0
+ glib-sharp-3.0
False
-
\ No newline at end of file
+
diff --git a/notify-sharp.pc.in b/notify-sharp.pc.in
index 9e7b132..6c75af0 100644
--- a/notify-sharp.pc.in
+++ b/notify-sharp.pc.in
@@ -6,6 +6,6 @@ pkglibdir=${libdir}/mono/notify-sharp
Name: notify-sharp
Description: C# client library for notification-daemon
Version: @VERSION@
-Requires: gtk-sharp-2.0
+Requires: gtk-sharp-3.0
Libs: -r:${pkglibdir}/notify-sharp.dll
diff --git a/src/Notification.cs b/src/Notification.cs
index 7ffb02d..8dfb6c0 100644
--- a/src/Notification.cs
+++ b/src/Notification.cs
@@ -260,7 +260,7 @@ private void SetPixbufHint (Pixbuf pixbuf) {
public void AttachToWidget (Gtk.Widget widget) {
int x, y;
- widget.GdkWindow.GetOrigin (out x, out y);
+ widget.Window.GetOrigin (out x, out y);
if (widget.GetType() != typeof (Gtk.Window) || ! widget.GetType().IsSubclassOf(typeof (Gtk.Window))) {
x += widget.Allocation.X;