Пример #1
0
        protected override void OnIconPress(EntryIconPosition icon_pos, Gdk.Event evnt)
        {
            var evnt_button = evnt as Gdk.EventButton;

            if (evnt_button == null)
            {
                return;
            }

            if (evnt_button.Button != 1)
            {
                return;
            }

            HasFocus = true;

            if (icon_pos == EntryIconPosition.Primary)
            {
                ShowMenu(evnt_button.Time);
            }
            else if (icon_pos == EntryIconPosition.Secondary)
            {
                active_filter_id = 0;
                Text             = String.Empty;
            }
        }
Пример #2
0
 public void SetIconActivatable(EntryIconPosition iconPos, bool activatable)
 {
     if (IconsSupported)
     {
         gtk_entry_set_icon_activatable(this.Handle, iconPos, activatable);
     }
 }
Пример #3
0
 public void SetIconFromPixbuf(Gdk.Pixbuf pb, EntryIconPosition iconPos)
 {
     if (IconsSupported)
     {
         gtk_entry_set_icon_from_pixbuf(this.Handle, iconPos, pb.Handle);
     }
 }
Пример #4
0
 public void SetIconFromStock(string stockIcon, EntryIconPosition iconPos)
 {
     if (IconsSupported)
     {
         gtk_entry_set_icon_from_stock(this.Handle, iconPos, stockIcon);
     }
 }
Пример #5
0
 private static extern void gtk_entry_set_icon_from_stock(IntPtr gtk_entry, EntryIconPosition icon_pos, string icon_name);
Пример #6
0
 private static extern void gtk_entry_set_icon_from_pixbuf(IntPtr gtk_entry, EntryIconPosition icon_pos, IntPtr pixbuf);
Пример #7
0
 private static extern void gtk_entry_set_icon_activatable(IntPtr gtk_entry, EntryIconPosition icon_pos, bool activatable);
Пример #8
0
 public void SetIconFromStock(string stockIcon, EntryIconPosition iconPos)
 {
     if (IconsSupported)
         gtk_entry_set_icon_from_stock(this.Handle, iconPos, stockIcon);
 }
Пример #9
0
 public void SetIconFromPixbuf(Gdk.Pixbuf pb, EntryIconPosition iconPos)
 {
     if (IconsSupported)
         gtk_entry_set_icon_from_pixbuf(this.Handle, iconPos, pb.Handle);
 }
Пример #10
0
 public void SetIconActivatable(EntryIconPosition iconPos, bool activatable)
 {
     if (IconsSupported)
         gtk_entry_set_icon_activatable(this.Handle, iconPos, activatable);
 }
Пример #11
0
        protected override void OnIconPress(EntryIconPosition icon_pos, Gdk.Event evnt)
        {
            var evnt_button = evnt as Gdk.EventButton;
            if (evnt_button == null) {
                return;
            }

            if (evnt_button.Button != 1) {
                return;
            }

            HasFocus = true;

            if (icon_pos == EntryIconPosition.Primary) {
                ShowMenu (evnt_button.Time);
            } else if (icon_pos == EntryIconPosition.Secondary) {
                active_filter_id = 0;
                Text = String.Empty;
            }
        }
Пример #12
0
 private static extern void gtk_entry_set_icon_activatable(IntPtr gtk_entry, EntryIconPosition icon_pos, bool activatable);
Пример #13
0
 private static extern void gtk_entry_set_icon_from_pixbuf(IntPtr gtk_entry, EntryIconPosition icon_pos, IntPtr pixbuf);
Пример #14
0
 private static extern void gtk_entry_set_icon_from_stock(IntPtr gtk_entry, EntryIconPosition icon_pos, string icon_name);