[gnome-online-accounts/wip/rishi/kerberos: 4/4] kerberos: Specify an icon



commit 5b2498a0d4ef18be52d25219085568c5717f77e8
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Jul 26 18:11:19 2016 +0200

    kerberos: Specify an icon

 src/goabackend/goakerberosprovider.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goakerberosprovider.c b/src/goabackend/goakerberosprovider.c
index b9b31a2..aae8cdb 100644
--- a/src/goabackend/goakerberosprovider.c
+++ b/src/goabackend/goakerberosprovider.c
@@ -113,6 +113,12 @@ get_provider_features (GoaProvider *_provider)
   return GOA_PROVIDER_FEATURE_TICKETING;
 }
 
+static GIcon *
+get_provider_icon (GoaProvider *provider, GoaObject *object)
+{
+  return g_themed_icon_new_with_default_fallbacks ("dialog-password-symbolic");
+}
+
 typedef struct
 {
   GtkDialog *dialog;
@@ -1735,6 +1741,7 @@ goa_kerberos_provider_class_init (GoaKerberosProviderClass *kerberos_class)
   provider_class->get_provider_name          = get_provider_name;
   provider_class->get_provider_group         = get_provider_group;
   provider_class->get_provider_features      = get_provider_features;
+  provider_class->get_provider_icon          = get_provider_icon;
   provider_class->build_object               = build_object;
   provider_class->add_account                = add_account;
   provider_class->refresh_account            = refresh_account;


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