diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-23 18:01:18 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-23 18:01:18 +0200 |
commit | 2bf87d29cceb369f030feeaeab6ee25541d8559a (patch) | |
tree | caeebf8dc758c02e2c34be28a0a83d9d333dae6e /libreofficekit | |
parent | ef9722558a33a6e88ed5ab76198f2698ddd1e003 (diff) |
libreofficekit: error: 'gtk_widget_get_visible' was not declared in this scope
Change-Id: I31b65f405a9252fcc8323ac4e528b38e05a32625
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx index 4b5f1c580fbc..ac74266528aa 100644 --- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx @@ -119,6 +119,7 @@ void toggleEditing(GtkWidget* /*pButton*/, gpointer /*pItem*/) /// Toggle the visibility of the findbar. void toggleFindbar(GtkWidget* /*pButton*/, gpointer /*pItem*/) { +#if GTK_CHECK_VERSION(2,18,0) // we need gtk_widget_get_visible() if (gtk_widget_get_visible(pFindbar)) { gtk_widget_hide(pFindbar); @@ -128,13 +129,16 @@ void toggleFindbar(GtkWidget* /*pButton*/, gpointer /*pItem*/) gtk_widget_show_all(pFindbar); gtk_widget_grab_focus(pFindbarEntry); } +#endif } /// Handles the key-press-event of the window. static void signalKey(GtkWidget* pWidget, GdkEventKey* pEvent, gpointer pData) { +#if GTK_CHECK_VERSION(2,18,0) // we need gtk_widget_get_visible() if (!gtk_widget_get_visible(pFindbar)) lok_docview_post_key(pWidget, pEvent, pData); +#endif } /// Searches for the next or previous text of pFindbarEntry. |