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
dd04278b
Kaydet (Commit)
dd04278b
authored
Eki 14, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
need 3.19.2 or above for these
Change-Id: If385b45b12c72a0d7460a9a4c9d0b0e3bfc1195e
üst
70f7697c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
gtk3salnativewidgets-gtk.cxx
vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx
+19
-13
No files found.
vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx
Dosyayı görüntüle @
dd04278b
...
...
@@ -714,9 +714,12 @@ Rectangle GtkSalGraphics::NWGetComboBoxButtonRect( ControlType nType,
gtk_style_context_get_padding
(
mpButtonStyle
,
gtk_style_context_get_state
(
mpButtonStyle
),
&
padding
);
gint
nArrowWidth
=
FALLBACK_ARROW_SIZE
;
gtk_style_context_get
(
mpComboboxButtonArrowStyle
,
gtk_style_context_get_state
(
mpComboboxButtonArrowStyle
),
"min-width"
,
&
nArrowWidth
,
nullptr
);
if
(
gtk_check_version
(
3
,
19
,
2
)
==
nullptr
)
{
gtk_style_context_get
(
mpComboboxButtonArrowStyle
,
gtk_style_context_get_state
(
mpComboboxButtonArrowStyle
),
"min-width"
,
&
nArrowWidth
,
nullptr
);
}
gint
nButtonWidth
=
nArrowWidth
+
padding
.
left
+
padding
.
right
;
if
(
nPart
==
ControlPart
::
ButtonDown
)
...
...
@@ -772,17 +775,20 @@ void GtkSalGraphics::PaintCombobox( GtkStateFlags flags, cairo_t *cr,
aEditBoxRect
.
SetPos
(
Point
(
areaRect
.
Left
()
+
buttonRect
.
GetWidth
(),
areaRect
.
Top
()
)
);
gint
arrow_width
=
FALLBACK_ARROW_SIZE
,
arrow_height
=
FALLBACK_ARROW_SIZE
;
if
(
nType
==
ControlType
::
Combobox
)
{
gtk_style_context_get
(
mpComboboxButtonArrowStyle
,
gtk_style_context_get_state
(
mpComboboxButtonArrowStyle
),
"min-width"
,
&
arrow_width
,
"min-height"
,
&
arrow_height
,
nullptr
);
}
else
if
(
nType
==
ControlType
::
Listbox
)
if
(
gtk_check_version
(
3
,
19
,
2
)
==
nullptr
)
{
gtk_style_context_get
(
mpListboxButtonArrowStyle
,
gtk_style_context_get_state
(
mpListboxButtonArrowStyle
),
"min-width"
,
&
arrow_width
,
"min-height"
,
&
arrow_height
,
nullptr
);
if
(
nType
==
ControlType
::
Combobox
)
{
gtk_style_context_get
(
mpComboboxButtonArrowStyle
,
gtk_style_context_get_state
(
mpComboboxButtonArrowStyle
),
"min-width"
,
&
arrow_width
,
"min-height"
,
&
arrow_height
,
nullptr
);
}
else
if
(
nType
==
ControlType
::
Listbox
)
{
gtk_style_context_get
(
mpListboxButtonArrowStyle
,
gtk_style_context_get_state
(
mpListboxButtonArrowStyle
),
"min-width"
,
&
arrow_width
,
"min-height"
,
&
arrow_height
,
nullptr
);
}
}
arrowRect
.
SetSize
(
Size
(
arrow_width
,
arrow_height
));
...
...
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