/// <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 (); }
/// <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 (); }
public static int RunDialogWithNotification (Gtk.Dialog dialog) { if (Platform.IsMac) MacRequestAttention (dialog.Modal); return dialog.Run (); }