[recipes] Add credits section for recipe authors



commit 4e9fa69ded4bcd2feef6cdbea277736435fdffb8
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Dec 19 09:30:25 2016 -0500

    Add credits section for recipe authors
    
    Seems fair to mention them here.

 src/gr-app.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-app.c b/src/gr-app.c
index a42061e..f79dea9 100644
--- a/src/gr-app.c
+++ b/src/gr-app.c
@@ -91,7 +91,14 @@ about_activated (GSimpleAction *action,
                 "Sam Hewitt",
                 NULL
         };
+        const char *recipe_authors[] = {
+                "Ray Strode",
+                "Bastian Ilsø",
+                NULL
+        };
+
         g_autoptr(GdkPixbuf) logo = NULL;
+        static gboolean first_time = TRUE;
 
         logo = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
                                          "org.gnome.Recipes",
@@ -116,6 +123,13 @@ about_activated (GSimpleAction *action,
                                "title", _("About GNOME Recipes"),
                                NULL);
 
+        if (first_time) {
+                first_time = FALSE;
+                gtk_about_dialog_add_credit_section (GTK_ABOUT_DIALOG (g_object_get_data (G_OBJECT (win), 
"gtk-about-dialog")),
+                                                     _("Recipes by"),
+                                                     recipe_authors);
+        }
+
 }
 
 static void


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