[seahorse] build: Suppress compiler warnings



commit b2d93207b1a26cd91d04682d80075bb896d44a9e
Author: Daiki Ueno <dueno src gnome org>
Date:   Thu Jul 16 17:50:51 2015 +0900

    build: Suppress compiler warnings
    
    Add missing casts related to search provider.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=752516

 libseahorse/seahorse-search-provider.c |    4 ++--
 pgp/seahorse-pgp-backend.c             |    2 +-
 ssh/seahorse-ssh-backend.c             |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libseahorse/seahorse-search-provider.c b/libseahorse/seahorse-search-provider.c
index 54bfd70..337a9eb 100644
--- a/libseahorse/seahorse-search-provider.c
+++ b/libseahorse/seahorse-search-provider.c
@@ -145,7 +145,7 @@ hold_app (void)
 {
        SeahorseApplication *app;
 
-       app = seahorse_application_get ();
+       app = SEAHORSE_APPLICATION (seahorse_application_get ());
        g_application_hold (G_APPLICATION (app));
 }
 
@@ -154,7 +154,7 @@ release_app (void)
 {
        SeahorseApplication *app;
 
-       app = seahorse_application_get ();
+       app = SEAHORSE_APPLICATION (seahorse_application_get ());
        g_application_release (G_APPLICATION (app));
 }
 
diff --git a/pgp/seahorse-pgp-backend.c b/pgp/seahorse-pgp-backend.c
index 2483c65..29962a1 100644
--- a/pgp/seahorse-pgp-backend.c
+++ b/pgp/seahorse-pgp-backend.c
@@ -153,7 +153,7 @@ on_place_loaded (GObject       *object,
        }
 
        backend->loaded = TRUE;
-       g_object_notify (backend, "loaded");
+       g_object_notify (G_OBJECT (backend), "loaded");
 
        g_object_unref (backend);
 }
diff --git a/ssh/seahorse-ssh-backend.c b/ssh/seahorse-ssh-backend.c
index 99ba8b4..b3ab976 100644
--- a/ssh/seahorse-ssh-backend.c
+++ b/ssh/seahorse-ssh-backend.c
@@ -86,7 +86,7 @@ on_place_loaded (GObject       *object,
        }
 
        backend->loaded = TRUE;
-       g_object_notify (backend, "loaded");
+       g_object_notify (G_OBJECT (backend), "loaded");
 
        g_object_unref (backend);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]