[gnome-software/wip/temp/ubuntu-xenial-rebased: 230/329] Do not use the header bar on Unity
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased: 230/329] Do not use the header bar on Unity
- Date: Fri, 29 Apr 2016 14:04:40 +0000 (UTC)
commit 7de70b7db85697c59dc7173f803e4d2c77479489
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]