Commit f59e5246 authored by larchunix's avatar larchunix Committed by larchunix

remmina: use gdk_display_flush() instead of obsolete gdk_flush()

parent a41cb9e0
......@@ -123,7 +123,7 @@ G_DEFINE_TYPE( RemminaFTPClient, remmina_ftp_client, GTK_TYPE_GRID)
if (GDK_IS_WINDOW(gtk_widget_get_window(GTK_WIDGET(client)))) \
{ \
gdk_window_set_cursor(gtk_widget_get_window(GTK_WIDGET(client)), gdk_cursor_new_for_display(gdk_display_get_default(), GDK_WATCH)); \
gdk_flush(); \
gdk_display_flush(gdk_display_get_default()); \
}
#define NORMAL_CURSOR \
......
......@@ -863,8 +863,11 @@ static gboolean
remmina_sftp_client_refresh(RemminaSFTPClient *client)
{
TRACE_CALL(__func__);
SET_CURSOR(gdk_cursor_new_for_display(gdk_display_get_default(), GDK_WATCH));
gdk_flush();
GdkDisplay *display = gdk_display_get_default();
SET_CURSOR(gdk_cursor_new_for_display(display, GDK_WATCH));
gdk_display_flush(display);
remmina_sftp_client_on_opendir(client, ".", NULL);
......@@ -965,13 +968,16 @@ GtkWidget*
remmina_sftp_client_new_init(RemminaSFTP *sftp)
{
TRACE_CALL(__func__);
GdkDisplay *display;
GtkWidget *client;
GtkWidget *dialog;
display = gdk_display_get_default();
client = remmina_sftp_client_new();
SET_CURSOR(gdk_cursor_new_for_display(gdk_display_get_default(), GDK_WATCH));
gdk_flush();
SET_CURSOR(gdk_cursor_new_for_display(display, GDK_WATCH));
gdk_display_flush(display);
if (!remmina_ssh_init_session(REMMINA_SSH(sftp)) ||
remmina_ssh_auth(REMMINA_SSH(sftp), NULL) <= 0 ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment