mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 22:53:47 +01:00
reuse GIRARA_UNUSED
This commit is contained in:
parent
777e19baf4
commit
2cb31a61ea
@ -98,8 +98,9 @@ cb_pages_per_row_value_changed(girara_session_t* UNUSED(session), const char* UN
|
|||||||
|
|
||||||
void
|
void
|
||||||
cb_index_row_activated(GtkTreeView* tree_view, GtkTreePath* path,
|
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) {
|
if (tree_view == NULL || zathura == NULL || zathura->ui.session == NULL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <girara/types.h>
|
#include <girara/types.h>
|
||||||
|
#include <girara/macros.h>
|
||||||
#include "zathura.h"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Quits the current zathura session
|
* 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 session The current girara session
|
||||||
* @param setting The "pages-per-row" setting
|
* @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)
|
* 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
|
* @param zathura Zathura session
|
||||||
*/
|
*/
|
||||||
void cb_index_row_activated(GtkTreeView* tree_view, GtkTreePath* path,
|
void cb_index_row_activated(GtkTreeView* tree_view, GtkTreePath* path,
|
||||||
GtkTreeViewColumn* column, zathura_t* zathura);
|
GtkTreeViewColumn* column, void* zathura);
|
||||||
|
|
||||||
#endif // CALLBACKS_H
|
#endif // CALLBACKS_H
|
||||||
|
Loading…
Reference in New Issue
Block a user