diff options
Diffstat (limited to 'logview/logview-window.c')
-rw-r--r-- | logview/logview-window.c | 7 |
1 files changed, 7 insertions, 0 deletions
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: ")); |