示例#1
0
		/// <summary>
		/// Places and runs a transient dialog. Does not destroy it, so values can be retrieved from its widgets.
		/// </summary>
		public static int RunCustomDialog (Gtk.Dialog dialog, Window parent)
		{
			if (parent == null) {
				if (dialog.TransientFor != null)
					parent = dialog.TransientFor;
				else
					parent = GetDefaultParent (dialog);
			}
			dialog.TransientFor = parent;
			dialog.DestroyWithParent = true;
			PlaceDialog (dialog, parent);
			return dialog.Run ();
		}
示例#2
0
		/// <summary>
		/// Places and runs a transient dialog. Does not destroy it, so values can be retrieved from its widgets.
		/// </summary>
		public static int RunCustomDialog (Gtk.Dialog dialog, Window parent)
		{
			dialog.TransientFor      = parent;
			dialog.DestroyWithParent = true;
			PlaceDialog (dialog, rootWindow);
			return dialog.Run ();
		}
示例#3
0
		public static int RunDialogWithNotification (Gtk.Dialog dialog)
		{
			if (Platform.IsMac)
				MacRequestAttention (dialog.Modal);
			
			return dialog.Run ();
		}