Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
gThumb
Commits
08ede958
Commit
08ede958
authored
Oct 26, 2017
by
Paolo Bacchilega
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exporters: fixed run-time warnings when no file is selected
parent
4f11727c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
extensions/photobucket/dlg-export-to-photobucket.c
extensions/photobucket/dlg-export-to-photobucket.c
+2
-1
extensions/picasaweb/dlg-export-to-picasaweb.c
extensions/picasaweb/dlg-export-to-picasaweb.c
+4
-4
No files found.
extensions/photobucket/dlg-export-to-photobucket.c
View file @
08ede958
...
...
@@ -80,7 +80,8 @@ destroy_dialog (DialogData *data)
_g_object_unref
(
data
->
album
);
_g_object_list_unref
(
data
->
albums
);
_g_object_unref
(
data
->
builder
);
gtk_widget_destroy
(
data
->
progress_dialog
);
if
(
data
->
progress_dialog
!=
NULL
)
gtk_widget_destroy
(
data
->
progress_dialog
);
_g_object_list_unref
(
data
->
file_list
);
_g_object_unref
(
data
->
location
);
g_free
(
data
);
...
...
extensions/picasaweb/dlg-export-to-picasaweb.c
View file @
08ede958
...
...
@@ -71,12 +71,14 @@ destroy_dialog (DialogData *data)
{
if
(
data
->
dialog
!=
NULL
)
gtk_widget_destroy
(
data
->
dialog
);
gth_task_completed
(
GTH_TASK
(
data
->
service
),
NULL
);
if
(
data
->
service
!=
NULL
)
gth_task_completed
(
GTH_TASK
(
data
->
service
),
NULL
);
_g_object_unref
(
data
->
cancellable
);
_g_object_unref
(
data
->
album
);
_g_object_unref
(
data
->
service
);
_g_object_list_unref
(
data
->
albums
);
gtk_widget_destroy
(
data
->
progress_dialog
);
if
(
data
->
progress_dialog
!=
NULL
)
gtk_widget_destroy
(
data
->
progress_dialog
);
_g_object_unref
(
data
->
builder
);
_g_object_list_unref
(
data
->
file_list
);
_g_object_unref
(
data
->
location
);
...
...
@@ -489,8 +491,6 @@ dlg_export_to_picasaweb (GthBrowser *browser,
if
(
data
->
file_list
==
NULL
)
{
GError
*
error
;
gth_task_dialog
(
GTH_TASK
(
data
->
service
),
TRUE
,
NULL
);
error
=
g_error_new_literal
(
GTH_ERROR
,
GTH_ERROR_GENERIC
,
_
(
"No valid file selected."
));
_gtk_error_dialog_from_gerror_show
(
GTK_WINDOW
(
browser
),
_
(
"Could not export the files"
),
error
);
g_clear_error
(
&
error
);
...
...
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