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; } }
public void SetIconActivatable(EntryIconPosition iconPos, bool activatable) { if (IconsSupported) { gtk_entry_set_icon_activatable(this.Handle, iconPos, activatable); } }
public void SetIconFromPixbuf(Gdk.Pixbuf pb, EntryIconPosition iconPos) { if (IconsSupported) { gtk_entry_set_icon_from_pixbuf(this.Handle, iconPos, pb.Handle); } }
public void SetIconFromStock(string stockIcon, EntryIconPosition iconPos) { if (IconsSupported) { gtk_entry_set_icon_from_stock(this.Handle, iconPos, stockIcon); } }
private static extern void gtk_entry_set_icon_from_stock(IntPtr gtk_entry, EntryIconPosition icon_pos, string icon_name);
private static extern void gtk_entry_set_icon_from_pixbuf(IntPtr gtk_entry, EntryIconPosition icon_pos, IntPtr pixbuf);
private static extern void gtk_entry_set_icon_activatable(IntPtr gtk_entry, EntryIconPosition icon_pos, bool activatable);
public void SetIconFromStock(string stockIcon, EntryIconPosition iconPos) { if (IconsSupported) gtk_entry_set_icon_from_stock(this.Handle, iconPos, stockIcon); }
public void SetIconFromPixbuf(Gdk.Pixbuf pb, EntryIconPosition iconPos) { if (IconsSupported) gtk_entry_set_icon_from_pixbuf(this.Handle, iconPos, pb.Handle); }
public void SetIconActivatable(EntryIconPosition iconPos, bool activatable) { if (IconsSupported) gtk_entry_set_icon_activatable(this.Handle, iconPos, activatable); }
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; } }