[libreoffice/f18] Resolves: rhbz#906137 slide show inverts outputs

Caolán McNamara caolanm at fedoraproject.org
Fri Mar 15 11:19:53 UTC 2013


commit 9bdbb775b45ffda3f96e730302802af51eee8ba2
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Mar 15 11:17:58 2013 +0000

    Resolves: rhbz#906137 slide show inverts outputs

 ...es-rhbz-906137-slide-show-inverts-outputs.patch |   64 ++++++++++++++++++++
 libreoffice.spec                                   |    7 ++-
 2 files changed, 70 insertions(+), 1 deletions(-)
---
diff --git a/0001-Resolves-rhbz-906137-slide-show-inverts-outputs.patch b/0001-Resolves-rhbz-906137-slide-show-inverts-outputs.patch
new file mode 100644
index 0000000..2d15fb8
--- /dev/null
+++ b/0001-Resolves-rhbz-906137-slide-show-inverts-outputs.patch
@@ -0,0 +1,64 @@
+From ff252b6e2b7d4f5399dafffcea745486745bdeaf Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm at redhat.com>
+Date: Fri, 15 Mar 2013 10:38:06 +0000
+Subject: [PATCH] Resolves: rhbz#906137 slide show inverts outputs
+
+we go to some effort to determine the right value of ret
+and then throw it away and return 0
+
+regression since 4a7e3482912c90b73d6e12c82bcd9ce31975e3f1
+
+Change-Id: I652cfbe44fdab6560c1c8dc8fe25d6211b5357cb
+(cherry picked from commit 67aae198f80195e77bd62e7675a372312075b126)
+---
+ vcl/unx/gtk/app/gtksys.cxx | 16 ++++++----------
+ 1 file changed, 6 insertions(+), 10 deletions(-)
+
+diff --git a/vcl/unx/gtk/app/gtksys.cxx b/vcl/unx/gtk/app/gtksys.cxx
+index b7996c1..48bc239 100644
+--- a/vcl/unx/gtk/app/gtksys.cxx
++++ b/vcl/unx/gtk/app/gtksys.cxx
+@@ -18,7 +18,6 @@
+  */
+ 
+ #include <string.h>
+-#include <gmodule.h>
+ #include <gtk/gtk.h>
+ #include <unx/gtk/gtkinst.hxx>
+ #include <unx/gtk/gtksys.hxx>
+@@ -179,14 +178,14 @@ namespace {
+ static int _fallback_get_primary_monitor (GdkScreen *pScreen)
+ {
+     // Use monitor name as primacy heuristic
+-    int ret = -1;
+     int max = gdk_screen_get_n_monitors (pScreen);
+-    for (int i = 0; i < max && ret < 0; i++)
++    for (int i = 0; i < max; ++i)
+     {
+         char *name = gdk_screen_get_monitor_plug_name (pScreen, i);
+-        if (name && !g_ascii_strncasecmp (name, "LVDS", 4))
+-            ret = i;
++        bool bLaptop = (name && !g_ascii_strncasecmp (name, "LVDS", 4));
+         g_free (name);
++        if (bLaptop)
++            return i;
+     }
+     return 0;
+ }
+@@ -201,11 +200,8 @@ static int _get_primary_monitor (GdkScreen *pScreen)
+     // Perhaps we have a newer gtk+ with this symbol:
+     if (!get_fn)
+     {
+-        GModule *module = g_module_open (NULL, (GModuleFlags) 0);
+-        if (!g_module_symbol (module, "gdk_screen_get_primary_monitor",
+-                              (gpointer *)&get_fn))
+-            get_fn = NULL;
+-        g_module_close (module);
++        get_fn = (int(*)(GdkScreen*))osl_getAsciiFunctionSymbol(NULL,
++            "gdk_screen_get_primary_monitor");
+     }
+ #if GTK_CHECK_VERSION(2,14,0)
+     if (!get_fn)
+-- 
+1.8.1.2
+
diff --git a/libreoffice.spec b/libreoffice.spec
index 79ff7e9..c9a7c20 100644
--- a/libreoffice.spec
+++ b/libreoffice.spec
@@ -44,7 +44,7 @@ Summary:        Free Software Productivity Suite
 Name:           libreoffice
 Epoch:          1
 Version:        %{libo_version}.2
-Release:        7%{?libo_prerelease}%{?dist}
+Release:        8%{?libo_prerelease}%{?dist}
 License:        (MPLv1.1 or LGPLv3+) and LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and Public Domain and ASL 2.0 and Artistic and MPLv2.0
 Group:          Applications/Productivity
 URL:            http://www.documentfoundation.org/develop
@@ -266,6 +266,7 @@ Patch44: 0001-Related-rhbz-902884-check-for-GetSelectedMasterPage-.patch
 Patch45: 0001-Resolves-fdo-56031-RSID-attr-changes-drop-content-ch.patch
 Patch46: 0001-Resolves-rhbz-920697-i110881-rhbz-623191-presentatio.patch
 Patch47: 0001-rhbz-895690-Make-GIO-UCP-less-brittle-so-saving-docs.patch
+Patch48: 0001-Resolves-rhbz-906137-slide-show-inverts-outputs.patc
 
 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
 %define instdir %{_libdir}
@@ -1025,6 +1026,7 @@ mv -f redhat.soc extras/source/palettes/standard.soc
 %patch45 -p1 -b .fdo-56031-RSID-attr-changes-drop-content-ch.patch
 %patch46 -p1 -b .rhbz-920697-i110881-rhbz-623191-presentatio.patch
 %patch47 -p1 -b .rhbz-895690-Make-GIO-UCP-less-brittle-so-saving-docs.patch
+%patch48 -p1 -b .rhbz-906137-slide-show-inverts-outputs.patc
 
 # TODO: check this
 # these are horribly incomplete--empty translations and copied english
@@ -2294,6 +2296,9 @@ update-desktop-database %{_datadir}/applications &> /dev/null || :
 %endif
 
 %changelog
+* Fri Mar 15 2013 Caolán McNamara <caolanm at redhat.com> - 1:3.6.5.2-8
+- Resolves: rhbz#906137 slide show inverts outputs
+
 * Tue Mar 12 2013 Caolán McNamara <caolanm at redhat.com> - 1:3.6.5.2-7
 - Resolves: rhbz#920697 presentation not always full screen
 - Resolves: rhbz#895690 failure saving to gvfs mounts


More information about the scm-commits mailing list