Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ristretto
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Avinash Sonawane
ristretto
Commits
c0de3470
Commit
c0de3470
authored
Aug 31, 2011
by
Stephan Arts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move to the next image when closing the first image from the image_list
parent
216b407e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/image_list.c
src/image_list.c
+8
-1
No files found.
src/image_list.c
View file @
c0de3470
...
...
@@ -260,7 +260,14 @@ rstto_image_list_remove_file (RsttoImageList *image_list, GFile *file)
{
if
(
g_file_equal
(
rstto_image_list_iter_get_file
(
iter
->
data
),
file
))
{
rstto_image_list_iter_previous
(
iter
->
data
);
if
(
0
==
rstto_image_list_iter_get_position
(
iter
->
data
))
{
rstto_image_list_iter_next
(
iter
->
data
);
}
else
{
rstto_image_list_iter_previous
(
iter
->
data
);
}
/* If the image is still the same,
* it's a single item list,
* and we should force the image in this iter to NULL
...
...
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