Example #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;
            }
        }
Example #2
0
 public void SetIconActivatable(EntryIconPosition iconPos, bool activatable)
 {
     if (IconsSupported)
     {
         gtk_entry_set_icon_activatable(this.Handle, iconPos, activatable);
     }
 }
Example #3
0
 public void SetIconFromPixbuf(Gdk.Pixbuf pb, EntryIconPosition iconPos)
 {
     if (IconsSupported)
     {
         gtk_entry_set_icon_from_pixbuf(this.Handle, iconPos, pb.Handle);
     }
 }
Example #4
0
 public void SetIconFromStock(string stockIcon, EntryIconPosition iconPos)
 {
     if (IconsSupported)
     {
         gtk_entry_set_icon_from_stock(this.Handle, iconPos, stockIcon);
     }
 }
Example #5
0
 private static extern void gtk_entry_set_icon_from_stock(IntPtr gtk_entry, EntryIconPosition icon_pos, string icon_name);
Example #6
0
 private static extern void gtk_entry_set_icon_from_pixbuf(IntPtr gtk_entry, EntryIconPosition icon_pos, IntPtr pixbuf);
Example #7
0
 private static extern void gtk_entry_set_icon_activatable(IntPtr gtk_entry, EntryIconPosition icon_pos, bool activatable);
Example #8
0
 public void SetIconFromStock(string stockIcon, EntryIconPosition iconPos)
 {
     if (IconsSupported)
         gtk_entry_set_icon_from_stock(this.Handle, iconPos, stockIcon);
 }
Example #9
0
 public void SetIconFromPixbuf(Gdk.Pixbuf pb, EntryIconPosition iconPos)
 {
     if (IconsSupported)
         gtk_entry_set_icon_from_pixbuf(this.Handle, iconPos, pb.Handle);
 }
Example #10
0
 public void SetIconActivatable(EntryIconPosition iconPos, bool activatable)
 {
     if (IconsSupported)
         gtk_entry_set_icon_activatable(this.Handle, iconPos, activatable);
 }
Example #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;
            }
        }
Example #12
0
 private static extern void gtk_entry_set_icon_activatable(IntPtr gtk_entry, EntryIconPosition icon_pos, bool activatable);
Example #13
0
 private static extern void gtk_entry_set_icon_from_pixbuf(IntPtr gtk_entry, EntryIconPosition icon_pos, IntPtr pixbuf);
Example #14
0
 private static extern void gtk_entry_set_icon_from_stock(IntPtr gtk_entry, EntryIconPosition icon_pos, string icon_name);