Compilation fix for Gtk+ 3.0
This commit is contained in:
parent
201ca10653
commit
f47b684fdd
|
@ -1,5 +1,5 @@
|
|||
/* $Id$ */
|
||||
/* Copyright (c) 2011 Pierre Pronchery <khorben@defora.org> */
|
||||
/* Copyright (c) 2012 Pierre Pronchery <khorben@defora.org> */
|
||||
/* 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);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* $Id$ */
|
||||
static char const _copyright[] =
|
||||
"Copyright (c) 2011 Pierre Pronchery <khorben@defora.org>";
|
||||
"Copyright (c) 2012 Pierre Pronchery <khorben@defora.org>";
|
||||
/* 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 }
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user