Callbacks for keyboard shortcuts do not need returning anything

This commit is contained in:
Pierre Pronchery 2013-03-09 23:15:39 +01:00
parent 705c3bd384
commit 986e92d2ea
2 changed files with 11 additions and 15 deletions

View File

@ -1,5 +1,5 @@
/* $Id$ */ /* $Id$ */
/* Copyright (c) 2006-2012 Pierre Pronchery <khorben@defora.org> */ /* Copyright (c) 2006-2013 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
@ -64,46 +64,42 @@ gboolean on_closex(gpointer data)
browser_delete(browser); browser_delete(browser);
if(browser_cnt == 0) if(browser_cnt == 0)
gtk_main_quit(); gtk_main_quit();
return FALSE; return TRUE;
} }
/* accelerators */ /* accelerators */
/* on_close */ /* on_close */
gboolean on_close(gpointer data) void on_close(gpointer data)
{ {
on_closex(data); on_closex(data);
return FALSE;
} }
/* on_location */ /* on_location */
gboolean on_location(gpointer data) void on_location(gpointer data)
{ {
Browser * browser = data; Browser * browser = data;
browser_focus_location(browser); browser_focus_location(browser);
return FALSE;
} }
/* on_new_window */ /* on_new_window */
gboolean on_new_window(gpointer data) void on_new_window(gpointer data)
{ {
Browser * browser = data; Browser * browser = data;
browser_new_copy(browser); browser_new_copy(browser);
return FALSE;
} }
/* on_open_file */ /* on_open_file */
gboolean on_open_file(gpointer data) void on_open_file(gpointer data)
{ {
Browser * browser = data; Browser * browser = data;
browser_open(browser, NULL); browser_open(browser, NULL);
return FALSE;
} }

View File

@ -1,5 +1,5 @@
/* $Id$ */ /* $Id$ */
/* Copyright (c) 2006-2012 Pierre Pronchery <khorben@defora.org> */ /* Copyright (c) 2006-2013 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
@ -25,10 +25,10 @@
gboolean on_closex(gpointer data); gboolean on_closex(gpointer data);
/* accelerators */ /* accelerators */
gboolean on_close(gpointer data); void on_close(gpointer data);
gboolean on_location(gpointer data); void on_location(gpointer data);
gboolean on_new_window(gpointer data); void on_new_window(gpointer data);
gboolean on_open_file(gpointer data); void on_open_file(gpointer data);
/* file menu */ /* file menu */
void on_file_new_window(gpointer data); void on_file_new_window(gpointer data);