callbacks.h 1.38 KB
Newer Older
Moritz Lipp's avatar
Moritz Lipp committed
1
/* See LICENSE file for license and copyright information */
2
3
4
5

#ifndef CALLBACKS_H
#define CALLBACKS_H

Moritz Lipp's avatar
Moritz Lipp committed
6
#include <gtk/gtk.h>
Moritz Lipp's avatar
Moritz Lipp committed
7
#include <girara.h>
Moritz Lipp's avatar
Moritz Lipp committed
8

9
10
#include "zathura.h"

Moritz Lipp's avatar
Moritz Lipp committed
11
12
13
14
15
16
17
/**
 * Quits the current zathura session
 *
 * @param widget The gtk window of zathura
 * @param data NULL
 * @return TRUE
 */
Moritz Lipp's avatar
Moritz Lipp committed
18
gboolean cb_destroy(GtkWidget* widget, gpointer data);
Moritz Lipp's avatar
Moritz Lipp committed
19
20
21
22
23
24

/**
 * This function gets called when the buffer of girara changes
 *
 * @param session The girara session
 */
Moritz Lipp's avatar
Moritz Lipp committed
25
void buffer_changed(girara_session_t* session);
Moritz Lipp's avatar
Moritz Lipp committed
26
27

/**
28
 * This function gets called when the value of the vertical scrollbars
Moritz Lipp's avatar
Moritz Lipp committed
29
30
31
32
33
 * changes (e.g.: by scrolling, moving to another page)
 *
 * @param adjustment The vadjustment of the page view
 * @param data NULL
 */
34
void cb_view_vadjustment_value_changed(GtkAdjustment *adjustment, gpointer data);
35
36
37
38
39
40
41
42
/**
 * This function gets called when the value of the "pages-per-row"
 * variable changes
 *
 * @param session The current girara session
 * @param setting The "pages-per-row" setting
 */
void cb_pages_per_row_value_changed(girara_session_t* session, girara_setting_t* setting);
Moritz Lipp's avatar
Moritz Lipp committed
43

44
45
46
47
48
49
50
51
/**
 * Called when an index element is activated (e.g.: double click)
 *
 * @param tree_view Tree view
 * @param path Path
 * @param column Column
 * @param zathura Zathura session
 */
Moritz Lipp's avatar
Moritz Lipp committed
52
void cb_index_row_activated(GtkTreeView* tree_view, GtkTreePath* path,
53
54
    GtkTreeViewColumn* column, zathura_t* zathura);

55
#endif // CALLBACKS_H