From 3ebaaebf544be4f7f39b7fcbbbc377418a897442 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Thu, 10 Aug 2017 16:44:06 +0530 Subject: Change CB_DIALOG_INVALIDATE to CB_DIALOG We can specify whether it is an invalidation or something else in the payload. Change-Id: I95c5fc0a0a88b5277eaa93c8d1f9b937bddce7b3 --- libreofficekit/source/gtk/lokdocview.cxx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'libreofficekit/source') diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index 1bdb80c754ed..d2bfefcc089e 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -279,7 +279,7 @@ enum PASSWORD_REQUIRED, COMMENT, RULER, - DIALOG_INVALIDATE, + DIALOG, DIALOG_CHILD, LAST_SIGNAL @@ -438,8 +438,8 @@ callbackTypeToString (int nType) return "LOK_CALLBACK_COMMENT"; case LOK_CALLBACK_RULER_UPDATE: return "LOK_CALLBACK_RULER_UPDATE"; - case LOK_CALLBACK_DIALOG_INVALIDATE: - return "LOK_CALLBACK_DIALOG_INVALIDATE"; + case LOK_CALLBACK_DIALOG: + return "LOK_CALLBACK_DIALOG"; case LOK_CALLBACK_DIALOG_CHILD: return "LOK_CALLBACK_DIALOG_CHILD"; } @@ -1414,8 +1414,9 @@ callback (gpointer pData) break; case LOK_CALLBACK_RULER_UPDATE: g_signal_emit(pCallback->m_pDocView, doc_view_signals[RULER], 0, pCallback->m_aPayload.c_str()); - case LOK_CALLBACK_DIALOG_INVALIDATE: - g_signal_emit(pCallback->m_pDocView, doc_view_signals[DIALOG_INVALIDATE], 0, pCallback->m_aPayload.c_str()); + break; + case LOK_CALLBACK_DIALOG: + g_signal_emit(pCallback->m_pDocView, doc_view_signals[DIALOG], 0, pCallback->m_aPayload.c_str()); break; case LOK_CALLBACK_DIALOG_CHILD: g_signal_emit(pCallback->m_pDocView, doc_view_signals[DIALOG_CHILD], 0, pCallback->m_aPayload.c_str()); @@ -3222,8 +3223,8 @@ static void lok_doc_view_class_init (LOKDocViewClass* pClass) * @pDocView: the #LOKDocView on which the signal is emitted * @pDialogId: The uno command for the dialog (dialog ID) */ - doc_view_signals[DIALOG_INVALIDATE] = - g_signal_new("dialog-invalidate", + doc_view_signals[DIALOG] = + g_signal_new("dialog", G_TYPE_FROM_CLASS(pGObjectClass), G_SIGNAL_RUN_FIRST, 0, -- cgit