zathura
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
callbacks.h
Go to the documentation of this file.
1 /* See LICENSE file for license and copyright information */
2 
3 #ifndef CALLBACKS_H
4 #define CALLBACKS_H
5 
6 #include <gtk/gtk.h>
7 #include <girara/types.h>
8 #include <girara/macros.h>
9 
10 #include "internal.h"
11 #include "document.h"
12 #include "zathura.h"
13 
21 gboolean cb_destroy(GtkWidget* widget, zathura_t* zathura);
22 
28 void cb_buffer_changed(girara_session_t* session);
29 
37 void cb_view_vadjustment_value_changed(GtkAdjustment *adjustment, gpointer data);
38 
50 void cb_view_hadjustment_changed(GtkAdjustment *adjustment, gpointer data);
51 
62 void cb_view_vadjustment_changed(GtkAdjustment *adjustment, gpointer data);
63 
64 /* This function gets called when the value of the adjustment changes.
65  *
66  * It updates the value of the tracking adjustment, only if the bounds of the
67  * adjustment have not changed (if they did change,
68  * cb_adjustment_track_bounds() will take care of updating everything).
69  *
70  * @param adjustment The adjustment instance
71  * @param data The tracking adjustment instance
72  */
73 void cb_adjustment_track_value(GtkAdjustment* adjustment, gpointer data);
74 
75 /* This function gets called when the bounds or the page_size of the adjustment
76  * change.
77  *
78  * It updates the value, bounds and page_size of the tracking adjustment.
79  *
80  * @param adjustment The adjustment instance
81  * @param data The tracking adjustment instance
82  */
83 void cb_adjustment_track_bounds(GtkAdjustment* adjustment, gpointer data);
84 
95 void cb_pages_per_row_value_changed(girara_session_t* session, const char* name,
96  girara_setting_type_t type, void* value, void* data);
107 void cb_first_page_column_value_changed(girara_session_t* session, const char* name,
108  girara_setting_type_t type, void* value, void* data);
109 
118 void cb_index_row_activated(GtkTreeView* tree_view, GtkTreePath* path,
119  GtkTreeViewColumn* column, void* zathura);
120 
128 bool cb_sc_follow(GtkEntry* entry, girara_session_t* session);
129 
137 bool cb_sc_display_link(GtkEntry* entry, girara_session_t* session);
138 
148 void cb_file_monitor(GFileMonitor* monitor, GFile* file, GFile* other_file,
149  GFileMonitorEvent event, girara_session_t* session);
150 
158 bool cb_password_dialog(GtkEntry* entry, zathura_password_dialog_info_t* dialog);
159 
168 bool cb_view_resized(GtkWidget* widget, GtkAllocation* allocation, zathura_t* zathura);
169 
179 void cb_setting_recolor_change(girara_session_t* session, const char* name,
180  girara_setting_type_t type, void* value, void* data);
181 
191 void cb_setting_recolor_keep_hue_change(girara_session_t* session, const char* name,
192  girara_setting_type_t type, void* value, void* data);
193 
194 
203 bool cb_unknown_command(girara_session_t* session, const char* input);
204 
205 #endif // CALLBACKS_H