From de7131a811c13475f3ac87b37880d72b6304a334 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Wed, 16 Jun 2010 21:50:28 +0200 Subject: [PATCH] Added blank map function --- config.def.h | 5 +++-- zathura.c | 10 ++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index be2be7d..548cec2 100644 --- a/config.def.h +++ b/config.def.h @@ -146,18 +146,19 @@ MouseScrollEvent mouse_scroll_events[] = { /* commands */ Command commands[] = { /* command, abbreviation, function, completion, description */ - {"bmark", "b", cmd_bookmark, 0, "Bookmark current page" }, {"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" }, {"coffset", 0, cmd_correct_offset, 0, "Correct page offset" }, {"delbmark", 0, cmd_delete_bookmark, cc_bookmark, "Bookmark current page" }, {"export", "e", cmd_export, cc_export, "Export images or attached files" }, {"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" }, {"print", "p", cmd_print, cc_print, "Print the document" }, + {"quit", "q", cmd_quit, 0, "Quit zathura" }, {"rotate", "r", cmd_rotate, 0, "Rotate the page" }, {"set", "s", cmd_set, cc_set, "Set an option" }, - {"quit", "q", cmd_quit, 0, "Quit zathura" }, {"write", "w", cmd_save, 0, "Save the document" }, }; diff --git a/zathura.c b/zathura.c index a9391e8..8ff9ef5 100644 --- a/zathura.c +++ b/zathura.c @@ -346,6 +346,7 @@ gboolean cmd_correct_offset(int, char**); gboolean cmd_delete_bookmark(int, char**); gboolean cmd_export(int, char**); gboolean cmd_info(int, char**); +gboolean cmd_map(int, char**); gboolean cmd_open(int, char**); gboolean cmd_print(int, char**); gboolean cmd_rotate(int, char**); @@ -2680,6 +2681,15 @@ cmd_info(int argc, char** argv) return FALSE; } +gboolean +cmd_map(int argc, char** argv) +{ + if(argc < 2) + return FALSE; + + return TRUE; +} + gboolean cmd_open(int argc, char** argv) {