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
250c575f
Commit
250c575f
authored
Jan 05, 2014
by
Sebastian Ramacher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CS
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
dcc2e9f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
utils.c
utils.c
+16
-16
No files found.
utils.c
View file @
250c575f
...
...
@@ -244,26 +244,26 @@ replace_substring(const char* string, const char* old, const char* new)
GdkAtom
*
get_selection
(
zathura_t
*
zathura
)
{
g_return_val_if_fail
(
zathura
!=
NULL
,
NULL
);
g_return_val_if_fail
(
zathura
!=
NULL
,
NULL
);
char
*
value
;
girara_setting_get
(
zathura
->
ui
.
session
,
"selection-clipboard"
,
&
value
);
char
*
value
;
girara_setting_get
(
zathura
->
ui
.
session
,
"selection-clipboard"
,
&
value
);
GdkAtom
*
selection
=
g_malloc
(
sizeof
(
GdkAtom
));
GdkAtom
*
selection
=
g_malloc
(
sizeof
(
GdkAtom
));
if
(
strcmp
(
value
,
"primary"
)
==
0
)
{
*
selection
=
GDK_SELECTION_PRIMARY
;
}
else
if
(
strcmp
(
value
,
"clipboard"
)
==
0
)
{
*
selection
=
GDK_SELECTION_CLIPBOARD
;
}
else
{
girara_error
(
"Invalid value for the selection-clipboard setting"
);
g_free
(
value
);
g_free
(
selection
);
if
(
strcmp
(
value
,
"primary"
)
==
0
)
{
*
selection
=
GDK_SELECTION_PRIMARY
;
}
else
if
(
strcmp
(
value
,
"clipboard"
)
==
0
)
{
*
selection
=
GDK_SELECTION_CLIPBOARD
;
}
else
{
girara_error
(
"Invalid value for the selection-clipboard setting"
);
g_free
(
value
);
g_free
(
selection
);
return
NULL
;
}
return
NULL
;
}
g_free
(
value
);
g_free
(
value
);
return
selection
;
return
selection
;
}
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