2010-11-10 20:31:15 +01:00
|
|
|
/* See LICENSE file for license and copyright information */
|
2010-11-10 20:47:53 +01:00
|
|
|
|
|
|
|
#ifndef CALLBACKS_H
|
|
|
|
#define CALLBACKS_H
|
|
|
|
|
2010-11-12 13:48:18 +01:00
|
|
|
#include <gtk/gtk.h>
|
2011-10-23 17:01:15 +02:00
|
|
|
#include <girara/types.h>
|
2010-11-12 13:48:18 +01:00
|
|
|
|
2011-09-29 17:05:54 +02:00
|
|
|
#include "zathura.h"
|
|
|
|
|
2011-02-01 15:48:16 +01:00
|
|
|
/**
|
|
|
|
* Quits the current zathura session
|
|
|
|
*
|
|
|
|
* @param widget The gtk window of zathura
|
|
|
|
* @param data NULL
|
|
|
|
* @return TRUE
|
|
|
|
*/
|
2010-11-12 13:48:18 +01:00
|
|
|
gboolean cb_destroy(GtkWidget* widget, gpointer data);
|
2011-02-01 15:48:16 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This function gets called when the buffer of girara changes
|
|
|
|
*
|
|
|
|
* @param session The girara session
|
|
|
|
*/
|
2010-11-13 12:40:48 +01:00
|
|
|
void buffer_changed(girara_session_t* session);
|
2011-02-01 15:48:16 +01:00
|
|
|
|
|
|
|
/**
|
2011-07-21 14:47:24 +02:00
|
|
|
* This function gets called when the value of the vertical scrollbars
|
2011-02-01 15:48:16 +01:00
|
|
|
* changes (e.g.: by scrolling, moving to another page)
|
|
|
|
*
|
|
|
|
* @param adjustment The vadjustment of the page view
|
|
|
|
* @param data NULL
|
|
|
|
*/
|
2010-12-29 11:46:13 +01:00
|
|
|
void cb_view_vadjustment_value_changed(GtkAdjustment *adjustment, gpointer data);
|
2011-07-21 14:47:24 +02:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2011-11-20 11:32:34 +01:00
|
|
|
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);
|
2010-11-12 13:48:18 +01:00
|
|
|
|
2011-09-29 17:05:54 +02:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2011-09-29 18:17:03 +02:00
|
|
|
void cb_index_row_activated(GtkTreeView* tree_view, GtkTreePath* path,
|
2011-09-29 17:05:54 +02:00
|
|
|
GtkTreeViewColumn* column, zathura_t* zathura);
|
|
|
|
|
2010-11-10 20:47:53 +01:00
|
|
|
#endif // CALLBACKS_H
|