diff options
author | Stefano Karapetsas <[email protected]> | 2014-04-30 23:23:38 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-04-30 23:23:38 +0200 |
commit | 309200788af7a414b4c54234d7791a31ca4abcff (patch) | |
tree | 00d5b7b6cb1bc3e0626a43a046474ebbf28e611c /logview | |
parent | 16ba170d248db4ce06ac5b4f346faff6eaddd1b7 (diff) | |
download | mate-utils-309200788af7a414b4c54234d7791a31ca4abcff.tar.bz2 mate-utils-309200788af7a414b4c54234d7791a31ca4abcff.tar.xz |
logview: Add GTK3 support
Diffstat (limited to 'logview')
-rw-r--r-- | logview/logview-findbar.c | 3 | ||||
-rw-r--r-- | logview/logview-window.c | 7 |
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: ")); |