--- libxfce4panel/xfce-panel-window.c
+++ libxfce4panel/xfce-panel-window.c
@@ -304,14 +304,10 @@ xfce_panel_window_init (XfcePanelWindow *panel_window)
 
     GTK_WIDGET_SET_FLAGS (GTK_WIDGET (panel_window), GTK_CAN_FOCUS);
 
-    g_object_set (G_OBJECT (panel_window),
-                  "type", GTK_WINDOW_TOPLEVEL,
-                  "decorated", FALSE,
-                  "resizable", FALSE,
-                  "type-hint", GDK_WINDOW_TYPE_HINT_DOCK,
-                  "title", PACKAGE_NAME " " PACKAGE_VERSION,
-                  NULL);
-
+    gtk_window_set_type_hint (GTK_WINDOW (panel_window), GDK_WINDOW_TYPE_HINT_DOCK);
+    gtk_window_set_decorated (GTK_WINDOW (panel_window), FALSE);
+    gtk_window_set_resizable (GTK_WINDOW (panel_window), FALSE);
+    gtk_window_set_title (GTK_WINDOW (panel_window), PACKAGE_NAME);
     gtk_window_stick (GTK_WINDOW (panel_window));
 
     priv = XFCE_PANEL_WINDOW_GET_PRIVATE (panel_window);
