Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Wed, 04 Jun 2014 12:16:39 UTC Commit: ea6ebaf48f40945374ea1075ceeaeedc56adee8e https://github.com/geany/geany/commit/ea6ebaf48f40945374ea1075ceeaeedc56adee...
Log Message: ----------- Fix build with GTK < 2.24
Part of #1047.
Modified Paths: -------------- src/document.c
Modified: src/document.c 10 lines changed, 6 insertions(+), 4 deletions(-) =================================================================== @@ -53,6 +53,8 @@ #include "utils.h" #include "vte.h"
+#include "gtkcompat.h" + #ifdef HAVE_SYS_TIME_H # include <sys/time.h> #endif @@ -3159,15 +3161,15 @@ static gboolean on_sci_key(GtkWidget *widget, GdkEventKey *event, gpointer data)
switch (event->keyval) { - case GDK_KEY_Tab: - case GDK_KEY_ISO_Left_Tab: + case GDK_Tab: + case GDK_ISO_Left_Tab: { GtkWidget *action_area = gtk_info_bar_get_action_area(bar); - GtkDirectionType dir = event->keyval == GDK_KEY_Tab ? GTK_DIR_TAB_FORWARD : GTK_DIR_TAB_BACKWARD; + GtkDirectionType dir = event->keyval == GDK_Tab ? GTK_DIR_TAB_FORWARD : GTK_DIR_TAB_BACKWARD; gtk_widget_child_focus(action_area, dir); return TRUE; } - case GDK_KEY_Escape: + case GDK_Escape: { gtk_info_bar_response(bar, GTK_RESPONSE_CANCEL); return TRUE;
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).