Hi,

can I apply the attached patch? I couldn't find a single place where this lfun is emitted.

Michael
Index: LyXAction.C
===================================================================
--- LyXAction.C	(Revision 14449)
+++ LyXAction.C	(Arbeitskopie)
@@ -332,7 +332,6 @@
 		{ LFUN_INSET_MODIFY, "", Noop },
 		{ LFUN_INSET_DIALOG_UPDATE, "", Noop },
 		{ LFUN_INSET_SETTINGS, "inset-settings", ReadOnly },
-		{ LFUN_INSET_DIALOG_SHOW, "inset-dialog-show", Noop },
 		{ LFUN_PARAGRAPH_PARAMS_APPLY, "paragraph-params-apply", Noop },
 		{ LFUN_PARAGRAPH_UPDATE, "", Noop },
 		{ LFUN_EXTERNAL_EDIT, "external-edit", Noop },
Index: insets/insetcommand.C
===================================================================
--- insets/insetcommand.C	(Revision 14449)
+++ insets/insetcommand.C	(Arbeitskopie)
@@ -120,7 +120,6 @@
 		InsetCommandMailer(cmd.argument, *this).updateDialog(&cur.bv());
 		break;
 
-	case LFUN_INSET_DIALOG_SHOW:
 	case LFUN_MOUSE_RELEASE: {
 		if (!mailer_name_.empty())
 			InsetCommandMailer(mailer_name_, *this).showDialog(&cur.bv());
@@ -147,7 +146,6 @@
 	case LFUN_INSET_REFRESH:
 	case LFUN_INSET_MODIFY:
 	case LFUN_INSET_DIALOG_UPDATE:
-	case LFUN_INSET_DIALOG_SHOW:
 		status.enabled(true);
 		return true;
 	default:
Index: insets/insetinclude.C
===================================================================
--- insets/insetinclude.C	(Revision 14449)
+++ insets/insetinclude.C	(Arbeitskopie)
@@ -141,7 +141,6 @@
 		break;
 
 	case LFUN_MOUSE_RELEASE:
-	case LFUN_INSET_DIALOG_SHOW:
 		InsetIncludeMailer(*this).showDialog(&cur.bv());
 		break;
 
@@ -159,7 +158,6 @@
 
 	case LFUN_INSET_MODIFY:
 	case LFUN_INSET_DIALOG_UPDATE:
-	case LFUN_INSET_DIALOG_SHOW:
 		flag.enabled(true);
 		return true;
 
Index: mathed/ref_inset.C
===================================================================
--- mathed/ref_inset.C	(Revision 14449)
+++ mathed/ref_inset.C	(Arbeitskopie)
@@ -78,7 +78,6 @@
 		break;
 	}
 
-	case LFUN_INSET_DIALOG_SHOW:
 	case LFUN_MOUSE_RELEASE:
 		if (cmd.button() == mouse_button::button3) {
 			lyxerr << "trying to goto ref '" << asString(cell(0)) << "'" << endl;
@@ -113,7 +112,6 @@
 	// we handle these
 	case LFUN_INSET_MODIFY:
 	case LFUN_INSET_DIALOG_UPDATE:
-	case LFUN_INSET_DIALOG_SHOW:
 	case LFUN_MOUSE_RELEASE:
 	case LFUN_MOUSE_PRESS:
 	case LFUN_MOUSE_MOTION:
Index: text3.C
===================================================================
--- text3.C	(Revision 14449)
+++ text3.C	(Arbeitskopie)
@@ -1462,15 +1462,6 @@
 		break;
 	}
 
-	case LFUN_INSET_DIALOG_SHOW: {
-		InsetBase * inset = cur.nextInset();
-		if (inset) {
-			FuncRequest fr(LFUN_INSET_DIALOG_SHOW);
-			inset->dispatch(cur, fr);
-		}
-		break;
-	}
-
 	case LFUN_ESCAPE:
 		if (cur.selection()) {
 			cur.selection() = false;
@@ -1669,25 +1660,6 @@
 			code = InsetBase::SPACE_CODE;
 		break;
 
-#ifdef WITH_WARNINGS
-#warning This LFUN is not used anymore and should be nuked (JMarc 29/10/2005)
-#endif
-#if 0
-	case LFUN_INSET_DIALOG_SHOW: {
-		InsetBase * inset = cur.nextInset();
-		enable = inset;
-		if (inset) {
-			code = inset->lyxCode();
-			if (!(code == InsetBase::INCLUDE_CODE
-				|| code == InsetBase::BIBTEX_CODE
-				|| code == InsetBase::FLOAT_LIST_CODE
-				|| code == InsetBase::TOC_CODE))
-				enable = false;
-		}
-		break;
-	}
-#endif
-
 	case LFUN_INSET_MODIFY:
 		// We need to disable this, because we may get called for a
 		// tabular cell via
Index: lfuns.h
===================================================================
--- lfuns.h	(Revision 14449)
+++ lfuns.h	(Arbeitskopie)
@@ -320,52 +320,51 @@
 	LFUN_PARAGRAPH_UPDATE,
 	LFUN_EXTERNAL_EDIT,
 	LFUN_BRANCH_INSERT,
-	LFUN_INSET_DIALOG_SHOW,
 	LFUN_BOX_INSERT,
-	// 245
 	LFUN_LINE_INSERT,
+	// 245
 	LFUN_PAGEBREAK_INSERT,
 	LFUN_REPEAT,
 	LFUN_FINISHED_LEFT,
 	LFUN_FINISHED_RIGHT,
-	// 250
 	LFUN_FINISHED_UP,
+	// 250
 	LFUN_FINISHED_DOWN,
 	LFUN_CHARSTYLE_INSERT,
 	LFUN_WORD_FIND,
 	LFUN_WORD_REPLACE,
-	// 255
 	LFUN_BUFFER_EXPORT_CUSTOM,
+	// 255
 	LFUN_BUFFER_PRINT,
 	LFUN_NEXT_INSET_TOGGLE,
 	LFUN_ALL_INSETS_TOGGLE,
 	LFUN_BUFFER_LANGUAGE,
-	// 260
 	LFUN_TEXTCLASS_APPLY,
+	// 260
 	LFUN_TEXTCLASS_LOAD,
 	LFUN_BUFFER_SAVE_AS_DEFAULT,
 	LFUN_BUFFER_PARAMS_APPLY,
 	LFUN_LYXRC_APPLY,
-	// 265
 	LFUN_GRAPHICS_EDIT,
+	// 265
 	LFUN_INSET_REFRESH,
 	LFUN_BUFFER_NEXT,
 	LFUN_BUFFER_PREVIOUS,
 	LFUN_WORDS_COUNT,
-	// 270
 	LFUN_CHANGES_OUTPUT,             // jspitzm 20050121
+	// 270
 	LFUN_BIBTEX_DATABASE_ADD,
 	LFUN_BIBTEX_DATABASE_DEL,
 	LFUN_CITATION_INSERT,
 	LFUN_OUTLINE_UP,                 // Vermeer 20060323
-	// 275
 	LFUN_OUTLINE_DOWN,
+	// 275
 	LFUN_OUTLINE_IN,
 	LFUN_OUTLINE_OUT,
 	LFUN_PARAGRAPH_MOVE_DOWN,                // Edwin 20060408
 	LFUN_PARAGRAPH_MOVE_UP,                  // Edwin 20060408
-	// 280
 	LFUN_BUFFER_TOGGLE_COMPRESSION,                 // bpeng 20060427
+	// 280
 	LFUN_MATH_BIGDELIM,
 	LFUN_CLIPBOARD_PASTE,
 

Reply via email to