Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zathura
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
111
Issues
111
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwmt
zathura
Commits
6599b921
Commit
6599b921
authored
Jan 05, 2014
by
Sebastian Ramacher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove more unused functions
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
3a0fe293
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
54 deletions
+0
-54
utils.c
utils.c
+0
-26
utils.h
utils.h
+0
-28
No files found.
utils.c
View file @
6599b921
...
...
@@ -23,21 +23,6 @@
#include "page.h"
#include "plugin.h"
const
char
*
file_get_extension
(
const
char
*
path
)
{
if
(
path
==
NULL
)
{
return
NULL
;
}
const
char
*
res
=
strrchr
(
path
,
'.'
);
if
(
res
==
NULL
)
{
return
NULL
;
}
return
res
+
1
;
}
bool
file_valid_extension
(
zathura_t
*
zathura
,
const
char
*
path
)
{
...
...
@@ -87,17 +72,6 @@ document_index_build(GtkTreeModel* model, GtkTreeIter* parent,
GIRARA_LIST_FOREACH_END
(
list
,
gchar
*
,
iter
,
name
);
}
void
page_calculate_offset
(
zathura_t
*
zathura
,
zathura_page_t
*
page
,
page_offset_t
*
offset
)
{
g_return_if_fail
(
page
!=
NULL
);
g_return_if_fail
(
offset
!=
NULL
);
GtkWidget
*
widget
=
zathura_page_get_widget
(
zathura
,
page
);
g_return_if_fail
(
gtk_widget_translate_coordinates
(
widget
,
zathura
->
ui
.
page_widget
,
0
,
0
,
&
(
offset
->
x
),
&
(
offset
->
y
))
==
true
);
}
zathura_rectangle_t
rotate_rectangle
(
zathura_rectangle_t
rectangle
,
unsigned
int
degree
,
double
height
,
double
width
)
{
...
...
utils.h
View file @
6599b921
...
...
@@ -17,14 +17,6 @@ typedef struct page_offset_s
int
y
;
}
page_offset_t
;
/**
* Returns the file extension of a path
*
* @param path Path to the file
* @return The file extension or NULL
*/
const
char
*
file_get_extension
(
const
char
*
path
);
/**
* This function checks if the file has a valid extension. A extension is
* evaluated as valid if it matches a supported filetype.
...
...
@@ -35,15 +27,6 @@ const char* file_get_extension(const char* path);
*/
bool
file_valid_extension
(
zathura_t
*
zathura
,
const
char
*
path
);
/**
* Executes a system command and saves its output into output
*
* @param argv The command
* @param output Pointer where the output will be saved
* @return true if no error occured, otherwise false
*/
bool
execute_command
(
char
*
const
argv
[],
char
**
output
);
/**
* Generates the document index based upon the list retreived from the document
* object.
...
...
@@ -54,17 +37,6 @@ bool execute_command(char* const argv[], char** output);
*/
void
document_index_build
(
GtkTreeModel
*
model
,
GtkTreeIter
*
parent
,
girara_tree_node_t
*
tree
);
/**
* Calculates the offset of the page to the top of the viewing area as
* well as to the left side of it. The result has to be freed.
*
* @param zathura Zathura session
* @param page The Page
* @param offset Applied offset
* @return The calculated offset or NULL if an error occured
*/
void
page_calculate_offset
(
zathura_t
*
zathura
,
zathura_page_t
*
page
,
page_offset_t
*
offset
);
/**
* Rotate a rectangle by 0, 90, 180 or 270 degree
*
...
...
Write
Preview
Markdown
is supported
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