mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2026-01-08 13:07:13 +00:00
build: replace deprecated functions
This commit is contained in:
parent
a42efc728c
commit
b1d2f16790
@ -577,14 +577,14 @@ virt_viewer_app_create_session(VirtViewerApp *self, const gchar *type)
|
||||
g_return_val_if_fail(priv->session == NULL, -1);
|
||||
|
||||
#ifdef HAVE_GTK_VNC
|
||||
if (g_strcasecmp(type, "vnc") == 0) {
|
||||
if (g_ascii_strcasecmp(type, "vnc") == 0) {
|
||||
virt_viewer_app_trace(self, "Guest %s has a %s display\n",
|
||||
priv->guest_name, type);
|
||||
priv->session = virt_viewer_session_vnc_new();
|
||||
} else
|
||||
#endif
|
||||
#ifdef HAVE_SPICE_GTK
|
||||
if (g_strcasecmp(type, "spice") == 0) {
|
||||
if (g_ascii_strcasecmp(type, "spice") == 0) {
|
||||
virt_viewer_app_trace(self, "Guest %s has a %s display\n",
|
||||
priv->guest_name, type);
|
||||
priv->session = virt_viewer_session_spice_new();
|
||||
@ -635,7 +635,7 @@ virt_viewer_app_channel_open(VirtViewerSession *session,
|
||||
g_return_if_fail(self != NULL);
|
||||
|
||||
priv = self->priv;
|
||||
if (priv->transport && g_strcasecmp(priv->transport, "ssh") == 0 &&
|
||||
if (priv->transport && g_ascii_strcasecmp(priv->transport, "ssh") == 0 &&
|
||||
!priv->direct) {
|
||||
if ((fd = virt_viewer_app_open_tunnel_ssh(priv->host, priv->port, priv->user,
|
||||
priv->ghost, priv->gport, NULL)) < 0)
|
||||
@ -670,7 +670,7 @@ virt_viewer_app_activate(VirtViewerApp *self)
|
||||
|
||||
#if defined(HAVE_SOCKETPAIR) && defined(HAVE_FORK)
|
||||
if (priv->transport &&
|
||||
g_strcasecmp(priv->transport, "ssh") == 0 &&
|
||||
g_ascii_strcasecmp(priv->transport, "ssh") == 0 &&
|
||||
!priv->direct) {
|
||||
gchar *p = NULL;
|
||||
|
||||
|
||||
@ -84,7 +84,7 @@ virt_viewer_util_extract_host(const char *uristr,
|
||||
char *offset;
|
||||
|
||||
if (uristr == NULL ||
|
||||
!g_strcasecmp(uristr, "xen"))
|
||||
!g_ascii_strcasecmp(uristr, "xen"))
|
||||
uristr = "xen:///";
|
||||
|
||||
uri = xmlParseURI(uristr);
|
||||
|
||||
@ -691,7 +691,7 @@ virt_viewer_window_save_screenshot(VirtViewerWindow *self,
|
||||
|
||||
gdk_pixbuf_save(pix, file, "png", NULL,
|
||||
"tEXt::Generator App", PACKAGE, NULL);
|
||||
gdk_pixbuf_unref(pix);
|
||||
g_object_unref(pix);
|
||||
}
|
||||
|
||||
G_MODULE_EXPORT void
|
||||
|
||||
Loading…
Reference in New Issue
Block a user