mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 10:26:00 +01:00
Merge branch 'develop' of pwmt.org:zathura into develop
Conflicts: callbacks.c
This commit is contained in:
commit
88e31c0c24
3 changed files with 7 additions and 4 deletions
|
@ -9,6 +9,7 @@
|
|||
#include "render.h"
|
||||
#include "document.h"
|
||||
#include "utils.h"
|
||||
#include "shortcuts.h"
|
||||
|
||||
gboolean
|
||||
cb_destroy(GtkWidget* UNUSED(widget), gpointer UNUSED(data))
|
||||
|
@ -92,7 +93,7 @@ cb_pages_per_row_value_changed(girara_session_t* UNUSED(session), girara_setting
|
|||
|
||||
void
|
||||
cb_index_row_activated(GtkTreeView* tree_view, GtkTreePath* path,
|
||||
GtkTreeViewColumn* column, zathura_t* zathura)
|
||||
GtkTreeViewColumn* UNUSED(column), zathura_t* zathura)
|
||||
{
|
||||
if (tree_view == NULL || zathura == NULL || zathura->ui.session == NULL) {
|
||||
return;
|
||||
|
|
2
utils.c
2
utils.c
|
@ -68,7 +68,7 @@ file_valid_extension(zathura_t* zathura, const char* path)
|
|||
}
|
||||
GIRARA_LIST_FOREACH_END(zathura->plugins.type_plugin_mapping, zathura_type_plugin_mapping_t*, iter, mapping)
|
||||
|
||||
g_free(content_type);
|
||||
g_free((void*)content_type);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -63,11 +63,13 @@ zathura_init(int argc, char* argv[])
|
|||
|
||||
/* plugins */
|
||||
zathura->plugins.plugins = girara_list_new();
|
||||
girara_list_set_free_function(zathura->plugins.plugins, zathura_document_plugin_free);
|
||||
girara_list_set_free_function(zathura->plugins.plugins,
|
||||
(girara_free_function_t)zathura_document_plugin_free);
|
||||
zathura->plugins.path = girara_list_new();
|
||||
girara_list_set_free_function(zathura->plugins.path, g_free);
|
||||
zathura->plugins.type_plugin_mapping = girara_list_new();
|
||||
girara_list_set_free_function(zathura->plugins.type_plugin_mapping, zathura_type_plugin_mapping_free);
|
||||
girara_list_set_free_function(zathura->plugins.type_plugin_mapping,
|
||||
(girara_free_function_t)zathura_type_plugin_mapping_free);
|
||||
|
||||
if (config_dir) {
|
||||
zathura->config.config_dir = g_strdup(config_dir);
|
||||
|
|
Loading…
Reference in a new issue