Mercurial > vim
comparison src/mbyte.c @ 12409:2c020bc30f62 v8.0.1084
patch 8.0.1084: GTK build has compiler warnings
commit https://github.com/vim/vim/commit/7be9b50fd7e238722c9ba5c0ef1d2a7e7e52b9e3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 9 18:45:26 2017 +0200
patch 8.0.1084: GTK build has compiler warnings
Problem: GTK build has compiler warnings. (Christian Brabandt)
Solution: Get screen size with a different function. (Ken Takata, Yasuhiro
Matsumoto)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 09 Sep 2017 19:00:04 +0200 |
parents | d3175a3bd8cd |
children | 683fdeb89017 |
comparison
equal
deleted
inserted
replaced
12408:587fc0ce700e | 12409:2c020bc30f62 |
---|---|
4869 int x, y, w, h, sw, sh; | 4869 int x, y, w, h, sw, sh; |
4870 | 4870 |
4871 if (preedit_window == NULL) | 4871 if (preedit_window == NULL) |
4872 return; | 4872 return; |
4873 | 4873 |
4874 sw = gdk_screen_get_width(gtk_widget_get_screen(preedit_window)); | 4874 gui_gtk_get_screen_size_of_win(preedit_window, &sw, &sh); |
4875 sh = gdk_screen_get_height(gtk_widget_get_screen(preedit_window)); | |
4876 #if GTK_CHECK_VERSION(3,0,0) | 4875 #if GTK_CHECK_VERSION(3,0,0) |
4877 gdk_window_get_origin(gtk_widget_get_window(gui.drawarea), &x, &y); | 4876 gdk_window_get_origin(gtk_widget_get_window(gui.drawarea), &x, &y); |
4878 #else | 4877 #else |
4879 gdk_window_get_origin(gui.drawarea->window, &x, &y); | 4878 gdk_window_get_origin(gui.drawarea->window, &x, &y); |
4880 #endif | 4879 #endif |