diff --git a/peas-demo/plugins/pythonhello/pythonhello.py b/peas-demo/plugins/pythonhello/pythonhello.py
index bf832b39386e8a7b71c0882788902fb6c8da5cf1..06f87280ae3985333230ae0a87c5f794c973a365 100644
--- a/peas-demo/plugins/pythonhello/pythonhello.py
+++ b/peas-demo/plugins/pythonhello/pythonhello.py
@@ -19,6 +19,10 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.
 
+import gi
+
+gi.require_version('Gtk', '3.0')
+
 from gi.repository import GObject
 from gi.repository import Peas
 from gi.repository import PeasGtk
