Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
b719e870
Commit
b719e870
authored
Sep 29, 2011
by
Sebastian Ramacher
Browse files
get rid of warnings
parent
a5669f6a
Changes
3
Hide whitespace changes
Inline
Side-by-side
callbacks.c
View file @
b719e870
...
...
@@ -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
(
GtkTreeModel
*
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
;
...
...
utils.c
View file @
b719e870
...
...
@@ -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
;
}
...
...
zathura.c
View file @
b719e870
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment