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
e1df21cf
Kaydet (Commit)
e1df21cf
authored
Ara 08, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: tdf#96285 restore bodge for unresizable windows with no min size set
Change-Id: Ia1af11514f6096ac55d561f729bbcba9ee5b0b14
üst
01d2fcce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
gtkframe.hxx
vcl/inc/unx/gtk/gtkframe.hxx
+2
-0
gtk3gtkframe.cxx
vcl/unx/gtk3/gtk3gtkframe.cxx
+20
-1
No files found.
vcl/inc/unx/gtk/gtkframe.hxx
Dosyayı görüntüle @
e1df21cf
...
...
@@ -199,6 +199,8 @@ class GtkSalFrame : public SalFrame, public X11WindowProvider
Rectangle
m_aRestorePosSize
;
#if GTK_CHECK_VERSION(3,0,0)
long
m_nWidthRequest
;
long
m_nHeightRequest
;
cairo_region_t
*
m_pRegion
;
#else
GdkRegion
*
m_pRegion
;
...
...
vcl/unx/gtk3/gtk3gtkframe.cxx
Dosyayı görüntüle @
e1df21cf
...
...
@@ -879,6 +879,8 @@ void GtkSalFrame::widget_set_size_request(long nWidth, long nHeight)
void
GtkSalFrame
::
window_resize
(
long
nWidth
,
long
nHeight
)
{
m_nWidthRequest
=
nWidth
;
m_nHeightRequest
=
nHeight
;
gtk_window_resize
(
GTK_WINDOW
(
m_pWindow
),
nWidth
,
nHeight
);
}
...
...
@@ -1052,6 +1054,9 @@ void GtkSalFrame::InitCommon()
m_bGraphics
=
false
;
m_pGraphics
=
nullptr
;
m_nWidthRequest
=
0
;
m_nHeightRequest
=
0
;
// fake an initial geometry, gets updated via configure event or SetPosSize
if
(
m_bDefaultPos
||
m_bDefaultSize
)
{
...
...
@@ -1462,6 +1467,20 @@ void GtkSalFrame::setMinMaxSize()
aHints
|=
GDK_HINT_MAX_SIZE
;
}
}
else
{
if
(
!
m_bFullscreen
&&
m_nWidthRequest
&&
m_nHeightRequest
)
{
aGeo
.
min_width
=
m_nWidthRequest
;
aGeo
.
min_height
=
m_nHeightRequest
;
aHints
|=
GDK_HINT_MIN_SIZE
;
aGeo
.
max_width
=
m_nWidthRequest
;
aGeo
.
max_height
=
m_nHeightRequest
;
aHints
|=
GDK_HINT_MAX_SIZE
;
}
}
if
(
m_bFullscreen
&&
m_aMaxSize
.
Width
()
&&
m_aMaxSize
.
Height
()
)
{
aGeo
.
max_width
=
m_aMaxSize
.
Width
();
...
...
@@ -1493,7 +1512,7 @@ void GtkSalFrame::SetMinClientSize( long nWidth, long nHeight )
m_aMinSize
=
Size
(
nWidth
,
nHeight
);
if
(
m_pWindow
)
{
widget_set_size_request
(
nWidth
,
nHeight
);
widget_set_size_request
(
nWidth
,
nHeight
);
setMinMaxSize
();
}
}
...
...
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