Example #1
0
 public AccelKey(Gdk.Key key, Gdk.ModifierType mods, Gtk.AccelFlags flags)
 {
     this.Key        = key;
     this.AccelMods  = mods;
     this._bitfield0 = 0;
     this.AccelFlags = flags;
 }
Example #2
0
        public void AddAccelerator(EventHandler handler,
                                   uint key,
                                   Gdk.ModifierType modifiers,
                                   Gtk.AccelFlags flags)
        {
            Gtk.MenuItem foo = new Gtk.MenuItem();
            foo.Activated += handler;
            foo.AddAccelerator("activate",
                               accel_group,
                               key,
                               modifiers,
                               flags);
            foo.Show();

            fake_menu.Append(foo);
        }
Example #3
0
 public void Connect(uint accel_key, Gdk.ModifierType accel_mods, Gtk.AccelFlags accel_flags, IntPtr closure)
 {
     gtk_accel_group_connect(Handle, accel_key, (int)accel_mods, (int)accel_flags, closure);
 }
Example #4
0
 public static extern IntPtr gtk_accel_group_connect(IntPtr accel_group, Gdk.Key accel_key, Gdk.ModifierType accel_mods, Gtk.AccelFlags accel_flags, IntPtr closure);
Example #5
0
 public AccelKey(Gdk.Key key, Gdk.ModifierType mods, Gtk.AccelFlags flags)
 {
     this.Key        = key;
     this.AccelMods  = mods;
     this.AccelFlags = (ushort)flags;
 }