예제 #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;
 }
예제 #2
0
파일: Utils.cs 프로젝트: thioshp/tomboy
        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);
        }
예제 #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);
 }
예제 #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);
예제 #5
0
 public AccelKey(Gdk.Key key, Gdk.ModifierType mods, Gtk.AccelFlags flags)
 {
     this.Key        = key;
     this.AccelMods  = mods;
     this.AccelFlags = (ushort)flags;
 }