File kdebase3-add-attach-option-kdialog.patch of Package kdebase3
diff -Naru kdebase-3.5.10_orig/kdialog/kdialog.cpp kdebase-3.5.10/kdialog/kdialog.cpp
--- kdebase-3.5.10_orig/kdialog/kdialog.cpp 2006-05-23 03:12:42.000000000 +0900
+++ kdebase-3.5.10/kdialog/kdialog.cpp 2024-11-22 19:35:43.653812041 +0900
@@ -95,6 +95,7 @@
{ "separate-output", I18N_NOOP("Return list items on separate lines (for checklist option and file open with --multiple)"), 0 },
{ "print-winid", I18N_NOOP("Outputs the winId of each dialog"), 0 },
{ "embed <winid>", I18N_NOOP("Makes the dialog transient for an X app specified by winid"), 0 },
+ { "attach <winid>", I18N_NOOP("Alias for --embed"), 0 },
{ "dontagain <file:entry>", I18N_NOOP("Config file and option name for saving the \"dont-show/ask-again\" state"), 0 },
{ "+[arg]", I18N_NOOP("Arguments - depending on main option"), 0 },
@@ -157,7 +158,7 @@
QString title;
bool separateOutput = FALSE;
bool printWId = args->isSet("print-winid");
- bool embed = args->isSet("embed");
+ bool embed = args->isSet("embed") || args->isSet("attach");
QString defaultEntry;
// --title text
@@ -179,6 +180,11 @@
long l = args->getOption("embed").toLong(&ok);
if (ok)
id = (WId)l;
+ else {
+ l = args->getOption("attach").toLong(&ok);
+ if (ok)
+ id = (WId)l;
+ }
}
(void)new WinIdEmbedder(printWId, id);
}