diff options
| author | Jan Djärv | 2004-10-18 16:17:15 +0000 |
|---|---|---|
| committer | Jan Djärv | 2004-10-18 16:17:15 +0000 |
| commit | 8433889043de2a6b8c2812d3a656991c2dd4e50a (patch) | |
| tree | efd5d0a170d9af3ea210c6c0e576000609c3ddc0 | |
| parent | 6e1b0d8c4f8db76307825736094ec8f57dcd2e6e (diff) | |
| download | emacs-8433889043de2a6b8c2812d3a656991c2dd4e50a.tar.gz emacs-8433889043de2a6b8c2812d3a656991c2dd4e50a.zip | |
* gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
gdk_window_clear and move gdk_window_process_all_updates after
clear so events are sent to the X server in correct order.
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/gtkutil.c | 9 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ab4c4cd67f1..7b22f043009 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2004-10-18 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to | ||
| 4 | gdk_window_clear and move gdk_window_process_all_updates after | ||
| 5 | clear so events are sent to the X server in correct order. | ||
| 6 | |||
| 1 | 2004-10-18 Kenichi Handa <handa@m17n.org> | 7 | 2004-10-18 Kenichi Handa <handa@m17n.org> |
| 2 | 8 | ||
| 3 | * fontset.c (fs_load_font): Use fast_string_match_ignore_case for | 9 | * fontset.c (fs_load_font): Use fast_string_match_ignore_case for |
diff --git a/src/gtkutil.c b/src/gtkutil.c index fabdae74dc6..4d166a4d01e 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -2888,9 +2888,6 @@ xg_update_scrollbar_pos (f, scrollbar_id, top, left, width, height, | |||
| 2888 | gtk_fixed_move (GTK_FIXED (wfixed), wscroll, left, top); | 2888 | gtk_fixed_move (GTK_FIXED (wfixed), wscroll, left, top); |
| 2889 | gtk_widget_set_size_request (wscroll, width, height); | 2889 | gtk_widget_set_size_request (wscroll, width, height); |
| 2890 | 2890 | ||
| 2891 | /* Must force out update so changed scroll bars gets redrawn. */ | ||
| 2892 | gdk_window_process_all_updates (); | ||
| 2893 | |||
| 2894 | /* Scroll bars in GTK has a fixed width, so if we say width 16, it | 2891 | /* Scroll bars in GTK has a fixed width, so if we say width 16, it |
| 2895 | will only be its fixed width (14 is default) anyway, the rest is | 2892 | will only be its fixed width (14 is default) anyway, the rest is |
| 2896 | blank. We are drawing the mode line across scroll bars when | 2893 | blank. We are drawing the mode line across scroll bars when |
| @@ -2917,9 +2914,11 @@ xg_update_scrollbar_pos (f, scrollbar_id, top, left, width, height, | |||
| 2917 | scroll bar so that there is some space (typically 1 pixel) between | 2914 | scroll bar so that there is some space (typically 1 pixel) between |
| 2918 | the scroll bar and the edge of the window and between the scroll | 2915 | the scroll bar and the edge of the window and between the scroll |
| 2919 | bar and the fringe. */ | 2916 | bar and the fringe. */ |
| 2917 | gdk_window_clear (wscroll->window); | ||
| 2920 | 2918 | ||
| 2921 | XClearWindow (FRAME_X_DISPLAY (f), GTK_WIDGET_TO_X_WIN (wscroll)); | 2919 | /* Must force out update so changed scroll bars gets redrawn. */ |
| 2922 | 2920 | gdk_window_process_all_updates (); | |
| 2921 | |||
| 2923 | SET_FRAME_GARBAGED (f); | 2922 | SET_FRAME_GARBAGED (f); |
| 2924 | cancel_mouse_face (f); | 2923 | cancel_mouse_face (f); |
| 2925 | } | 2924 | } |