static void OnBusyStateChanged(object s, BusyStateEventArgs args) { isBusy = args.IsBusy; DispatchService.GuiDispatch(delegate { busyDialog.UpdateBusyState(args); if (args.IsBusy) { if (busyStatusIcon == null) { busyStatusIcon = IdeApp.Workbench.StatusBar.ShowStatusIcon(ImageService.GetPixbuf("md-execute-debug", Gtk.IconSize.Menu)); busyStatusIcon.SetAlertMode(100); busyStatusIcon.ToolTip = GettextCatalog.GetString("The Debugger is waiting for an expression evaluation to finish."); busyStatusIcon.EventBox.ButtonPressEvent += delegate { busyDialog.Show(); }; } } else { if (busyStatusIcon != null) { busyStatusIcon.Dispose(); busyStatusIcon = null; } } }); }
static void OnBusyStateChanged(object s, BusyStateEventArgs args) { isBusy = args.IsBusy; Runtime.RunInMainThread(delegate { busyDialog.UpdateBusyState(args); if (args.IsBusy) { if (busyStatusIcon == null) { busyStatusIcon = IdeApp.Workbench.StatusBar.ShowStatusIcon(ImageService.GetIcon("md-execute-debug", Gtk.IconSize.Menu)); busyStatusIcon.SetAlertMode(100); busyStatusIcon.ToolTip = GettextCatalog.GetString("The debugger runtime is not responding. You can wait for it to recover, or stop debugging."); busyStatusIcon.Clicked += delegate { MessageService.PlaceDialog(busyDialog, MessageService.RootWindow); }; } } else { if (busyStatusIcon != null) { busyStatusIcon.Dispose(); busyStatusIcon = null; } } }); }