+2008-06-10 Cosimo Cecchi <cosimoc@gnome.org>
+
+ * libdocument/ev-backends-manager.c: (ev_backends_manager_load):
+ * libdocument/ev-image.c: (ev_image_save_tmp):
+ * libdocument/ev-module.c: (ev_module_load):
+ * shell/ev-application.c: (ev_application_shutdown),
+ (ev_application_get_print_settings):
+ * shell/ev-sidebar-attachments.c:
+ (ev_sidebar_attachments_button_press),
+ (ev_sidebar_attachments_drag_data_get):
+ * shell/ev-window.c: (window_save_file_copy_ready_cb),
+ (ev_window_print_finished), (ev_window_print_send),
+ (ev_window_print_job_cb), (ev_window_cmd_help_contents),
+ (ev_window_preview_print_finished), (ev_window_do_preview_print),
+ (ev_window_cmd_preview_print):
+ * shell/main.c: (load_files_remote):
+ Fix some build warnings under GCC 4.3.0. (#537535).
+
2008-05-29 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-jobs.c: (ev_job_render_dispose):
dir = g_dir_open (EV_BACKENDSDIR, 0, &error);
if (!dir) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
return FALSE;
}
/* Erro saving image */
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
g_free (filename);
module->library = g_module_open (module->path, 0);
if (!module->library) {
- g_warning (g_module_error ());
+ g_warning ("%s", g_module_error ());
return FALSE;
}
/* extract symbols from the lib */
if (!g_module_symbol (module->library, "register_evince_backend",
(void *) ®ister_func)) {
- g_warning (g_module_error ());
+ g_warning ("%s", g_module_error ());
g_module_close (module->library);
return FALSE;
application->print_settings_file,
&error);
if (error) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
}
gtk_print_settings_new_from_file (application->print_settings_file, &error);
if (error) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
} else {
return application->print_settings;
ev_attachment_open (attachment, &error);
if (error) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
}
}
if (error) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
}
_("The file could not be saved as ā%sā."),
name);
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
- error->message);
+ "%s", error->message);
g_signal_connect (dialog, "response",
G_CALLBACK (gtk_widget_destroy),
NULL);
GTK_BUTTONS_OK,
_("Failed to print document"));
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
- error->message);
+ "%s", error->message);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
window, NULL);
} else {
ev_window_clear_print_job (window);
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
}
}
EvWindow *window)
{
if (job->error) {
- g_warning (job->error->message);
+ g_warning ("%s", job->error->message);
ev_window_clear_print_job (window);
return;
}
screen = gtk_widget_get_screen (GTK_WIDGET (ev_window));
gdk_spawn_command_line_on_screen (screen, command, &error);
if (error != NULL) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
}
g_free (command);
GTK_BUTTONS_OK,
_("Failed to print document"));
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
- error->message);
+ "%s", error->message);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
(GtkPrintJobCompleteFunc)ev_window_preview_print_finished,
window, NULL);
} else {
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
}
&error);
if (error) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
print_settings = NULL;
}
connection = dbus_g_bus_get (DBUS_BUS_STARTER, &error);
if (connection == NULL) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
return FALSE;
G_TYPE_UINT, timestamp,
G_TYPE_INVALID,
G_TYPE_INVALID)) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_clear_error (&error);
g_object_unref (remote_object);
dbus_g_connection_unref (connection);
G_TYPE_UINT, timestamp,
G_TYPE_INVALID,
G_TYPE_INVALID)) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_clear_error (&error);
g_free (uri);
continue;