Kaydet (Commit) ed9d6ef1 authored tarafından Mihai Varga's avatar Mihai Varga Kaydeden (comit) Miklos Vajna

gtktiledviewer: method for resetting all tiles

[ Miklos Vajna: The point of the change is that without this, part switching in
Calc does not work, as Calc does not invalidate everything after a part switch
(unlike Impress), and we suppose the right fix for this is to let the clients
throw away the tiles, rather than letting Calc send out invalidations, too. ]

Change-Id: Id368b955c54efb87ecf3d59278ddb5cdbb2e7856
Reviewed-on: https://gerrit.libreoffice.org/17267Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 233a634a
......@@ -63,6 +63,9 @@ char* lok_doc_view_get_part_name (LOKDocView*
int nPart);
void lok_doc_view_set_partmode (LOKDocView* pDocView,
int nPartMode);
void lok_doc_view_reset_view (LOKDocView* pDocView);
/// Sets if the viewer is actually an editor or not.
void lok_doc_view_set_edit (LOKDocView* pDocView,
gboolean bEdit);
......@@ -357,6 +357,7 @@ static void changePart( GtkWidget* pSelector, gpointer /* pItem */ )
if (g_bPartSelectorBroadcast && pDocView)
lok_doc_view_set_part( LOK_DOC_VIEW(pDocView), nPart );
lok_doc_view_reset_view( LOK_DOC_VIEW(pDocView) );
......@@ -1529,6 +1529,14 @@ lok_doc_view_set_partmode(LOKDocView* pDocView,
priv->m_pDocument->pClass->setPartMode( priv->m_pDocument, nPartMode );
lok_doc_view_reset_view(LOKDocView* pDocView)
LOKDocViewPrivate *priv = static_cast<LOKDocViewPrivate*>(lok_doc_view_get_instance_private (pDocView));
* lok_doc_view_set_edit:
* @pDocView: The #LOKDocView instance
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment