diff options
| author | Jan Djärv | 2005-03-10 18:07:37 +0000 |
|---|---|---|
| committer | Jan Djärv | 2005-03-10 18:07:37 +0000 |
| commit | 817d354baa9fcff63f7fcb82cb35b3233b468b64 (patch) | |
| tree | 45cf3fede3449c32eddad2ed57311cc0056a834b /src | |
| parent | 4a5d28f132408d98130e2665efe10494eff9ea5e (diff) | |
| download | emacs-817d354baa9fcff63f7fcb82cb35b3233b468b64.tar.gz emacs-817d354baa9fcff63f7fcb82cb35b3233b468b64.zip | |
* gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
GTK main loop is entered in xterm.c, thus doing the redraw.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/gtkutil.c | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f2bef4273ee..e116cdf1d06 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-03-10 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the | ||
| 4 | GTK main loop is entered in xterm.c, thus doing the redraw. | ||
| 5 | |||
| 1 | 2005-03-10 Kim F. Storm <storm@cua.dk> | 6 | 2005-03-10 Kim F. Storm <storm@cua.dk> |
| 2 | 7 | ||
| 3 | * xdisp.c (pos_visible_p): Fix X value in last line of buffer. | 8 | * xdisp.c (pos_visible_p): Fix X value in last line of buffer. |
diff --git a/src/gtkutil.c b/src/gtkutil.c index 6dcba3036c0..8bd83e40043 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -2999,9 +2999,14 @@ xg_update_scrollbar_pos (f, scrollbar_id, top, left, width, height) | |||
| 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_widget_set_size_request (wscroll, width, height); | ||
| 3003 | gtk_fixed_move (GTK_FIXED (wfixed), wparent, left, top); | 3002 | gtk_fixed_move (GTK_FIXED (wfixed), wparent, left, top); |
| 3004 | 3003 | gtk_widget_set_size_request (wscroll, width, height); | |
| 3004 | gtk_widget_queue_draw (wparent); | ||
| 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 | } |