[nemo] add patch to fix statusbar size

leigh123linux leigh123linux at fedoraproject.org
Sun Jan 18 09:12:37 UTC 2015


commit 42a61b4c8e7fba7c9570606f0242583b258f5b37
Author: leigh123linux <leigh123linux at googlemail.com>
Date:   Sun Jan 18 09:12:53 2015 +0000

    add patch to fix statusbar size

 ...wing-size-of-the-nemo-statusbar-in-each-n.patch |   35 ++++++++++++++++++++
 ...t-Change-polkit-policy-to-_keep-to-cache-.patch |   30 +++++++++++++++++
 nemo.spec                                          |   11 +++++-
 3 files changed, 74 insertions(+), 2 deletions(-)
---
diff --git a/0001-fix-the-growing-size-of-the-nemo-statusbar-in-each-n.patch b/0001-fix-the-growing-size-of-the-nemo-statusbar-in-each-n.patch
new file mode 100644
index 0000000..d27e6ba
--- /dev/null
+++ b/0001-fix-the-growing-size-of-the-nemo-statusbar-in-each-n.patch
@@ -0,0 +1,35 @@
+From 853aeb1de68523d38960e5448e47a55c2c91f3ac Mon Sep 17 00:00:00 2001
+From: JosephMcc <mccullarjoseph at gmail.com>
+Date: Sat, 17 Jan 2015 13:43:15 -0800
+Subject: [PATCH] fix the growing size of the nemo statusbar in each new
+ version of gtk
+
+---
+ src/nemo-statusbar.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/nemo-statusbar.c b/src/nemo-statusbar.c
+index c74c37f..d724ab4 100644
+--- a/src/nemo-statusbar.c
++++ b/src/nemo-statusbar.c
+@@ -190,7 +190,7 @@ nemo_status_bar_constructed (GObject *object)
+ 
+     context = gtk_widget_get_style_context (GTK_WIDGET (bar));
+     gtk_style_context_add_class (context, GTK_STYLE_CLASS_TOOLBAR);
+-    gtk_container_set_border_width (GTK_CONTAINER (bar), 1);
++    gtk_container_set_border_width (GTK_CONTAINER (bar), 2);
+ 
+     GtkWidget *button, *icon;
+ 
+@@ -236,6 +236,8 @@ nemo_status_bar_constructed (GObject *object)
+                       G_CALLBACK (action_show_sidebar_callback), bar);
+ 
+     gtk_box_pack_start (GTK_BOX (bar), statusbar, TRUE, TRUE, 10);
++    gtk_widget_set_margin_top (GTK_WIDGET (statusbar), 0);
++    gtk_widget_set_margin_bottom (GTK_WIDGET (statusbar), 0);
+ 
+     GtkWidget *zoom_slider = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL,
+                                                        (gdouble) NEMO_ZOOM_LEVEL_SMALLEST,
+-- 
+2.1.0
+
diff --git a/0001-open-as-root-Change-polkit-policy-to-_keep-to-cache-.patch b/0001-open-as-root-Change-polkit-policy-to-_keep-to-cache-.patch
new file mode 100644
index 0000000..31e8d01
--- /dev/null
+++ b/0001-open-as-root-Change-polkit-policy-to-_keep-to-cache-.patch
@@ -0,0 +1,30 @@
+From 82f02449c91aead388d0ded72d28096fd081e02e Mon Sep 17 00:00:00 2001
+From: Michael Webster <miketwebster at gmail.com>
+Date: Fri, 12 Dec 2014 07:22:55 -0500
+Subject: [PATCH 1/3] open as root: Change polkit policy to _keep to cache
+ authorization (and keep the user from having to repeatedly enter a password).
+
+---
+ src/org.nemo.root.policy.in | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/org.nemo.root.policy.in b/src/org.nemo.root.policy.in
+index 3e892b9..d173a33 100644
+--- a/src/org.nemo.root.policy.in
++++ b/src/org.nemo.root.policy.in
+@@ -13,9 +13,9 @@
+    <message>Authentication is required to run Nemo as root</message>
+    <icon_name>gksu-root-terminal</icon_name>
+    <defaults>
+-     <allow_any>auth_admin</allow_any>
+-     <allow_inactive>auth_admin</allow_inactive>
+-     <allow_active>auth_admin</allow_active>
++     <allow_any>auth_admin_keep</allow_any>
++     <allow_inactive>auth_admin_keep</allow_inactive>
++     <allow_active>auth_admin_keep</allow_active>
+    </defaults>
+    <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/nemo</annotate>
+    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
+-- 
+2.1.0
+
diff --git a/nemo.spec b/nemo.spec
index 911d6d2..c79a9dd 100644
--- a/nemo.spec
+++ b/nemo.spec
@@ -3,7 +3,7 @@
 Name:           nemo
 Summary:        File manager for Cinnamon
 Version:        2.4.4
-Release:        2%{?dist}
+Release:        3%{?dist}
 License:        GPLv2+ and LGPLv2+
 Group:          User Interface/Desktops
 URL:            https://github.com/linuxmint/nemo
@@ -17,7 +17,11 @@ Source3:        gtk-dark.css
 Source4:        nemo-fedora.gschema.override
 
 Patch0:         file_preview_limit.patch
-Patch1:         0001-Add-application-specific-theme-for-Adwaita.patch
+Patch1:         0001-open-as-root-Change-polkit-policy-to-_keep-to-cache-.patch
+%if 0%{?fedora} > 20
+Patch2:         0001-Add-application-specific-theme-for-Adwaita.patch
+Patch3:         0001-fix-the-growing-size-of-the-nemo-statusbar-in-each-n.patch
+%endif
 
 Requires:       redhat-menus
 Requires:       gvfs
@@ -193,6 +197,9 @@ fi
 %{_datadir}/gir-1.0/*.gir
 
 %changelog
+* Sun Jan 18 2015 Leigh Scott <leigh123linux at googlemail.com> - 2.4.4-3
+- add patch to fix statusbar size
+
 * Sun Dec 21 2014 Leigh Scott <leigh123linux at googlemail.com> - 2.4.4-2
 - add patch to fix nemo desktop font colour
 - raise thunbnail file size limit


More information about the scm-commits mailing list