2004-05-07 Mike Kestner <mkestner@ximian.com>
* sample/GnomeHelloWorld.cs : guard against null args.Event in the icon_selected_cb, which occurs on button-presses for some reason. Thanks to wmealing on irc for the bug report. svn path=/trunk/gtk-sharp/; revision=26926
This commit is contained in:
parent
5a2659022c
commit
8bb5dbc321
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-05-07 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* sample/GnomeHelloWorld.cs : guard against null args.Event in the
|
||||
icon_selected_cb, which occurs on button-presses for some reason.
|
||||
Thanks to wmealing on irc for the bug report.
|
||||
|
||||
2004-05-07 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* sample/*/Makefile.am : rebuild if the assemblies change
|
||||
|
|
|
@ -151,6 +151,10 @@ namespace GtkSamples {
|
|||
void icon_selected_cb (object obj, Gnome.IconSelectedArgs args)
|
||||
{
|
||||
int idx = args.Num;
|
||||
|
||||
if (args.Event == null)
|
||||
return;
|
||||
|
||||
EventButton ev = new EventButton (args.Event.Handle);
|
||||
|
||||
if (ev.Type == EventType.TwoButtonPress && ev.Button == 1) {
|
||||
|
|
Loading…
Reference in a new issue