Mercurial > vim
comparison src/gui_gtk.c @ 1215:1d08aac0aea9
updated for version 7.1b
author | vimboss |
---|---|
date | Thu, 10 May 2007 18:29:51 +0000 |
parents | b6627f01c67d |
children | 152e52624521 |
comparison
equal
deleted
inserted
replaced
1214:a91a2e0c4108 | 1215:1d08aac0aea9 |
---|---|
50 # ifdef textdomain | 50 # ifdef textdomain |
51 # undef textdomain | 51 # undef textdomain |
52 # endif | 52 # endif |
53 # ifdef bindtextdomain | 53 # ifdef bindtextdomain |
54 # undef bindtextdomain | 54 # undef bindtextdomain |
55 # endif | |
56 # ifdef bindtextdomain_codeset | |
57 # undef bindtextdomain_codeset | |
55 # endif | 58 # endif |
56 # if defined(FEAT_GETTEXT) && !defined(ENABLE_NLS) | 59 # if defined(FEAT_GETTEXT) && !defined(ENABLE_NLS) |
57 # define ENABLE_NLS /* so the texts in the dialog boxes are translated */ | 60 # define ENABLE_NLS /* so the texts in the dialog boxes are translated */ |
58 # endif | 61 # endif |
59 # include <gnome.h> | 62 # include <gnome.h> |
447 /* | 450 /* |
448 * Create a highly customized menu item by hand instead of by using: | 451 * Create a highly customized menu item by hand instead of by using: |
449 * | 452 * |
450 * gtk_menu_item_new_with_label(menu->dname); | 453 * gtk_menu_item_new_with_label(menu->dname); |
451 * | 454 * |
452 * This is neccessary, since there is no other way in GTK+ 1 to get the | 455 * This is necessary, since there is no other way in GTK+ 1 to get the |
453 * not automatically parsed accellerator stuff right. | 456 * not automatically parsed accelerator stuff right. |
454 */ | 457 */ |
455 static void | 458 static void |
456 menu_item_new(vimmenu_T *menu, GtkWidget *parent_widget) | 459 menu_item_new(vimmenu_T *menu, GtkWidget *parent_widget) |
457 { | 460 { |
458 GtkWidget *widget; | 461 GtkWidget *widget; |
826 } | 829 } |
827 | 830 |
828 | 831 |
829 #if defined(FEAT_MENU) || defined(PROTO) | 832 #if defined(FEAT_MENU) || defined(PROTO) |
830 /* | 833 /* |
831 * Enable or disable accelators for the toplevel menus. | 834 * Enable or disable accelerators for the toplevel menus. |
832 */ | 835 */ |
833 void | 836 void |
834 gui_gtk_set_mnemonics(int enable) | 837 gui_gtk_set_mnemonics(int enable) |
835 { | 838 { |
836 vimmenu_T *menu; | 839 vimmenu_T *menu; |
2491 || event->keyval == GDK_Right | 2494 || event->keyval == GDK_Right |
2492 || event->keyval == GDK_space) | 2495 || event->keyval == GDK_space) |
2493 return TRUE; | 2496 return TRUE; |
2494 #endif | 2497 #endif |
2495 | 2498 |
2496 /* It would be delightfull if it where possible to do search history | 2499 /* It would be delightful if it where possible to do search history |
2497 * operations on the K_UP and K_DOWN keys here. | 2500 * operations on the K_UP and K_DOWN keys here. |
2498 */ | 2501 */ |
2499 | 2502 |
2500 return FALSE; | 2503 return FALSE; |
2501 } | 2504 } |