diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-06-05 15:07:09 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-06-05 15:07:09 +0200 |
commit | b463e8d999ec812d656876f313efbeaeed663b45 (patch) | |
tree | bb1a8339a15d93724916a8600087aacc97939278 /src/gui_beval.c | |
parent | 6aa8cea46d4179b2617daae034063dd0d8054e35 (diff) | |
download | vim-git-b463e8d999ec812d656876f313efbeaeed663b45.tar.gz |
patch 8.0.0620: checking for HAVE_GTK_MULTIHEAD is not neededv8.0.0620
Problem: Since we only support GTK versions that have it, the ckeck for
HAVE_GTK_MULTIHEAD is no longer needed.
Solution: Remove HAVE_GTK_MULTIHEAD. (Kazunobu Kuriyama)
Diffstat (limited to 'src/gui_beval.c')
-rw-r--r-- | src/gui_beval.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gui_beval.c b/src/gui_beval.c index 818a50b2d..abff1b091 100644 --- a/src/gui_beval.c +++ b/src/gui_beval.c @@ -1177,8 +1177,7 @@ drawBalloon(BalloonEval *beval) int x_offset = EVAL_OFFSET_X; int y_offset = EVAL_OFFSET_Y; PangoLayout *layout; -# ifdef HAVE_GTK_MULTIHEAD -# if GTK_CHECK_VERSION(3,22,2) +# if GTK_CHECK_VERSION(3,22,2) GdkRectangle rect; GdkMonitor * const mon = gdk_display_get_monitor_at_window( gtk_widget_get_display(beval->balloonShell), @@ -1187,17 +1186,13 @@ drawBalloon(BalloonEval *beval) screen_w = rect.width; screen_h = rect.height; -# else +# else GdkScreen *screen; screen = gtk_widget_get_screen(beval->target); gtk_window_set_screen(GTK_WINDOW(beval->balloonShell), screen); screen_w = gdk_screen_get_width(screen); screen_h = gdk_screen_get_height(screen); -# endif -# else - screen_w = gdk_screen_width(); - screen_h = gdk_screen_height(); # endif # if !GTK_CHECK_VERSION(3,0,0) gtk_widget_ensure_style(beval->balloonShell); |