summaryrefslogtreecommitdiff
path: root/libreofficekit
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-12-14 18:35:04 +0530
committerAndras Timar <andras.timar@collabora.com>2018-03-19 18:57:42 +0100
commitc36413494878bbdfb8c4cf237127d4114eb40fcb (patch)
treec53c19ae4b7a28c354157a03128e56d38df79d8c /libreofficekit
parentc49d98ae780063770fd2e7c0369211fa4e11a70a (diff)
lokdialog: gtv: Set dialog title on callback
Change-Id: I6d96a9e2287afdcaad2f770e4b4c73d3671fc76b (cherry picked from commit f0a6fd58575ff6b9ebbfb0835aa8694923ddbffd) (cherry picked from commit 40990006eafa161ad509c4646a80fd28770e2914)
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/qa/gtktiledviewer/gtv-lokdocview-signal-handlers.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtv-lokdocview-signal-handlers.cxx b/libreofficekit/qa/gtktiledviewer/gtv-lokdocview-signal-handlers.cxx
index 78f940cb33c7..ffef18c8bdfa 100644
--- a/libreofficekit/qa/gtktiledviewer/gtv-lokdocview-signal-handlers.cxx
+++ b/libreofficekit/qa/gtktiledviewer/gtv-lokdocview-signal-handlers.cxx
@@ -387,6 +387,11 @@ void LOKDocViewSigHandlers::window(LOKDocView* pDocView, gchar* pPayload, gpoint
gtv_lok_dialog_invalidate(GTV_LOK_DIALOG(pDialog), aGdkRectangle);
}
+ else if (aAction == "title_changed")
+ {
+ const std::string aTitle = aRoot.get<std::string>("title", "");
+ gtk_window_set_title(pDialog, aTitle.c_str());
+ }
}
}
}