Mercurial > emacs
comparison src/gtkutil.c @ 60553:5ace6337c8fa
* gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
GTK main loop is entered in xterm.c, thus doing the redraw.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Thu, 10 Mar 2005 18:07:37 +0000 |
parents | 795bc2bc5205 |
children | a8fa7c632ee4 e330fedc9152 |
comparison
equal
deleted
inserted
replaced
60552:86d5f68886d5 | 60553:5ace6337c8fa |
---|---|
2997 { | 2997 { |
2998 GtkWidget *wfixed = f->output_data.x->edit_widget; | 2998 GtkWidget *wfixed = f->output_data.x->edit_widget; |
2999 GtkWidget *wparent = gtk_widget_get_parent (wscroll); | 2999 GtkWidget *wparent = gtk_widget_get_parent (wscroll); |
3000 | 3000 |
3001 /* Move and resize to new values. */ | 3001 /* Move and resize to new values. */ |
3002 gtk_fixed_move (GTK_FIXED (wfixed), wparent, left, top); | |
3002 gtk_widget_set_size_request (wscroll, width, height); | 3003 gtk_widget_set_size_request (wscroll, width, height); |
3003 gtk_fixed_move (GTK_FIXED (wfixed), wparent, left, top); | 3004 gtk_widget_queue_draw (wparent); |
3004 | 3005 gdk_window_process_all_updates (); |
3006 /* GTK does not redraw until the main loop is entered again, but | |
3007 if there are no X events pending we will not enter it. So we sync | |
3008 here to get some events. */ | |
3009 x_sync (f); | |
3005 SET_FRAME_GARBAGED (f); | 3010 SET_FRAME_GARBAGED (f); |
3006 cancel_mouse_face (f); | 3011 cancel_mouse_face (f); |
3007 } | 3012 } |
3008 } | 3013 } |
3009 | 3014 |