diff options
| author | Dmitry Antipov | 2013-08-02 07:55:24 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-08-02 07:55:24 +0400 |
| commit | 65b02bb9dc87ec52b3b3bc2fefa92827fb323003 (patch) | |
| tree | 089ac49aa4dbe63e925552a82156124f52c1577c /src/xmenu.c | |
| parent | 99a0084e0549f0049b3597039bc86348587309b6 (diff) | |
| download | emacs-65b02bb9dc87ec52b3b3bc2fefa92827fb323003.tar.gz emacs-65b02bb9dc87ec52b3b3bc2fefa92827fb323003.zip | |
* xterm.h (struct x_output) [HAVE_X_I18N]: Remove xic_base_fontname
member which is not really used any more.
(FRAME_XIC_BASE_FONTNAME): Remove.
* xfns.c (xic_free_fontset): Adjust user.
* xmenu.c (mouse_position_for_popup, x_activate_menubar)
(update_frame_menubar, set_frame_menubar, free_frame_menubar)
(create_and_show_popup_menu, xmenu_show, create_and_show_dialog)
(xdialog_show): Use eassert for debugging check.
Diffstat (limited to 'src/xmenu.c')
| -rw-r--r-- | src/xmenu.c | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 1292e264ffb..66365a73fd0 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -159,8 +159,7 @@ mouse_position_for_popup (FRAME_PTR f, int *x, int *y) | |||
| 159 | Window root, dummy_window; | 159 | Window root, dummy_window; |
| 160 | int dummy; | 160 | int dummy; |
| 161 | 161 | ||
| 162 | if (! FRAME_X_P (f)) | 162 | eassert (FRAME_X_P (f)); |
| 163 | emacs_abort (); | ||
| 164 | 163 | ||
| 165 | block_input (); | 164 | block_input (); |
| 166 | 165 | ||
| @@ -623,8 +622,7 @@ popup_widget_loop (int do_timers, GtkWidget *widget) | |||
| 623 | void | 622 | void |
| 624 | x_activate_menubar (FRAME_PTR f) | 623 | x_activate_menubar (FRAME_PTR f) |
| 625 | { | 624 | { |
| 626 | if (! FRAME_X_P (f)) | 625 | eassert (FRAME_X_P (f)); |
| 627 | emacs_abort (); | ||
| 628 | 626 | ||
| 629 | if (!f->output_data.x->saved_menu_event->type) | 627 | if (!f->output_data.x->saved_menu_event->type) |
| 630 | return; | 628 | return; |
| @@ -839,8 +837,7 @@ update_frame_menubar (FRAME_PTR f) | |||
| 839 | struct x_output *x; | 837 | struct x_output *x; |
| 840 | int columns, rows; | 838 | int columns, rows; |
| 841 | 839 | ||
| 842 | if (! FRAME_X_P (f)) | 840 | eassert (FRAME_X_P (f)); |
| 843 | emacs_abort (); | ||
| 844 | 841 | ||
| 845 | x = f->output_data.x; | 842 | x = f->output_data.x; |
| 846 | 843 | ||
| @@ -927,8 +924,7 @@ set_frame_menubar (FRAME_PTR f, bool first_time, bool deep_p) | |||
| 927 | bool *submenu_top_level_items; | 924 | bool *submenu_top_level_items; |
| 928 | int *submenu_n_panes; | 925 | int *submenu_n_panes; |
| 929 | 926 | ||
| 930 | if (! FRAME_X_P (f)) | 927 | eassert (FRAME_X_P (f)); |
| 931 | emacs_abort (); | ||
| 932 | 928 | ||
| 933 | menubar_widget = f->output_data.x->menubar_widget; | 929 | menubar_widget = f->output_data.x->menubar_widget; |
| 934 | 930 | ||
| @@ -1286,8 +1282,7 @@ free_frame_menubar (FRAME_PTR f) | |||
| 1286 | { | 1282 | { |
| 1287 | Widget menubar_widget; | 1283 | Widget menubar_widget; |
| 1288 | 1284 | ||
| 1289 | if (! FRAME_X_P (f)) | 1285 | eassert (FRAME_X_P (f)); |
| 1290 | emacs_abort (); | ||
| 1291 | 1286 | ||
| 1292 | menubar_widget = f->output_data.x->menubar_widget; | 1287 | menubar_widget = f->output_data.x->menubar_widget; |
| 1293 | 1288 | ||
| @@ -1434,8 +1429,7 @@ create_and_show_popup_menu (FRAME_PTR f, widget_value *first_wv, int x, int y, | |||
| 1434 | use_pos_func = 1; | 1429 | use_pos_func = 1; |
| 1435 | #endif | 1430 | #endif |
| 1436 | 1431 | ||
| 1437 | if (! FRAME_X_P (f)) | 1432 | eassert (FRAME_X_P (f)); |
| 1438 | emacs_abort (); | ||
| 1439 | 1433 | ||
| 1440 | xg_crazy_callback_abort = 1; | 1434 | xg_crazy_callback_abort = 1; |
| 1441 | menu = xg_create_widget ("popup", first_wv->name, f, first_wv, | 1435 | menu = xg_create_widget ("popup", first_wv->name, f, first_wv, |
| @@ -1539,8 +1533,7 @@ create_and_show_popup_menu (FRAME_PTR f, widget_value *first_wv, | |||
| 1539 | LWLIB_ID menu_id; | 1533 | LWLIB_ID menu_id; |
| 1540 | Widget menu; | 1534 | Widget menu; |
| 1541 | 1535 | ||
| 1542 | if (! FRAME_X_P (f)) | 1536 | eassert (FRAME_X_P (f)); |
| 1543 | emacs_abort (); | ||
| 1544 | 1537 | ||
| 1545 | #ifdef USE_LUCID | 1538 | #ifdef USE_LUCID |
| 1546 | apply_systemfont_to_menu (f, f->output_data.x->widget); | 1539 | apply_systemfont_to_menu (f, f->output_data.x->widget); |
| @@ -1623,8 +1616,7 @@ xmenu_show (FRAME_PTR f, int x, int y, bool for_click, bool keymaps, | |||
| 1623 | 1616 | ||
| 1624 | ptrdiff_t specpdl_count = SPECPDL_INDEX (); | 1617 | ptrdiff_t specpdl_count = SPECPDL_INDEX (); |
| 1625 | 1618 | ||
| 1626 | if (! FRAME_X_P (f)) | 1619 | eassert (FRAME_X_P (f)); |
| 1627 | emacs_abort (); | ||
| 1628 | 1620 | ||
| 1629 | *error_name = NULL; | 1621 | *error_name = NULL; |
| 1630 | 1622 | ||
| @@ -1906,8 +1898,7 @@ create_and_show_dialog (FRAME_PTR f, widget_value *first_wv) | |||
| 1906 | { | 1898 | { |
| 1907 | GtkWidget *menu; | 1899 | GtkWidget *menu; |
| 1908 | 1900 | ||
| 1909 | if (! FRAME_X_P (f)) | 1901 | eassert (FRAME_X_P (f)); |
| 1910 | emacs_abort (); | ||
| 1911 | 1902 | ||
| 1912 | menu = xg_create_widget ("dialog", first_wv->name, f, first_wv, | 1903 | menu = xg_create_widget ("dialog", first_wv->name, f, first_wv, |
| 1913 | G_CALLBACK (dialog_selection_callback), | 1904 | G_CALLBACK (dialog_selection_callback), |
| @@ -1953,8 +1944,7 @@ create_and_show_dialog (FRAME_PTR f, widget_value *first_wv) | |||
| 1953 | { | 1944 | { |
| 1954 | LWLIB_ID dialog_id; | 1945 | LWLIB_ID dialog_id; |
| 1955 | 1946 | ||
| 1956 | if (!FRAME_X_P (f)) | 1947 | eassert (FRAME_X_P (f)); |
| 1957 | emacs_abort (); | ||
| 1958 | 1948 | ||
| 1959 | dialog_id = widget_id_tick++; | 1949 | dialog_id = widget_id_tick++; |
| 1960 | #ifdef USE_LUCID | 1950 | #ifdef USE_LUCID |
| @@ -2012,8 +2002,7 @@ xdialog_show (FRAME_PTR f, | |||
| 2012 | 2002 | ||
| 2013 | ptrdiff_t specpdl_count = SPECPDL_INDEX (); | 2003 | ptrdiff_t specpdl_count = SPECPDL_INDEX (); |
| 2014 | 2004 | ||
| 2015 | if (! FRAME_X_P (f)) | 2005 | eassert (FRAME_X_P (f)); |
| 2016 | emacs_abort (); | ||
| 2017 | 2006 | ||
| 2018 | *error_name = NULL; | 2007 | *error_name = NULL; |
| 2019 | 2008 | ||
| @@ -2269,8 +2258,7 @@ xmenu_show (FRAME_PTR f, int x, int y, bool for_click, bool keymaps, | |||
| 2269 | unsigned int dummy_uint; | 2258 | unsigned int dummy_uint; |
| 2270 | ptrdiff_t specpdl_count = SPECPDL_INDEX (); | 2259 | ptrdiff_t specpdl_count = SPECPDL_INDEX (); |
| 2271 | 2260 | ||
| 2272 | if (! FRAME_X_P (f) && ! FRAME_MSDOS_P (f)) | 2261 | eassert (FRAME_X_P (f) || FRAME_MSDOS_P (f)); |
| 2273 | emacs_abort (); | ||
| 2274 | 2262 | ||
| 2275 | *error_name = 0; | 2263 | *error_name = 0; |
| 2276 | if (menu_items_n_panes == 0) | 2264 | if (menu_items_n_panes == 0) |