[mate-panel/f19] fix rhbz (#1023604)
Wolfgang Ulbrich
raveit65 at fedoraproject.org
Fri Nov 28 23:19:07 UTC 2014
commit 6ddf633cb056b0d26322a4079160b58dff0e3de4
Author: raveit65 <chat-to-me at raveit.de>
Date: Sat Nov 29 00:18:59 2014 +0100
fix rhbz (#1023604)
mate-panel.spec | 12 ++++++++-
...-panel_fix-container_child_background_set.patch | 13 +++++++++
mate-panel_timezone.patch | 28 ++++++++++++++++++++
3 files changed, 52 insertions(+), 1 deletions(-)
---
diff --git a/mate-panel.spec b/mate-panel.spec
index 176b35c..1d9c75a 100644
--- a/mate-panel.spec
+++ b/mate-panel.spec
@@ -1,6 +1,6 @@
Name: mate-panel
Version: 1.6.2
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: MATE Desktop panel applets
#libs are LGPLv2+ applications GPLv2+
License: GPLv2+
@@ -13,6 +13,10 @@ Source1: panel-default-layout.dist
Patch0: mate-panel_reset_fix.patch
# try fix rhbz (#1023604)
Patch1: mate-panel_container-child-background.patch
+Patch2: mate-panel_fix-container_child_background_set.patch
+# https://github.com/mate-desktop/mate-panel/pull/261
+Patch3: mate-panel_timezone.patch
+
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
# needed as nothing else requires it
@@ -66,6 +70,8 @@ Development files for mate-panel
%setup -q
%patch0 -p1 -b .reset
%patch1 -p1 -b .container
+%patch2 -p1 -b .container2
+%patch3 -p1 -b .timezone
%build
@@ -151,6 +157,10 @@ fi
%changelog
+* Fri Nov 28 2014 Wolfgang Ulbrich <chat-to-me at raveit.de> - 1.6.2-3
+- fix rhbz (#1023604)
+- timezone fix
+
* Wed Jun 25 2014 Wolfgang Ulbrich <chat-to-me at raveit.de> - 1.6.2-2
- try fix rhbz (#1023604)
diff --git a/mate-panel_fix-container_child_background_set.patch b/mate-panel_fix-container_child_background_set.patch
new file mode 100644
index 0000000..9b1f07b
--- /dev/null
+++ b/mate-panel_fix-container_child_background_set.patch
@@ -0,0 +1,13 @@
+diff -upr mate-panel-1.8.1-orig/mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c mate-panel-1.8.1/mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c
+--- mate-panel-1.8.1-orig/mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c 2014-11-25 23:40:54.555704000 +0100
++++ mate-panel-1.8.1/mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c 2014-11-25 23:50:09.499401035 +0100
+@@ -333,8 +333,7 @@ mate_panel_applet_frame_dbus_finalize (G
+ MatePanelAppletFrameDBus *frame = MATE_PANEL_APPLET_FRAME_DBUS (object);
+
+ if (frame->priv->bg_cancellable)
+- g_object_unref (frame->priv->bg_cancellable);
+- frame->priv->bg_cancellable = NULL;
++ g_cancellable_cancel (frame->priv->bg_cancellable);
+
+ G_OBJECT_CLASS (mate_panel_applet_frame_dbus_parent_class)->finalize (object);
+ }
diff --git a/mate-panel_timezone.patch b/mate-panel_timezone.patch
new file mode 100644
index 0000000..b89bd69
--- /dev/null
+++ b/mate-panel_timezone.patch
@@ -0,0 +1,28 @@
+diff --git a/applets/clock/system-timezone.c b/applets/clock/system-timezone.c
+index 28b3525..525921c 100644
+--- a/applets/clock/system-timezone.c
++++ b/applets/clock/system-timezone.c
+@@ -634,6 +634,22 @@ system_timezone_read_etc_localtime_softlink (void)
+ return NULL;
+
+ file = g_file_read_link (ETC_LOCALTIME, NULL);
++
++ if (*file != '/') {
++ GFile *gf1;
++ GFile *gf2;
++
++ /* Resolve relative path. */
++ gf1 = g_file_new_for_path (ETC_LOCALTIME);
++ gf2 = g_file_get_parent (gf1);
++ g_object_unref (gf1);
++ gf1 = g_file_resolve_relative_path (gf2, file);
++ g_object_unref (gf2);
++ g_free (file);
++ file = g_file_get_path (gf1);
++ g_object_unref (gf1);
++ }
++
+ tz = system_timezone_strip_path_if_valid (file);
+ g_free (file);
+
+
More information about the scm-commits
mailing list