diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-07-30 07:33:35 +0200 |
---|---|---|
committer | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-07-30 12:44:05 +0200 |
commit | df438e6ea260c1367fac0c2f195f1aff6311709f (patch) | |
tree | 43061cfeb0c34a1916a08ec950a1bfe857da85e3 /libreofficekit | |
parent | ba520b9dbb911d32dd770f4548399b98dd80bd2c (diff) |
LokDocView: set current item for part selector.
Change-Id: Idbb3d63803bd60a182a9b8e26620d11b2d643cb6
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx index a96e1e3f8f6c..c58899384497 100644 --- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx @@ -136,7 +136,8 @@ void populatePartSelector( GtkComboBoxText* pSelector, LOKDocView* pView ) gtk_combo_box_text_append_text( pSelector, sText ); } - gtk_combo_box_set_active( GTK_COMBO_BOX(pSelector), 0 ); + gtk_combo_box_set_active( GTK_COMBO_BOX(pPartSelector), + lok_docview_get_part( LOK_DOCVIEW(pDocView) ) ); } void changePart( GtkWidget* pSelector, gpointer /* pItem */ ) |