Show libnotify bubble and set urgent hint to the window when cloning has finished
This commit is contained in:
parent
4eaa233bb6
commit
866e3c16a1
|
@ -23,6 +23,7 @@ using System.Timers;
|
|||
|
||||
using Gtk;
|
||||
using Mono.Unix;
|
||||
using Notifications;
|
||||
|
||||
namespace SparkleShare {
|
||||
|
||||
|
@ -527,6 +528,8 @@ namespace SparkleShare {
|
|||
|
||||
Reset ();
|
||||
|
||||
UrgencyHint = true;
|
||||
|
||||
VBox layout_vertical = new VBox (false, 0);
|
||||
|
||||
Label header = new Label ("<span size='large'><b>" +
|
||||
|
@ -561,6 +564,17 @@ namespace SparkleShare {
|
|||
|
||||
Reset ();
|
||||
|
||||
UrgencyHint = true;
|
||||
|
||||
if (!HasTopLevelFocus) {
|
||||
|
||||
string title = String.Format (_("‘{0}’ has been successfully added", folder_name));
|
||||
string subtext = _("");
|
||||
|
||||
new SparkleBubble (title, subtext).Show ();
|
||||
|
||||
}
|
||||
|
||||
VBox layout_vertical = new VBox (false, 0);
|
||||
|
||||
Label header = new Label ("<span size='large'><b>" +
|
||||
|
|
Loading…
Reference in a new issue