Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
...
@@ -134,9 +134,9 @@ struct _RsttoFilePriv
static
void
static
void
rstto_file_init
(
GObject
*
object
)
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)
...
@@ -173,55 +173,55 @@ rstto_file_class_init (GObjectClass *object_class)
static
void
static
void
rstto_file_dispose
(
GObject
*
object
)
rstto_file_dispose
(
GObject
*
object
)
{
{
RsttoFile
*
file
=
RSTTO_FILE
(
object
);
RsttoFile
*
r_
file
=
RSTTO_FILE
(
object
);
gint
i
=
0
;
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
);
g_object_unref
(
r_
file
->
priv
->
file
);
file
->
priv
->
file
=
NULL
;
r_
file
->
priv
->
file
=
NULL
;
}
}
if
(
file
->
priv
->
display_name
)
if
(
r_
file
->
priv
->
display_name
)
{
{
g_free
(
file
->
priv
->
display_name
);
g_free
(
r_
file
->
priv
->
display_name
);
file
->
priv
->
display_name
=
NULL
;
r_
file
->
priv
->
display_name
=
NULL
;
}
}
if
(
file
->
priv
->
content_type
)
if
(
r_
file
->
priv
->
content_type
)
{
{
g_free
(
file
->
priv
->
content_type
);
g_free
(
r_
file
->
priv
->
content_type
);
file
->
priv
->
content_type
=
NULL
;
r_
file
->
priv
->
content_type
=
NULL
;
}
}
if
(
file
->
priv
->
path
)
if
(
r_
file
->
priv
->
path
)
{
{
g_free
(
file
->
priv
->
path
);
g_free
(
r_
file
->
priv
->
path
);
file
->
priv
->
path
=
NULL
;
r_
file
->
priv
->
path
=
NULL
;
}
}
if
(
file
->
priv
->
thumbnail_path
)
if
(
r_
file
->
priv
->
thumbnail_path
)
{
{
g_free
(
file
->
priv
->
thumbnail_path
);
g_free
(
r_
file
->
priv
->
thumbnail_path
);
file
->
priv
->
thumbnail_path
=
NULL
;
r_
file
->
priv
->
thumbnail_path
=
NULL
;
}
}
if
(
file
->
priv
->
uri
)
if
(
r_
file
->
priv
->
uri
)
{
{
g_free
(
file
->
priv
->
uri
);
g_free
(
r_
file
->
priv
->
uri
);
file
->
priv
->
uri
=
NULL
;
r_
file
->
priv
->
uri
=
NULL
;
}
}
for
(
i
=
0
;
i
<
THUMBNAIL_SIZE_COUNT
;
++
i
)
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
]);
g_object_unref
(
r_
file
->
priv
->
thumbnails
[
i
]);
file
->
priv
->
thumbnails
[
i
]
=
NULL
;
r_
file
->
priv
->
thumbnails
[
i
]
=
NULL
;
}
}
}
}
g_free
(
file
->
priv
);
g_free
(
r_
file
->
priv
);
file
->
priv
=
NULL
;
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
...
@@ -383,6 +383,7 @@ static void
rstto_image_list_dispose
(
GObject
*
object
)
rstto_image_list_dispose
(
GObject
*
object
)
{
{
RsttoImageList
*
image_list
=
RSTTO_IMAGE_LIST
(
object
);
RsttoImageList
*
image_list
=
RSTTO_IMAGE_LIST
(
object
);
if
(
NULL
!=
image_list
->
priv
)
if
(
NULL
!=
image_list
->
priv
)
{
{
if
(
image_list
->
priv
->
settings
)
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