Merge branch 'develop' of pwmt.org:zathura into develop

Conflicts:
	callbacks.c
This commit is contained in:
Moritz Lipp 2011-09-29 18:17:38 +02:00
commit 88e31c0c24
3 changed files with 7 additions and 4 deletions

View file

@ -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;

View file

@ -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;
}

View file

@ -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);