我正在尝试修改此应用程序/源文件:
https://github.com/mank319/Go-For-It/blob/master/src/view/MainWindow.vala
这个应用程序正在做的是,在计时器过期时,它会显示GTK通知。我想它做的是弹出最小化和目前的窗口给用户。
try {
this.deiconify();
this.present();
notification.show ();
} catch (GLib.Error err){
GLib.stderr.printf(
"Error in notify! (break_active notification)\n");
}
}
break_previously_active = break_active;
}
private void display_almost_over_notification (DateTime remaining_time) {
int64 secs = remaining_time.to_unix ();
Notify.Notification notification = new Notify.Notification (
_("Prepare for your break"),
_("You have %s seconds left").printf (secs.to_string ()), GOFI.EXEC_NAME);
try {
this.deiconify();
this.present();
notification.show ();
} catch (GLib.Error err){
GLib.stderr.printf(
"Error in notify! (remaining_time notification)\n");
}
}
i、 我补充说
this.deiconify();
this.present();
但是,这只起作用
当且仅当我不切换到任务栏中的任何其他任务时
我怎样才能使它弹出不管什么其他应用程序窗口显示在主视图?
桂:KDE血浆。
操作系统:Debian9.7。