emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/gtkutil.c


From: Jan Djärv
Subject: [Emacs-diffs] Changes to emacs/src/gtkutil.c
Date: Fri, 24 Jan 2003 12:10:08 -0500

Index: emacs/src/gtkutil.c
diff -c emacs/src/gtkutil.c:1.3 emacs/src/gtkutil.c:1.4
*** emacs/src/gtkutil.c:1.3     Tue Jan 21 13:14:05 2003
--- emacs/src/gtkutil.c Fri Jan 24 12:10:07 2003
***************
*** 2214,2220 ****
    GtkWidget **widgets;
    int max_size;
    int used;
! } id_to_widget = { 0, 0, 0 };
  
  /* Grow this much every time we need to allocate more  */
  #define ID_TO_WIDGET_INCR  32
--- 2214,2220 ----
    GtkWidget **widgets;
    int max_size;
    int used;
! } id_to_widget;
  
  /* Grow this much every time we need to allocate more  */
  #define ID_TO_WIDGET_INCR  32
***************
*** 2883,2894 ****
--- 2883,2904 ----
    xg_menu_cb_list.prev = xg_menu_cb_list.next =
      xg_menu_item_cb_list.prev = xg_menu_item_cb_list.next = 0;
  
+   id_to_widget.max_size = id_to_widget.used = 0;
+   id_to_widget.widgets = 0;
+ 
    /* Remove F10 as a menu accelerator, it does not mix well with Emacs key
       bindings.  It doesn't seem to be any way to remove properties,
       so we set it to VoidSymbol which in X means "no key".  */
    gtk_settings_set_string_property (gtk_settings_get_default (),
                                      "gtk-menu-bar-accel",
                                      "VoidSymbol",
+                                     EMACS_CLASS);
+ 
+   /* Make GTK text input widgets use Emacs style keybindings.  This is
+      Emacs after all.  */
+   gtk_settings_set_string_property (gtk_settings_get_default (),
+                                     "gtk-key-theme-name",
+                                     "Emacs",
                                      EMACS_CLASS);
  }
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]