예제 #1
0
    	public void OnServiceAdded (object o, ServiceArgs args)
		{
			Gtk.Application.Invoke( delegate {
				Logger.Debug("Adding the service {0}", args.ServiceInfo.ID);
				TargetService target = new TargetService(args.ServiceInfo);
				target.ShowAll();
				targetVBox.PackStart (target, false, false, 0);
				targets.Add(args.ServiceInfo.ID, target);
			} );
		}
예제 #2
0
    	public void OnServiceRemoved (object o, ServiceArgs args)
		{
			Logger.Debug("TargetWindow:OnServiceRemoved called for {0}", args.ServiceInfo.Name);
			Gtk.Application.Invoke( delegate {
				Logger.Debug("Remove the service {0}", args.ServiceInfo.Name);
				if(targets.ContainsKey(args.ServiceInfo.ID)) {
					targetVBox.Remove(targets[args.ServiceInfo.ID]);
					targets.Remove(args.ServiceInfo.ID);
				}
			} );
		}
예제 #3
0
	 	private void OnServicesChanged (object o, ServiceArgs args)
		{
			Gtk.Application.Invoke( delegate {
				UpdateTrayIcon();
			} );
		}