mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-11 00:23:47 +01:00
Merge branch 'develop' of pwmt.org:zathura into develop
This commit is contained in:
commit
435727672c
@ -98,8 +98,9 @@ cb_pages_per_row_value_changed(girara_session_t* UNUSED(session), const char* UN
|
||||
|
||||
void
|
||||
cb_index_row_activated(GtkTreeView* tree_view, GtkTreePath* path,
|
||||
GtkTreeViewColumn* UNUSED(column), zathura_t* zathura)
|
||||
GtkTreeViewColumn* UNUSED(column), void* data)
|
||||
{
|
||||
zathura_t* zathura = data;
|
||||
if (tree_view == NULL || zathura == NULL || zathura->ui.session == NULL) {
|
||||
return;
|
||||
}
|
||||
|
@ -5,8 +5,7 @@
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <girara/types.h>
|
||||
|
||||
#include "zathura.h"
|
||||
#include <girara/macros.h>
|
||||
|
||||
/**
|
||||
* Quits the current zathura session
|
||||
@ -39,7 +38,7 @@ void cb_view_vadjustment_value_changed(GtkAdjustment *adjustment, gpointer data)
|
||||
* @param session The current girara session
|
||||
* @param setting The "pages-per-row" setting
|
||||
*/
|
||||
void cb_pages_per_row_value_changed(girara_session_t* UNUSED(session), const char* UNUSED(name), girara_setting_type_t UNUSED(type), void* value, void* data);
|
||||
void cb_pages_per_row_value_changed(girara_session_t* GIRARA_UNUSED(session), const char* GIRARA_UNUSED(name), girara_setting_type_t GIRARA_UNUSED(type), void* value, void* data);
|
||||
|
||||
/**
|
||||
* Called when an index element is activated (e.g.: double click)
|
||||
@ -50,6 +49,6 @@ void cb_pages_per_row_value_changed(girara_session_t* UNUSED(session), const cha
|
||||
* @param zathura Zathura session
|
||||
*/
|
||||
void cb_index_row_activated(GtkTreeView* tree_view, GtkTreePath* path,
|
||||
GtkTreeViewColumn* column, zathura_t* zathura);
|
||||
GtkTreeViewColumn* column, void* zathura);
|
||||
|
||||
#endif // CALLBACKS_H
|
||||
|
@ -270,7 +270,7 @@ cmd_savef(girara_session_t* session, girara_list_t* argument_list)
|
||||
}
|
||||
|
||||
bool
|
||||
cmd_search(girara_session_t* session, char* input, girara_argument_t* argument)
|
||||
cmd_search(girara_session_t* session, const char* input, girara_argument_t* argument)
|
||||
{
|
||||
g_return_val_if_fail(session != NULL, false);
|
||||
g_return_val_if_fail(input != NULL, false);
|
||||
|
@ -104,6 +104,6 @@ bool cmd_savef(girara_session_t* session, girara_list_t* argument_list);
|
||||
* @param argument Passed argument
|
||||
* @return true if no error occured
|
||||
*/
|
||||
bool cmd_search(girara_session_t* session, char* input, girara_argument_t* argument);
|
||||
bool cmd_search(girara_session_t* session, const char* input, girara_argument_t* argument);
|
||||
|
||||
#endif // COMMANDS_H
|
||||
|
Loading…
Reference in New Issue
Block a user