diff options
| author | Philipp Stephani | 2017-08-27 13:08:37 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2017-09-23 12:39:43 +0200 |
| commit | f02e76fb8f8a862e43795056d61df5641c8a669b (patch) | |
| tree | b9749c62b06251cf51a17708de13242e48246a88 | |
| parent | 7144e5e9f54ee41abe2e8f91ccd5901c86d38c4e (diff) | |
| download | emacs-f02e76fb8f8a862e43795056d61df5641c8a669b.tar.gz emacs-f02e76fb8f8a862e43795056d61df5641c8a669b.zip | |
GTK+: stop calling 'gtk_window_set_wmclass' in new versions
* src/gtkutil.c (xg_create_frame_widgets): Stop calling deprecated
function 'gtk_window_set_wmclass' in GTK+ 3.22.
| -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 03c404f86bb..f3e89c82c66 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -1227,9 +1227,11 @@ xg_create_frame_widgets (struct frame *f) | |||
| 1227 | a lot, so we turn off double buffering. */ | 1227 | a lot, so we turn off double buffering. */ |
| 1228 | gtk_widget_set_double_buffered (wfixed, FALSE); | 1228 | gtk_widget_set_double_buffered (wfixed, FALSE); |
| 1229 | 1229 | ||
| 1230 | #if ! GTK_CHECK_VERSION (3, 22, 0) | ||
| 1230 | gtk_window_set_wmclass (GTK_WINDOW (wtop), | 1231 | gtk_window_set_wmclass (GTK_WINDOW (wtop), |
| 1231 | SSDATA (Vx_resource_name), | 1232 | SSDATA (Vx_resource_name), |
| 1232 | SSDATA (Vx_resource_class)); | 1233 | SSDATA (Vx_resource_class)); |
| 1234 | #endif | ||
| 1233 | 1235 | ||
| 1234 | /* Add callback to do nothing on WM_DELETE_WINDOW. The default in | 1236 | /* Add callback to do nothing on WM_DELETE_WINDOW. The default in |
| 1235 | GTK is to destroy the widget. We want Emacs to do that instead. */ | 1237 | GTK is to destroy the widget. We want Emacs to do that instead. */ |