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
604d6877
Commit
604d6877
authored
Apr 26, 2012
by
Stephan Arts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide thumbnailbar when the only available image is deleted
parent
94bef9fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/image_list.c
src/image_list.c
+4
-1
No files found.
src/image_list.c
View file @
604d6877
...
...
@@ -575,6 +575,8 @@ rstto_image_list_remove_file (
rstto_image_list_iter_get_file
(
iter
->
data
),
r_file
)
)
{
image_list
->
priv
->
images
=
g_list_remove
(
image_list
->
priv
->
images
,
r_file
);
((
RsttoImageListIter
*
)(
iter
->
data
))
->
priv
->
r_file
=
NULL
;
g_signal_emit
(
G_OBJECT
(
iter
->
data
),
...
...
@@ -586,12 +588,13 @@ rstto_image_list_remove_file (
iter
=
g_slist_next
(
iter
);
}
image_list
->
priv
->
images
=
g_list_remove
(
image_list
->
priv
->
images
,
r_file
);
path_
=
gtk_tree_path_new
();
gtk_tree_path_append_index
(
path_
,
index_
);
gtk_tree_model_row_deleted
(
GTK_TREE_MODEL
(
image_list
),
path_
);
image_list
->
priv
->
images
=
g_list_remove
(
image_list
->
priv
->
images
,
r_file
);
iter
=
image_list
->
priv
->
iterators
;
while
(
iter
)
{
...
...
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