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
fe8798d4
Commit
fe8798d4
authored
Apr 28, 2012
by
Stephan Arts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve variable-naming and add white-space
parent
564dfb88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
28 deletions
+29
-28
src/file.c
src/file.c
+28
-28
src/image_list.c
src/image_list.c
+1
-0
No files found.
src/file.c
View file @
fe8798d4
...
...
@@ -134,9 +134,9 @@ struct _RsttoFilePriv
static
void
rstto_file_init
(
GObject
*
object
)
{
RsttoFile
*
file
=
RSTTO_FILE
(
object
);
RsttoFile
*
r_
file
=
RSTTO_FILE
(
object
);
file
->
priv
=
g_new0
(
RsttoFilePriv
,
1
);
r_
file
->
priv
=
g_new0
(
RsttoFilePriv
,
1
);
}
...
...
@@ -173,55 +173,55 @@ rstto_file_class_init (GObjectClass *object_class)
static
void
rstto_file_dispose
(
GObject
*
object
)
{
RsttoFile
*
file
=
RSTTO_FILE
(
object
);
RsttoFile
*
r_
file
=
RSTTO_FILE
(
object
);
gint
i
=
0
;
if
(
file
->
priv
)
if
(
r_
file
->
priv
)
{
if
(
file
->
priv
->
file
)
if
(
r_
file
->
priv
->
file
)
{
g_object_unref
(
file
->
priv
->
file
);
file
->
priv
->
file
=
NULL
;
g_object_unref
(
r_
file
->
priv
->
file
);
r_
file
->
priv
->
file
=
NULL
;
}
if
(
file
->
priv
->
display_name
)
if
(
r_
file
->
priv
->
display_name
)
{
g_free
(
file
->
priv
->
display_name
);
file
->
priv
->
display_name
=
NULL
;
g_free
(
r_
file
->
priv
->
display_name
);
r_
file
->
priv
->
display_name
=
NULL
;
}
if
(
file
->
priv
->
content_type
)
if
(
r_
file
->
priv
->
content_type
)
{
g_free
(
file
->
priv
->
content_type
);
file
->
priv
->
content_type
=
NULL
;
g_free
(
r_
file
->
priv
->
content_type
);
r_
file
->
priv
->
content_type
=
NULL
;
}
if
(
file
->
priv
->
path
)
if
(
r_
file
->
priv
->
path
)
{
g_free
(
file
->
priv
->
path
);
file
->
priv
->
path
=
NULL
;
g_free
(
r_
file
->
priv
->
path
);
r_
file
->
priv
->
path
=
NULL
;
}
if
(
file
->
priv
->
thumbnail_path
)
if
(
r_
file
->
priv
->
thumbnail_path
)
{
g_free
(
file
->
priv
->
thumbnail_path
);
file
->
priv
->
thumbnail_path
=
NULL
;
g_free
(
r_
file
->
priv
->
thumbnail_path
);
r_
file
->
priv
->
thumbnail_path
=
NULL
;
}
if
(
file
->
priv
->
uri
)
if
(
r_
file
->
priv
->
uri
)
{
g_free
(
file
->
priv
->
uri
);
file
->
priv
->
uri
=
NULL
;
g_free
(
r_
file
->
priv
->
uri
);
r_
file
->
priv
->
uri
=
NULL
;
}
for
(
i
=
0
;
i
<
THUMBNAIL_SIZE_COUNT
;
++
i
)
{
if
(
file
->
priv
->
thumbnails
[
i
])
if
(
r_
file
->
priv
->
thumbnails
[
i
])
{
g_object_unref
(
file
->
priv
->
thumbnails
[
i
]);
file
->
priv
->
thumbnails
[
i
]
=
NULL
;
g_object_unref
(
r_
file
->
priv
->
thumbnails
[
i
]);
r_
file
->
priv
->
thumbnails
[
i
]
=
NULL
;
}
}
g_free
(
file
->
priv
);
file
->
priv
=
NULL
;
g_free
(
r_
file
->
priv
);
r_
file
->
priv
=
NULL
;
open_files
=
g_list_remove_all
(
open_files
,
file
);
open_files
=
g_list_remove_all
(
open_files
,
r_
file
);
}
}
...
...
src/image_list.c
View file @
fe8798d4
...
...
@@ -383,6 +383,7 @@ static void
rstto_image_list_dispose
(
GObject
*
object
)
{
RsttoImageList
*
image_list
=
RSTTO_IMAGE_LIST
(
object
);
if
(
NULL
!=
image_list
->
priv
)
{
if
(
image_list
->
priv
->
settings
)
...
...
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