summaryrefslogtreecommitdiff
path: root/logview
diff options
context:
space:
mode:
Diffstat (limited to 'logview')
-rw-r--r--logview/logview-findbar.c3
-rw-r--r--logview/logview-window.c7
2 files changed, 10 insertions, 0 deletions
diff --git a/logview/logview-findbar.c b/logview/logview-findbar.c
index dbe3e098..947df4cb 100644
--- a/logview/logview-findbar.c
+++ b/logview/logview-findbar.c
@@ -22,6 +22,9 @@
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <gdk/gdkkeysyms.h>
+#if GTK_CHECK_VERSION (3, 0, 0)
+#include <gdk/gdkkeysyms-compat.h>
+#endif
#include "logview-findbar.h"
diff --git a/logview/logview-window.c b/logview/logview-window.c
index cbd99bbb..cc830a2d 100644
--- a/logview/logview-window.c
+++ b/logview/logview-window.c
@@ -24,6 +24,9 @@
#include <string.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
+#if GTK_CHECK_VERSION (3, 0, 0)
+#include <gdk/gdkkeysyms-compat.h>
+#endif
#include <glib/gi18n.h>
#include "logview-window.h"
@@ -1380,7 +1383,11 @@ logview_window_init (LogviewWindow *logview)
/* version selector */
priv->version_bar = gtk_hbox_new (FALSE, 0);
gtk_container_set_border_width (GTK_CONTAINER (priv->version_bar), 3);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ priv->version_selector = gtk_combo_box_text_new ();
+#else
priv->version_selector = gtk_combo_box_new_text ();
+#endif
g_signal_connect (priv->version_selector, "changed",
G_CALLBACK (logview_version_selector_changed), logview);
w = gtk_label_new (_("Version: "));