diff options
| author | Philipp Stephani | 2017-08-27 12:45:52 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2017-09-23 13:02:13 +0200 |
| commit | c0af83b6ccf2dab9a515dd7f52eb9d4500275ae3 (patch) | |
| tree | 1f921368bbb1fe62af4a80d7022c66689f06c34d | |
| parent | f6818e761eaafe095e07249180dc8f9a329f1473 (diff) | |
| download | emacs-c0af83b6ccf2dab9a515dd7f52eb9d4500275ae3.tar.gz emacs-c0af83b6ccf2dab9a515dd7f52eb9d4500275ae3.zip | |
Don't attempt to disable double buffering in newer GTK+ versions
* src/gtkutil.c (xg_create_frame_widgets): Stop calling deprecated
function gtk_widget_set_double_buffered.
| -rw-r--r-- | src/gtkutil.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c index b98b0d08e7a..8ecbc5c91ed 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -1233,12 +1233,14 @@ xg_create_frame_widgets (struct frame *f) | |||
| 1233 | if (FRAME_EXTERNAL_TOOL_BAR (f)) | 1233 | if (FRAME_EXTERNAL_TOOL_BAR (f)) |
| 1234 | update_frame_tool_bar (f); | 1234 | update_frame_tool_bar (f); |
| 1235 | 1235 | ||
| 1236 | #if ! GTK_CHECK_VERSION (3, 14, 0) | ||
| 1236 | /* We don't want this widget double buffered, because we draw on it | 1237 | /* We don't want this widget double buffered, because we draw on it |
| 1237 | with regular X drawing primitives, so from a GTK/GDK point of | 1238 | with regular X drawing primitives, so from a GTK/GDK point of |
| 1238 | view, the widget is totally blank. When an expose comes, this | 1239 | view, the widget is totally blank. When an expose comes, this |
| 1239 | will make the widget blank, and then Emacs redraws it. This flickers | 1240 | will make the widget blank, and then Emacs redraws it. This flickers |
| 1240 | a lot, so we turn off double buffering. */ | 1241 | a lot, so we turn off double buffering. */ |
| 1241 | gtk_widget_set_double_buffered (wfixed, FALSE); | 1242 | gtk_widget_set_double_buffered (wfixed, FALSE); |
| 1243 | #endif | ||
| 1242 | 1244 | ||
| 1243 | #if ! GTK_CHECK_VERSION (3, 22, 0) | 1245 | #if ! GTK_CHECK_VERSION (3, 22, 0) |
| 1244 | gtk_window_set_wmclass (GTK_WINDOW (wtop), | 1246 | gtk_window_set_wmclass (GTK_WINDOW (wtop), |