private void OnIconPressEvent(object o, IconPressReleaseEventArgs args) { if (args.IconPos == EntryIconPosition.Primary) { ShowPopup(); } else // clear-button pressed { Text = String.Empty; // update search results OnSearch(); } }
private static void SignalCallback(IntPtr arg0, int arg1, IntPtr arg2, IntPtr gch) { IconPressReleaseEventArgs args = new IconPressReleaseEventArgs(); try { GCHandle handle = (GCHandle)gch; Signal target = handle.Target as Signal; if (target == null) { throw new Exception("Unknown signal GC handle received " + gch); } args.Args = new object[] { arg1 }; IconPressReleaseEventHandler handler = (IconPressReleaseEventHandler)target.Handler; handler(GLib.Object.GetObject(arg0), args); } catch (Exception exception) { ExceptionManager.RaiseUnhandledException(exception, false); } }
private static void SignalCallback(IntPtr arg0, int arg1, IntPtr arg2, IntPtr gch) { IconPressReleaseEventArgs args = new IconPressReleaseEventArgs(); try { GCHandle handle = (GCHandle) gch; Signal target = handle.Target as Signal; if (target == null) { throw new Exception("Unknown signal GC handle received " + gch); } args.Args = new object[] { arg1 }; IconPressReleaseEventHandler handler = (IconPressReleaseEventHandler)target.Handler; handler(GLib.Object.GetObject(arg0), args); } catch (Exception exception) { ExceptionManager.RaiseUnhandledException(exception, false); } }
private void OnIconPressEvent(object o, IconPressReleaseEventArgs args) { if (args.IconPos == EntryIconPosition.Primary) { ShowPopup(); } else { // clear-button pressed Text = String.Empty; // update search results OnSearch(); } }
private void OnIconPressEvent(object o, IconPressReleaseEventArgs args) { ShowPopup(); }