Mercurial > emacs
comparison src/xmenu.c @ 98224:25a5f64dd9db
(menu_position_func): Use x_display_pixel_height and
x_display_pixel_width.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Thu, 18 Sep 2008 18:13:09 +0000 |
parents | 611a022eaebb |
children | e038c1a8307c |
comparison
equal
deleted
inserted
replaced
98223:033f7f08bc55 | 98224:25a5f64dd9db |
---|---|
1694 gboolean *push_in; | 1694 gboolean *push_in; |
1695 gpointer user_data; | 1695 gpointer user_data; |
1696 { | 1696 { |
1697 struct next_popup_x_y* data = (struct next_popup_x_y*)user_data; | 1697 struct next_popup_x_y* data = (struct next_popup_x_y*)user_data; |
1698 GtkRequisition req; | 1698 GtkRequisition req; |
1699 int disp_width = FRAME_X_DISPLAY_INFO (data->f)->width; | 1699 struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (data->f); |
1700 int disp_height = FRAME_X_DISPLAY_INFO (data->f)->height; | 1700 int disp_width = x_display_pixel_width (dpyinfo); |
1701 int disp_height = x_display_pixel_height (dpyinfo); | |
1701 | 1702 |
1702 *x = data->x; | 1703 *x = data->x; |
1703 *y = data->y; | 1704 *y = data->y; |
1704 | 1705 |
1705 /* Check if there is room for the menu. If not, adjust x/y so that | 1706 /* Check if there is room for the menu. If not, adjust x/y so that |