[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 227/331] Do not use the header bar on Unity



commit 00cb57b5866e8d95f5942eb4e4d1268b5d10ae3f
Author: Richard Hughes <richard hughsie com>
Date:   Thu Apr 7 15:22:11 2016 +0100

    Do not use the header bar on Unity
    
    Based on a patch by Robert Ancell, many thanks.

 src/gs-shell.c |   17 -----------------
 src/gs-utils.h |    2 ++
 2 files changed, 2 insertions(+), 17 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index c6528e5..73319a8 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -674,23 +674,6 @@ gs_shell_monitor_permission (GsShell *shell)
                                  G_CALLBACK (on_permission_changed), shell);
 }
 
-static gboolean
-in_desktop (const gchar *name)
-{
-       const gchar *desktop_name_list;
-       g_auto(GStrv) names = NULL;
-       gint i;
-
-       desktop_name_list = g_getenv ("XDG_CURRENT_DESKTOP");
-       if (desktop_name_list == NULL)
-               return FALSE;
-
-       names = g_strsplit (desktop_name_list, ":", -1);
-       for (i = 0; names[i] && strcmp (names[i], name) != 0; i++);
-
-       return names[i] != NULL;
-}
-
 /**
  * gs_shell_setup:
  */
diff --git a/src/gs-utils.h b/src/gs-utils.h
index 89d9abf..a218b80 100644
--- a/src/gs-utils.h
+++ b/src/gs-utils.h
@@ -70,6 +70,8 @@ gboolean       gs_utils_is_current_desktop    (const gchar    *name);
 void            gs_utils_widget_set_custom_css (GtkWidget      *widget,
                                                 const gchar    *css);
 
+gboolean        gs_utils_is_current_desktop    (const gchar    *name);
+
 G_END_DECLS
 
 #endif /* __GS_UTILS_H */


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