Commit f6a5b2bc1fcdd389580e247ac56dd76a741a27e9
1 parent
6022ed5b
Exists in
master
and in
1 other branch
Changing cursor to "wait" during the save-settings signal.
Showing
1 changed file
with
15 additions
and
0 deletions
Show diff stats
src/terminal/widget.c
... | ... | @@ -789,9 +789,24 @@ LIB3270_EXPORT GtkIMContext * v3270_get_im_context(GtkWidget *widget) |
789 | 789 | |
790 | 790 | static gboolean bg_emit_save_settings(v3270 *terminal) |
791 | 791 | { |
792 | + GdkWindow * window = gtk_widget_get_window(GTK_WIDGET(terminal)); | |
793 | + gdk_window_set_cursor( | |
794 | + window, | |
795 | + GTK_V3270_GET_CLASS(terminal)->cursors[LIB3270_POINTER_WAITING] | |
796 | + ); | |
797 | + | |
798 | + gdk_display_sync(gtk_widget_get_display(GTK_WIDGET(terminal))); | |
799 | + | |
792 | 800 | terminal->freeze = 0; |
793 | 801 | g_signal_emit(terminal,v3270_widget_signal[V3270_SIGNAL_SAVE_SETTINGS], 0, FALSE); |
802 | + | |
803 | + gdk_window_set_cursor( | |
804 | + window, | |
805 | + NULL | |
806 | + ); | |
807 | + | |
794 | 808 | g_object_unref(terminal); |
809 | + | |
795 | 810 | return FALSE; |
796 | 811 | } |
797 | 812 | ... | ... |