From f47b684fddeba5279dc66d655d17c78e97b0b536 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 2 Jan 2012 14:51:36 +0000 Subject: [PATCH] Compilation fix for Gtk+ 3.0 --- src/desktopicon.c | 6 +++--- src/view.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/desktopicon.c b/src/desktopicon.c index 5450a9d..9585da2 100644 --- a/src/desktopicon.c +++ b/src/desktopicon.c @@ -1,5 +1,5 @@ /* $Id$ */ -/* Copyright (c) 2011 Pierre Pronchery */ +/* Copyright (c) 2012 Pierre Pronchery */ /* This file is part of DeforaOS Desktop Browser */ /* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1013,12 +1013,12 @@ static gboolean _on_icon_key_press(GtkWidget * widget, GdkEventKey * event, if(event->type != GDK_KEY_PRESS) return FALSE; - if(event->keyval == GDK_uparrow) + if(event->keyval == GDK_KEY_uparrow) { desktop_unselect_all(desktopicon->desktop); desktop_select_above(desktopicon->desktop, desktopicon); } - else if(event->keyval == GDK_downarrow) + else if(event->keyval == GDK_KEY_downarrow) { desktop_unselect_all(desktopicon->desktop); desktop_select_under(desktopicon->desktop, desktopicon); diff --git a/src/view.c b/src/view.c index 8278f5c..8495074 100644 --- a/src/view.c +++ b/src/view.c @@ -1,6 +1,6 @@ /* $Id$ */ static char const _copyright[] = -"Copyright (c) 2011 Pierre Pronchery "; +"Copyright (c) 2012 Pierre Pronchery "; /* This file is part of DeforaOS Desktop Browser */ static char const _license[] = "view is free software; you can redistribute it and/or modify it under the\n" @@ -101,18 +101,18 @@ static DesktopMenu _view_menu_file[] = { N_("Open _with..."), G_CALLBACK(_on_file_open_with), NULL, 0, 0 }, { "", NULL, NULL, 0, 0 }, { N_("_Close"), G_CALLBACK(_on_file_close), GTK_STOCK_CLOSE, - GDK_CONTROL_MASK, GDK_W }, + GDK_CONTROL_MASK, GDK_KEY_W }, { NULL, NULL, NULL, 0, 0 } }; static DesktopMenu _view_menu_file_edit[] = { { N_("_Edit"), G_CALLBACK(_on_file_edit), GTK_STOCK_EDIT, - GDK_CONTROL_MASK, GDK_E }, + GDK_CONTROL_MASK, GDK_KEY_E }, { N_("Open _with..."), G_CALLBACK(_on_file_open_with), NULL, 0, 0 }, { "", NULL, NULL, 0, 0 }, { N_("_Close"), G_CALLBACK(_on_file_close), GTK_STOCK_CLOSE, - GDK_CONTROL_MASK, GDK_W }, + GDK_CONTROL_MASK, GDK_KEY_W }, { NULL, NULL, NULL, 0, 0 } };