Compilation fix for Gtk+ 3.0
This commit is contained in:
parent
201ca10653
commit
f47b684fdd
|
@ -1,5 +1,5 @@
|
||||||
/* $Id$ */
|
/* $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 file is part of DeforaOS Desktop Browser */
|
||||||
/* This program is free software: you can redistribute it and/or modify
|
/* 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
|
* 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)
|
if(event->type != GDK_KEY_PRESS)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if(event->keyval == GDK_uparrow)
|
if(event->keyval == GDK_KEY_uparrow)
|
||||||
{
|
{
|
||||||
desktop_unselect_all(desktopicon->desktop);
|
desktop_unselect_all(desktopicon->desktop);
|
||||||
desktop_select_above(desktopicon->desktop, desktopicon);
|
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_unselect_all(desktopicon->desktop);
|
||||||
desktop_select_under(desktopicon->desktop, desktopicon);
|
desktop_select_under(desktopicon->desktop, desktopicon);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
static char const _copyright[] =
|
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 */
|
/* This file is part of DeforaOS Desktop Browser */
|
||||||
static char const _license[] =
|
static char const _license[] =
|
||||||
"view is free software; you can redistribute it and/or modify it under the\n"
|
"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 },
|
{ N_("Open _with..."), G_CALLBACK(_on_file_open_with), NULL, 0, 0 },
|
||||||
{ "", NULL, NULL, 0, 0 },
|
{ "", NULL, NULL, 0, 0 },
|
||||||
{ N_("_Close"), G_CALLBACK(_on_file_close), GTK_STOCK_CLOSE,
|
{ 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 }
|
{ NULL, NULL, NULL, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static DesktopMenu _view_menu_file_edit[] =
|
static DesktopMenu _view_menu_file_edit[] =
|
||||||
{
|
{
|
||||||
{ N_("_Edit"), G_CALLBACK(_on_file_edit), GTK_STOCK_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 },
|
{ N_("Open _with..."), G_CALLBACK(_on_file_open_with), NULL, 0, 0 },
|
||||||
{ "", NULL, NULL, 0, 0 },
|
{ "", NULL, NULL, 0, 0 },
|
||||||
{ N_("_Close"), G_CALLBACK(_on_file_close), GTK_STOCK_CLOSE,
|
{ 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 }
|
{ NULL, NULL, NULL, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user