Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Em 09-03-2013 17:44, Olivier Hallot escreveu:
Hi Caolán

Em 05-03-2013 13:05, Caolán McNamara escreveu:
On Tue, 2013-03-05 at 11:57 -0300, Olivier Hallot wrote:
Actually I meant: What parent gtk widget should I use? GtkSpin?

Oh right, for the glade placeholder. Doesn't really matter I suppose,
nothing is a good fit. Maybe a "GtkSpinner" just because that's round as
well :-), otherwise a GtkDrawingArea.

C.


I am a bit lost on how to handle the following

 maOrientHlp     ( maCtrlDial, maNfRotate, maCbStacked ),

in line 174 of
http://opengrok.libreoffice.org/xref/core/cui/source/tabpages/align.cxx

given that the arguments are now pointers (e.g. *m_pCtrlDial)

How should I change this to get the ctor working?

Thank you

Trying to be more clear.

Actually I have this tentative: The ctor needs maOrientHlp but the
parameters may be uninitialized, right?


- ---------------------%<-----------------------
AlignmentTabPage::AlignmentTabPage( Window* pParent, const SfxItemSet&
rCoreAttrs ) :

    SfxTabPage( pParent, "CellAlignPage","cui/ui/cellalignment.ui",
rCoreAttrs ),

    maOrientHlp     (*m_pCtrlDial, *m_pNfRotate, *m_pCbStacked)

{
(snip)
   get(m_pNfRotate,"spinDegrees");
   get(m_pCtrlDial,"dialcontrol");
   get(m_pCbStacked,"checkVertStack");

(snip)
}

- ---------------------%<-----------------------

I get this backtrace on a segfault:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff26164ba in Window::IsEnabled (this=0x6666666666666666) at
/home/tdf/git/core/vcl/source/window/window2.cxx:1577
1577        return !mpWindowImpl->mbDisabled;
(gdb) bt
#0  0x00007ffff26164ba in Window::IsEnabled (this=0x6666666666666666)
    at /home/tdf/git/core/vcl/source/window/window2.cxx:1577
#1  0x00007fffcea070f7 in
svx::OrientationHelper_Impl::OrientationHelper_Impl (this=0x1e4c840,
rCtrlDial=..., rCbStacked=
    ...) at /home/tdf/git/core/svx/source/dialog/orienthelper.cxx:60
#2  0x00007fffcea0757b in svx::OrientationHelper::OrientationHelper
(this=0x1dfb118, rCtrlDial=..., rNfRotation=...,
    rCbStacked=...) at
/home/tdf/git/core/svx/source/dialog/orienthelper.cxx:109
#3  0x00007fffc9251d25 in svx::AlignmentTabPage::AlignmentTabPage
(this=0x1dfaed0, pParent=0x1dd7dd0, rCoreAttrs=...)
    at /home/tdf/git/core/cui/source/tabpages/align.cxx:174
#4  0x00007fffc9252d51 in svx::AlignmentTabPage::Create
(pParent=0x1dd7dd0, rAttrSet=...)
    at /home/tdf/git/core/cui/source/tabpages/align.cxx:264
#5  0x00007ffff4fb74e1 in SfxTabDialog::ActivatePageHdl (this=0x1de8760,
pTabCtrl=0x1dd7dd0)
    at /home/tdf/git/core/sfx2/source/dialog/tabdlg.cxx:1397






- -- 
Olivier Hallot
Founder, Board of Directors Member - The Document Foundation
The Document Foundation, Zimmerstr. 69, 10117 Berlin, Germany
Fundação responsável civilmente, de acordo com o direito civil
Detalhes Legais: http://www.documentfoundation.org/imprint
LibreOffice translation leader for Brazilian Portuguese
+55-21-8822-8812
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJRO8KPAAoJEJp3R7nH3vLxiLUH/1kuCVcE0TydAEJUG8bjfdRw
QbraDwXfLTsbRSwv5GrikLrQ5KheyQwGgBQCYO91FCNPxZdgBYx4/zCT9kPE8l06
UImUWRHn3JeWi2CCzOT3JYKxFmxFdxGB+aBwv0rE0uNaxgoVkNxYxqdzvQVa7PMY
LIS0nYNnjpEaMWrQTH8VKh+8vdcvpT0v7LUp043e9H3wElpUvL7U6XrYB+g4223e
gJAsqhNWDzEqR0Ylcb/NXyY4NKlLbU1w4qSodx+dEauLClZOFbsMTYcagQU0whWd
kk/wbiQrOy6zLX5c2TUmHXj06gwa55oncI4AH65eysL16A8pSw9i623a+TEs0AU=
=rVMu
-----END PGP SIGNATURE-----

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.