[gnome-software] GsShellDetails: Add a getter for the app



commit 30de4650ebe31caea3ceca6eeb42534ea2372e06
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Aug 31 19:20:19 2013 -0400

    GsShellDetails: Add a getter for the app

 src/gs-shell-details.c |    6 ++++++
 src/gs-shell-details.h |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 9a08b24..20ab602 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -197,6 +197,12 @@ gs_shell_details_set_app (GsShellDetails *shell_details, GsApp *app)
        }
 }
 
+GsApp *
+gs_shell_details_get_app (GsShellDetails *shell_details)
+{
+        return shell_details->priv->app;
+}
+
 /**
  * gs_shell_details_finished_func:
  **/
diff --git a/src/gs-shell-details.h b/src/gs-shell-details.h
index cec0533..76aae27 100644
--- a/src/gs-shell-details.h
+++ b/src/gs-shell-details.h
@@ -57,6 +57,7 @@ GsShellDetails        *gs_shell_details_new           (void);
 void            gs_shell_details_invalidate    (GsShellDetails         *shell_details);
 void            gs_shell_details_set_app       (GsShellDetails         *shell_details,
                                                 GsApp                  *app);
+GsApp           *gs_shell_details_get_app       (GsShellDetails         *shell_details);
 void            gs_shell_details_refresh       (GsShellDetails         *shell_details);
 void            gs_shell_details_setup         (GsShellDetails         *shell_details,
                                                  GsShell                *shell,


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