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
e67fc823
Kaydet (Commit)
e67fc823
authored
May 31, 2012
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: cleanup code flow, and minor indent tweak
Change-Id: Id99b10f84ef977f5c808fb2c9168deaa4455a2a9
üst
7c610c7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
24 deletions
+23
-24
salnativewidgets-gtk.cxx
vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+23
-24
No files found.
vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
Dosyayı görüntüle @
e67fc823
...
...
@@ -1140,25 +1140,25 @@ sal_Bool GtkSalGraphics::getNativeControlRegion( ControlType nType,
sal_Bool
GtkSalGraphics
::
NWPaintGTKWindowBackground
(
GdkDrawable
*
gdkDrawable
,
ControlType
,
ControlPart
,
const
Rectangle
&
rControlRectangle
,
const
Rectangle
&
/* rControlRectangle */
,
const
clipList
&
rClipList
,
ControlState
nState
,
const
ImplControlValue
&
,
ControlState
/* nState */
,
const
ImplControlValue
&
,
const
OUString
&
)
{
int
w
,
h
;
gtk_window_get_size
(
GTK_WINDOW
(
m_pWindow
),
&
w
,
&
h
);
GdkRectangle
clipRect
;
for
(
clipList
::
const_iterator
it
=
rClipList
.
begin
();
it
!=
rClipList
.
end
();
++
it
)
{
clipRect
.
x
=
it
->
Left
();
clipRect
.
y
=
it
->
Top
();
clipRect
.
width
=
it
->
GetWidth
();
clipRect
.
height
=
it
->
GetHeight
();
int
w
,
h
;
gtk_window_get_size
(
GTK_WINDOW
(
m_pWindow
),
&
w
,
&
h
);
GdkRectangle
clipRect
;
for
(
clipList
::
const_iterator
it
=
rClipList
.
begin
();
it
!=
rClipList
.
end
();
++
it
)
{
clipRect
.
x
=
it
->
Left
();
clipRect
.
y
=
it
->
Top
();
clipRect
.
width
=
it
->
GetWidth
();
clipRect
.
height
=
it
->
GetHeight
();
gtk_paint_flat_box
(
m_pWindow
->
style
,
gdkDrawable
,
GTK_STATE_NORMAL
,
GTK_SHADOW_NONE
,
&
clipRect
,
m_pWindow
,
"base"
,
0
,
0
,
w
,
h
);
}
gtk_paint_flat_box
(
m_pWindow
->
style
,
gdkDrawable
,
GTK_STATE_NORMAL
,
GTK_SHADOW_NONE
,
&
clipRect
,
m_pWindow
,
"base"
,
0
,
0
,
w
,
h
);
}
return
sal_True
;
return
sal_True
;
}
sal_Bool
GtkSalGraphics
::
NWPaintGTKButtonReal
(
...
...
@@ -1281,18 +1281,17 @@ sal_Bool GtkSalGraphics::NWPaintGTKButtonReal(
&
clipRect
,
m_pWindow
,
"base"
,
x
,
y
,
w
,
h
);
}
if
(
(
nState
&
CTRL_STATE_DEFAULT
)
&&
GTK_IS_BUTTON
(
button
)
)
{
gtk_paint_box
(
button
->
style
,
gdkDrawable
,
GTK_STATE_NORMAL
,
GTK_SHADOW_IN
,
&
clipRect
,
button
,
"buttondefault"
,
x
,
y
,
w
,
h
);
}
/* don't draw "button", because it can be a tool_button, and
* it causes some weird things, so, the default button is
* just fine */
if
(
GTK_IS_BUTTON
(
button
))
if
(
GTK_IS_BUTTON
(
button
)
)
{
if
(
(
nState
&
CTRL_STATE_DEFAULT
)
)
gtk_paint_box
(
button
->
style
,
gdkDrawable
,
GTK_STATE_NORMAL
,
GTK_SHADOW_IN
,
&
clipRect
,
button
,
"buttondefault"
,
x
,
y
,
w
,
h
);
/* don't draw "button", because it can be a tool_button, and
* it causes some weird things, so, the default button is
* just fine */
gtk_paint_box
(
button
->
style
,
gdkDrawable
,
stateType
,
shadowType
,
&
clipRect
,
button
,
"button"
,
xi
,
yi
,
wi
,
hi
);
&
clipRect
,
button
,
"button"
,
xi
,
yi
,
wi
,
hi
);
}
}
...
...
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