Added blank map function

This commit is contained in:
Moritz Lipp 2010-06-16 21:50:28 +02:00
parent 5ac14daf6b
commit de7131a811
2 changed files with 13 additions and 2 deletions

View file

@ -146,18 +146,19 @@ MouseScrollEvent mouse_scroll_events[] = {
/* commands */ /* commands */
Command commands[] = { Command commands[] = {
/* command, abbreviation, function, completion, description */ /* command, abbreviation, function, completion, description */
{"bmark", "b", cmd_bookmark, 0, "Bookmark current page" },
{"blist", 0, cmd_open_bookmark, cc_bookmark, "List and open bookmark" }, {"blist", 0, cmd_open_bookmark, cc_bookmark, "List and open bookmark" },
{"bmark", "b", cmd_bookmark, 0, "Bookmark current page" },
{"close", "c", cmd_close, 0, "Close current file" }, {"close", "c", cmd_close, 0, "Close current file" },
{"coffset", 0, cmd_correct_offset, 0, "Correct page offset" }, {"coffset", 0, cmd_correct_offset, 0, "Correct page offset" },
{"delbmark", 0, cmd_delete_bookmark, cc_bookmark, "Bookmark current page" }, {"delbmark", 0, cmd_delete_bookmark, cc_bookmark, "Bookmark current page" },
{"export", "e", cmd_export, cc_export, "Export images or attached files" }, {"export", "e", cmd_export, cc_export, "Export images or attached files" },
{"info", "i", cmd_info, 0, "Show information about the document" }, {"info", "i", cmd_info, 0, "Show information about the document" },
{"map", "m", cmd_map, 0, "Map keybinding to a function" },
{"open", "o", cmd_open, cc_open, "Open a file" }, {"open", "o", cmd_open, cc_open, "Open a file" },
{"print", "p", cmd_print, cc_print, "Print the document" }, {"print", "p", cmd_print, cc_print, "Print the document" },
{"quit", "q", cmd_quit, 0, "Quit zathura" },
{"rotate", "r", cmd_rotate, 0, "Rotate the page" }, {"rotate", "r", cmd_rotate, 0, "Rotate the page" },
{"set", "s", cmd_set, cc_set, "Set an option" }, {"set", "s", cmd_set, cc_set, "Set an option" },
{"quit", "q", cmd_quit, 0, "Quit zathura" },
{"write", "w", cmd_save, 0, "Save the document" }, {"write", "w", cmd_save, 0, "Save the document" },
}; };

View file

@ -346,6 +346,7 @@ gboolean cmd_correct_offset(int, char**);
gboolean cmd_delete_bookmark(int, char**); gboolean cmd_delete_bookmark(int, char**);
gboolean cmd_export(int, char**); gboolean cmd_export(int, char**);
gboolean cmd_info(int, char**); gboolean cmd_info(int, char**);
gboolean cmd_map(int, char**);
gboolean cmd_open(int, char**); gboolean cmd_open(int, char**);
gboolean cmd_print(int, char**); gboolean cmd_print(int, char**);
gboolean cmd_rotate(int, char**); gboolean cmd_rotate(int, char**);
@ -2680,6 +2681,15 @@ cmd_info(int argc, char** argv)
return FALSE; return FALSE;
} }
gboolean
cmd_map(int argc, char** argv)
{
if(argc < 2)
return FALSE;
return TRUE;
}
gboolean gboolean
cmd_open(int argc, char** argv) cmd_open(int argc, char** argv)
{ {