[gnome-photos] application, main-window: Use g_set_application_name



commit 5c267fbc099e75c7f330654a763fc8d59bcb2882
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Jan 5 17:16:22 2018 +0100

    application, main-window: Use g_set_application_name
    
    ... which removes the need to set GtkAboutDialog:program-name.
    
    This keeps the code in sync with gnome-documents.

 src/photos-application.c | 2 ++
 src/photos-main-window.c | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 715ec014..be9efe63 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -2220,6 +2220,8 @@ photos_application_finalize (GObject *object)
 static void
 photos_application_init (PhotosApplication *self)
 {
+  g_set_application_name (_("Photos"));
+
   photos_utils_ensure_builtins ();
 
   self->state = photos_search_context_state_new (PHOTOS_SEARCH_CONTEXT (self));
diff --git a/src/photos-main-window.c b/src/photos-main-window.c
index c1e8b9cd..10b0f9c2 100644
--- a/src/photos-main-window.c
+++ b/src/photos-main-window.c
@@ -475,7 +475,6 @@ photos_main_window_show_about (PhotosMainWindow *self)
                                         "Copyright © 2015 – 2017 Umang Jain"),
                          "license-type", GTK_LICENSE_GPL_3_0,
                          "logo-icon-name", app_id,
-                         "program-name", _("Photos"),
                          "version", version,
                          "website", PACKAGE_URL,
                          "wrap-license", TRUE,


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