diff --git a/src/gtk/webview_webkit2.cpp b/src/gtk/webview_webkit2.cpp index 477ae14163..385e03db4a 100644 --- a/src/gtk/webview_webkit2.cpp +++ b/src/gtk/webview_webkit2.cpp @@ -409,7 +409,7 @@ wxgtk_new_connection_cb(GDBusServer *, GDBusProxy **proxy) { GError *error = NULL; - GDBusProxyFlags flags = static_cast(static_cast(G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES) | static_cast(G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS)); + GDBusProxyFlags flags = GDBusProxyFlags(G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES | G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS); *proxy = g_dbus_proxy_new_sync(connection, flags, NULL,