[Libreoffice-commits] core.git: Branch 'aoo/trunk' - vcl/unx

2015-01-20 Thread Ariel Constenla-Haile
 vcl/unx/generic/app/keysymnames.cxx |1 +
 1 file changed, 1 insertion(+)

New commits:
commit 58c7172ef98515e482bc87e219e58e1e126785d8
Author: Ariel Constenla-Haile arie...@apache.org
Date:   Wed Jan 21 05:41:47 2015 +

i46871 - Add French translation for Space key

diff --git a/vcl/unx/generic/app/keysymnames.cxx 
b/vcl/unx/generic/app/keysymnames.cxx
index e62419d..fa573fa 100644
--- a/vcl/unx/generic/app/keysymnames.cxx
+++ b/vcl/unx/generic/app/keysymnames.cxx
@@ -167,6 +167,7 @@ namespace vcl_sal {
 { XK_Down, Bas },
 { XK_BackSpace, Ret. Arr },
 { XK_Return, Retour },
+{ XK_space, Espace },
 { XK_KP_Enter, Entrée },
 { SunXK_Stop,  Stop },
 { SunXK_Again, Encore },
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'aoo/trunk' - vcl/unx

2015-01-14 Thread Tsutomu Uchino
 vcl/unx/gtk/window/gtkframe.cxx |   28 ++--
 1 file changed, 18 insertions(+), 10 deletions(-)

New commits:
commit 19654ce3a9fadebe9bf978e89cc2ac1ab5ebb80a
Author: Tsutomu Uchino ha...@apache.org
Date:   Wed Jan 14 08:20:05 2015 +

#i125991# catch IndexOutOfBoundsException to avoid fatal error happen when 
input method is used on Gtk environment

diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx
index 972f24b..afa557d 100644
--- a/vcl/unx/gtk/window/gtkframe.cxx
+++ b/vcl/unx/gtk/window/gtkframe.cxx
@@ -3749,17 +3749,25 @@ uno::Referenceaccessibility::XAccessibleEditableText
 return 
uno::Referenceaccessibility::XAccessibleEditableText(xContext, 
uno::UNO_QUERY);
 }
 
-for (sal_Int32 i = 0; i  xContext-getAccessibleChildCount(); ++i)
+try
 {
-uno::Reference accessibility::XAccessible  xChild = 
xContext-getAccessibleChild(i);
-if (!xChild.is())
-continue;
-uno::Reference accessibility::XAccessibleContext  xChildContext 
= xChild-getAccessibleContext();
-if (!xChildContext.is())
-continue;
-uno::Reference accessibility::XAccessibleEditableText  xText = 
FindFocus(xChildContext);
-if (xText.is())
-return xText;
+for (sal_Int32 i = 0, n = xContext-getAccessibleChildCount(); i  n; 
++i)
+{
+uno::Reference accessibility::XAccessible  xChild = 
xContext-getAccessibleChild(i);
+if (!xChild.is())
+continue;
+uno::Reference accessibility::XAccessibleContext  
xChildContext = xChild-getAccessibleContext();
+if (!xChildContext.is())
+continue;
+uno::Reference accessibility::XAccessibleEditableText  xText = 
FindFocus(xChildContext);
+if (xText.is())
+return xText;
+}
+}
+catch( lang::IndexOutOfBoundsException  e )
+{
+OSL_TRACE( GtkFrame FindFocus, %s, ::rtl::OUStringToOString(
+e.Message, RTL_TEXTENCODING_UTF8 ).pData-buffer );
 }
 return uno::Reference accessibility::XAccessibleEditableText ();
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'aoo/trunk' - vcl/unx

2014-01-02 Thread Tsutomu Uchino
 vcl/unx/gtk/window/gtkframe.cxx |9 ++---
 1 file changed, 6 insertions(+), 3 deletions(-)

New commits:
commit 6dfbd90ac73473c73b0d87e253f16c78d09d3608
Author: Tsutomu Uchino ha...@apache.org
Date:   Mon Dec 30 13:13:35 2013 +

#i122950# fix duplicated input when input method convert a character on gtk 
environment

diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx
index ef0ce94..d5cb527 100644
--- a/vcl/unx/gtk/window/gtkframe.cxx
+++ b/vcl/unx/gtk/window/gtkframe.cxx
@@ -3553,6 +3553,11 @@ void GtkSalFrame::IMHandler::signalIMCommit( 
GtkIMContext* CONTEXT_ARG, gchar* p
 {
 GTK_YIELD_GRAB();
 
+bool bWasPreedit =
+(pThis-m_aInputEvent.mpTextAttr != 0) ||
+pThis-m_bPreeditJustChanged;
+pThis-m_bPreeditJustChanged = false;
+
 pThis-m_aInputEvent.mnTime = 0;
 pThis-m_aInputEvent.mpTextAttr = 0;
 pThis-m_aInputEvent.maText = String( pText, 
RTL_TEXTENCODING_UTF8 );
@@ -3576,9 +3581,7 @@ void GtkSalFrame::IMHandler::signalIMCommit( 
GtkIMContext* CONTEXT_ARG, gchar* p
  *  or because there never was a preedit.
  */
 bool bSingleCommit = false;
-bool bWasPreedit =
-(pThis-m_aInputEvent.mpTextAttr != 0) ||
-pThis-m_bPreeditJustChanged;
+
 if( ! bWasPreedit
  pThis-m_aInputEvent.maText.Len() == 1
  ! pThis-m_aPrevKeyPresses.empty()
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'aoo/trunk' - vcl/unx

2013-07-10 Thread Andre Fischer
 vcl/unx/gtk/window/gtkframe.cxx |   36 
 1 file changed, 24 insertions(+), 12 deletions(-)

New commits:
commit 99c3dd415f415126759a6332f78732f886f5a35c
Author: Andre Fischer a...@apache.org
Date:   Wed Jul 10 08:11:07 2013 +

122709: Set default size of application windows to 80% of the screen size.

diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx
index 5ca2a77..977d713 100644
--- a/vcl/unx/gtk/window/gtkframe.cxx
+++ b/vcl/unx/gtk/window/gtkframe.cxx
@@ -1244,18 +1244,30 @@ Size GtkSalFrame::calcDefaultSize()
 long w = aScreenSize.Width();
 long h = aScreenSize.Height();
 
-// fill in holy default values brought to us by product management
-if( aScreenSize.Width() = 800 )
-w = 785;
-if( aScreenSize.Width() = 1024 )
-w = 920;
-
-if( aScreenSize.Height() = 600 )
-h = 550;
-if( aScreenSize.Height() = 768 )
-h = 630;
-if( aScreenSize.Height() = 1024 )
-h = 875;
+
+if (true || aScreenSize.Width() = 1024)
+{
+// For small screen use the old default values.  Original comment:
+// fill in holy default values brought to us by product management
+if( aScreenSize.Width() = 800 )
+w = 785;
+if( aScreenSize.Width() = 1024 )
+w = 920;
+
+if( aScreenSize.Height() = 600 )
+h = 550;
+if( aScreenSize.Height() = 768 )
+h = 630;
+if( aScreenSize.Height() = 1024 )
+h = 875;
+}
+else
+{
+// Use the same size calculation as on Mac OSX: 80% of width
+// and height.
+w = static_castlong(aScreenSize.Width() * 0.8);
+h = static_castlong(aScreenSize.Height() * 0.8);
+}
 
 return Size( w, h );
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'aoo/trunk' - vcl/unx

2013-06-14 Thread Armin Le Grand
 vcl/unx/generic/gdi/salgdi.cxx |5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit eeba25ef43bb4ec175b16118b3b4c62f50f40ed5
Author: Armin Le Grand a...@apache.org
Date:   Fri Jun 14 14:10:48 2013 +

i122456 Corrected tesellationing for fat lines

diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx
index cda1c27..5bed5a8 100644
--- a/vcl/unx/generic/gdi/salgdi.cxx
+++ b/vcl/unx/generic/gdi/salgdi.cxx
@@ -1238,7 +1238,10 @@ bool X11SalGraphics::drawPolyLine(
 // #i11575#desc5#b adjust B2D tesselation result to raster positions
 basegfx::B2DPolygon aPolygon = rPolygon;
 const double fHalfWidth = 0.5 * rLineWidth.getX();
-aPolygon.transform( 
basegfx::tools::createTranslateB2DHomMatrix(+fHalfWidth,+fHalfWidth) );
+
+// #122456# This is probably thought to happen to align hairlines to pixel 
positions, so
+// it should be a 0.5 translation, not more. It will definitely go wrong 
with fat lines
+aPolygon.transform( basegfx::tools::createTranslateB2DHomMatrix(0.5, 0.5) 
);
 
 // shortcut for hairline drawing to improve performance
 bool bDrawnOk = true;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits