]> www.fi.muni.cz Git - evince.git/commitdiff
Fix some build warnings under GCC 4.3.0. (#537535).
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 10 Jun 2008 18:10:50 +0000 (18:10 +0000)
committerCosimo Cecchi <cosimoc@src.gnome.org>
Tue, 10 Jun 2008 18:10:50 +0000 (18:10 +0000)
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).

svn path=/trunk/; revision=3049

ChangeLog
libdocument/ev-backends-manager.c
libdocument/ev-image.c
libdocument/ev-module.c
shell/ev-application.c
shell/ev-sidebar-attachments.c
shell/ev-window.c
shell/main.c

index 893cb951febbdc6d6c012769378599afe2d11c6a..ad55bbe981dee1c18630e7137f8ffbcf89a2390f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+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):
index 28672dfcc78c433f74c720667b2f799fc84d263d..505d5c4d102f0adfbdf9bf048d39aeba648e4143 100644 (file)
@@ -118,7 +118,7 @@ ev_backends_manager_load (void)
 
        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;
index 1fa6bfd6dd34c7515121a1aaa2e2b0be4f370cee..fa4cccf5a16018a1843bc2ed0f640c67d4b9150a 100644 (file)
@@ -152,7 +152,7 @@ ev_image_save_tmp (EvImage   *image,
        }
 
        /* Erro saving image */
-       g_warning (error->message);
+       g_warning ("%s", error->message);
        g_error_free (error);
        g_free (filename);
 
index f9860a2f6bfcc35eff36df78169e1c9e1a397216..65627ab1643ab09c68e4082c2a1c35d662ce3560 100644 (file)
@@ -76,7 +76,7 @@ ev_module_load (GTypeModule *gmodule)
         module->library = g_module_open (module->path, 0);
 
         if (!module->library) {
-                g_warning (g_module_error ());
+                g_warning ("%s", g_module_error ());
 
                 return FALSE;
         }
@@ -84,7 +84,7 @@ ev_module_load (GTypeModule *gmodule)
         /* extract symbols from the lib */
         if (!g_module_symbol (module->library, "register_evince_backend",
                               (void *) &register_func)) {
-                g_warning (g_module_error ());
+                g_warning ("%s", g_module_error ());
                 g_module_close (module->library);
 
                 return FALSE;
index d4a1d1fa89e01cf199f835bc866cd6d67720914b..6e7a6e673ea9afedd7a16981b21a3672b164a4fb 100644 (file)
@@ -645,7 +645,7 @@ ev_application_shutdown (EvApplication *application)
                                                    application->print_settings_file,
                                                    &error);
                        if (error) {
-                               g_warning (error->message);
+                               g_warning ("%s", error->message);
                                g_error_free (error);
                        }
 
@@ -803,7 +803,7 @@ ev_application_get_print_settings (EvApplication *application)
                        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;
index 7fb7f00e72f52fb6a8522d62dcea44403070b11a..2aeadd69a68343ee2e1ca4bb4f02d5096816e8b1 100644 (file)
@@ -295,7 +295,7 @@ ev_sidebar_attachments_button_press (EvSidebarAttachments *ev_attachbar,
                                ev_attachment_open (attachment, &error);
                                
                                if (error) {
-                                       g_warning (error->message);
+                                       g_warning ("%s", error->message);
                                        g_error_free (error);
                                }
                                
@@ -434,7 +434,7 @@ ev_sidebar_attachments_drag_data_get (GtkWidget        *widget,
                }
        
                if (error) {
-                       g_warning (error->message);
+                       g_warning ("%s", error->message);
                        g_error_free (error);
                }
 
index e981cafc96f536120856841abad547737a342303..f6a525426730edf3bc855305525d18c2302511a4 100644 (file)
@@ -1941,7 +1941,7 @@ window_save_file_copy_ready_cb (GFile        *src,
                                         _("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);
@@ -2156,7 +2156,7 @@ ev_window_print_finished (GtkPrintJob *print_job,
                                                 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);
@@ -2243,7 +2243,7 @@ ev_window_print_send (EvWindow    *window,
                                            window, NULL);
                } else {
                        ev_window_clear_print_job (window);
-                       g_warning (error->message);
+                       g_warning ("%s", error->message);
                        g_error_free (error);
                }
        }
@@ -2256,7 +2256,7 @@ ev_window_print_job_cb (EvJobPrint *job,
                        EvWindow   *window)
 {
        if (job->error) {
-               g_warning (job->error->message);
+               g_warning ("%s", job->error->message);
                ev_window_clear_print_job (window);
                return;
        }
@@ -3250,7 +3250,7 @@ ev_window_cmd_help_contents (GtkAction *action, EvWindow *ev_window)
        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);
@@ -3306,7 +3306,7 @@ ev_window_preview_print_finished (GtkPrintJob *print_job,
                                                 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);
@@ -3350,7 +3350,7 @@ ev_window_do_preview_print (EvWindow *window)
                                    (GtkPrintJobCompleteFunc)ev_window_preview_print_finished,
                                    window, NULL);
        } else {
-               g_warning (error->message);
+               g_warning ("%s", error->message);
                g_error_free (error);
        }
 
@@ -3375,7 +3375,7 @@ ev_window_cmd_preview_print (GtkAction *action, EvWindow *window)
                                                                           &error);
                        
                        if (error) {
-                               g_warning (error->message);
+                               g_warning ("%s", error->message);
                                g_error_free (error);
                                print_settings = NULL;
                        }
index a552a328efe2ac7722a7a93a6d79296bb60133bd..04aa5ea18ce76b4f58e6f45edbf765f9282964d4 100644 (file)
@@ -252,7 +252,7 @@ load_files_remote (const char **files,
        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;
@@ -268,7 +268,7 @@ load_files_remote (const char **files,
                                        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);
@@ -298,7 +298,7 @@ load_files_remote (const char **files,
                                        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;