Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
4e8bc546
Kaydet (Commit)
4e8bc546
authored
Agu 02, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: tdf#101196 prompt to restart after OpenGL config changes
Change-Id: If0ade12ed4cf360bdac8cfbec7bb09c9a640fc6d
üst
40c88910
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
4 deletions
+42
-4
optgdlg.cxx
cui/source/options/optgdlg.cxx
+19
-2
restartdialog.hxx
include/svtools/restartdialog.hxx
+4
-1
restartdialog.cxx
svtools/source/dialogs/restartdialog.cxx
+3
-0
restartdialog.ui
svtools/uiconfig/ui/restartdialog.ui
+16
-1
No files found.
cui/source/options/optgdlg.cxx
Dosyayı görüntüle @
4e8bc546
...
...
@@ -868,8 +868,13 @@ bool OfaViewTabPage::FillItemSet( SfxItemSet* )
}
}
mpOpenGLConfig
->
setUseOpenGL
(
m_pUseOpenGL
->
IsChecked
());
mpOpenGLConfig
->
setForceOpenGL
(
m_pForceOpenGL
->
IsChecked
());
if
(
m_pUseOpenGL
->
IsValueChangedFromSaved
()
||
m_pForceOpenGL
->
IsValueChangedFromSaved
())
{
mpOpenGLConfig
->
setUseOpenGL
(
m_pUseOpenGL
->
IsChecked
());
mpOpenGLConfig
->
setForceOpenGL
(
m_pForceOpenGL
->
IsChecked
());
bModified
=
true
;
}
if
(
bMenuOptModified
)
{
...
...
@@ -898,6 +903,15 @@ bool OfaViewTabPage::FillItemSet( SfxItemSet* )
}
}
if
(
m_pUseOpenGL
->
IsValueChangedFromSaved
()
||
m_pForceOpenGL
->
IsValueChangedFromSaved
())
{
SolarMutexGuard
aGuard
;
svtools
::
executeRestartDialog
(
comphelper
::
getProcessComponentContext
(),
nullptr
,
svtools
::
RESTART_REASON_OPENGL
);
}
return
bModified
;
}
...
...
@@ -985,6 +999,9 @@ void OfaViewTabPage::Reset( const SfxItemSet* )
#endif
m_pFontShowCB
->
SaveValue
();
m_pUseOpenGL
->
SaveValue
();
m_pForceOpenGL
->
SaveValue
();
#if defined( UNX )
LINK
(
this
,
OfaViewTabPage
,
OnAntialiasingToggled
).
Call
(
*
m_pFontAntiAliasing
);
#endif
...
...
include/svtools/restartdialog.hxx
Dosyayı görüntüle @
4e8bc546
...
...
@@ -50,9 +50,12 @@ enum RestartReason {
RESTART_REASON_EXP_FEATURES
,
// "For the modified experimental features to take effect,
// %PRODUCTNAME must be restarted."
RESTART_REASON_EXTENSION_INSTALL
RESTART_REASON_EXTENSION_INSTALL
,
// "For the extension to work properly,
// %PRODUCTNAME must be restarted."
RESTART_REASON_OPENGL
// "For the OpenGL changes to take effect,
// %PRODUCTNAME must be restarted."
};
// Must be called with the solar mutex locked:
...
...
svtools/source/dialogs/restartdialog.cxx
Dosyayı görüntüle @
4e8bc546
...
...
@@ -61,6 +61,9 @@ public:
case
svtools
:
:
RESTART_REASON_EXTENSION_INSTALL
:
get
(
reason_
,
"reason_extension_install"
);
break
;
case
svtools
:
:
RESTART_REASON_OPENGL
:
get
(
reason_
,
"reason_opengl"
);
break
;
default
:
assert
(
false
);
// this cannot happen
}
...
...
svtools/uiconfig/ui/restartdialog.ui
Dosyayı görüntüle @
4e8bc546
...
...
@@ -210,6 +210,21 @@
<property
name=
"position"
>
9
</property>
</packing>
</child>
<child>
<object
class=
"GtkLabel"
id=
"reason_opengl"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"no_show_all"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
For the OpenGL changes to take effect, %PRODUCTNAME must be restarted.
</property>
<property
name=
"wrap"
>
True
</property>
<property
name=
"max_width_chars"
>
50
</property>
<property
name=
"xalign"
>
0
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
10
</property>
</packing>
</child>
<child>
<object
class=
"GtkLabel"
id=
"label"
>
<property
name=
"visible"
>
True
</property>
...
...
@@ -221,7 +236,7 @@
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
0
</property>
<property
name=
"position"
>
1
1
</property>
</packing>
</child>
</object>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment