zathura/shortcuts.c

162 lines
2.8 KiB
C
Raw Normal View History

/* See LICENSE file for license and copyright information */
2010-11-12 13:48:18 +01:00
#include <girara.h>
#include <gtk/gtk.h>
#include "callbacks.h"
#include "shortcuts.h"
2010-11-13 12:40:48 +01:00
#include "zathura.h"
2010-11-13 10:05:28 +01:00
bool
sc_abort(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 12:40:48 +01:00
g_return_val_if_fail(session != NULL, false);
girara_mode_set(session, NORMAL);
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_adjust_window(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_change_buffer(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_change_mode(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 12:40:48 +01:00
g_return_val_if_fail(session != NULL, false);
girara_mode_set(session, argument->n);
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_focus_inputbar(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 12:40:48 +01:00
g_return_val_if_fail(session != NULL, false);
if(!(GTK_WIDGET_VISIBLE(GTK_WIDGET(session->gtk.inputbar))))
gtk_widget_show(GTK_WIDGET(session->gtk.inputbar));
if(argument->data)
{
gtk_entry_set_text(session->gtk.inputbar, (char*) argument->data);
gtk_widget_grab_focus(GTK_WIDGET(session->gtk.inputbar));
gtk_editable_set_position(GTK_EDITABLE(session->gtk.inputbar), -1);
}
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_follow(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_goto(girara_session_t* session, girara_argument_t* argument)
{
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_navigate(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_recolor(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_reload(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_rotate(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_scroll(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_search(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_switch_goto_mode(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_navigate_index(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_toggle_index(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_toggle_inputbar(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_toggle_fullscreen(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_toggle_statusbar(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_quit(girara_session_t* session, girara_argument_t* argument)
{
2010-11-12 13:48:18 +01:00
girara_argument_t arg = { GIRARA_HIDE, NULL };
girara_isc_completion(session, &arg);
cb_destroy(NULL, NULL);
2010-11-12 13:48:18 +01:00
gtk_main_quit();
2010-11-13 10:05:28 +01:00
return false;
}
2010-11-13 10:05:28 +01:00
bool
sc_zoom(girara_session_t* session, girara_argument_t* argument)
{
2010-11-13 10:05:28 +01:00
return false;
}