You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
624 B

using Gtk;
using Unique;
namespace NeoLayoutViewer {
public const int SHOW=1000;
public static Unique.App? showPreviousInstance(string name, Gtk.Window win){
var app = new Unique.App(name, null);
app.add_command ("Show application", SHOW);
if( app.is_running ){
//where is already a running instance
debug("Application already running. Show window of other instance.");
return null;
app.message_received.connect( (t, command, data, time) =>{
if(command == SHOW){
return Unique.Response.OK;
return app;