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
8f2a08b9
Kaydet (Commit)
8f2a08b9
authored
Ock 27, 2012
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
GtkSalGraphics: No extra handling for Blueprint theme
üst
9a7605b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
50 deletions
+5
-50
gtkgdi.hxx
vcl/inc/unx/gtk/gtkgdi.hxx
+0
-3
salnativewidgets-gtk.cxx
vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+5
-47
No files found.
vcl/inc/unx/gtk/gtkgdi.hxx
Dosyayı görüntüle @
8f2a08b9
...
@@ -134,9 +134,6 @@ public:
...
@@ -134,9 +134,6 @@ public:
// will be set when UI theme was changed
// will be set when UI theme was changed
static
sal_Bool
bThemeChanged
;
static
sal_Bool
bThemeChanged
;
static
sal_Bool
bNeedPixmapPaint
;
static
sal_Bool
bNeedPixmapPaint
;
static
sal_Bool
bGlobalNeedPixmapPaint
;
static
sal_Bool
bToolbarGripWorkaround
;
static
sal_Bool
bNeedButtonStyleAsEditBackgroundWorkaround
;
// native widget methods
// native widget methods
virtual
sal_Bool
IsNativeControlSupported
(
ControlType
nType
,
ControlPart
nPart
);
virtual
sal_Bool
IsNativeControlSupported
(
ControlType
nType
,
ControlPart
nPart
);
...
...
vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
Dosyayı görüntüle @
8f2a08b9
...
@@ -50,9 +50,6 @@ typedef struct _cairo_font_options cairo_font_options_t;
...
@@ -50,9 +50,6 @@ typedef struct _cairo_font_options cairo_font_options_t;
// initialize statics
// initialize statics
sal_Bool
GtkSalGraphics
::
bThemeChanged
=
sal_True
;
sal_Bool
GtkSalGraphics
::
bThemeChanged
=
sal_True
;
sal_Bool
GtkSalGraphics
::
bNeedPixmapPaint
=
sal_False
;
sal_Bool
GtkSalGraphics
::
bNeedPixmapPaint
=
sal_False
;
sal_Bool
GtkSalGraphics
::
bGlobalNeedPixmapPaint
=
sal_False
;
sal_Bool
GtkSalGraphics
::
bToolbarGripWorkaround
=
sal_False
;
sal_Bool
GtkSalGraphics
::
bNeedButtonStyleAsEditBackgroundWorkaround
=
sal_False
;
GtkSalGraphics
::
GtkSalGraphics
(
GtkSalFrame
*
pFrame
,
GtkWidget
*
pWindow
)
GtkSalGraphics
::
GtkSalGraphics
(
GtkSalFrame
*
pFrame
,
GtkWidget
*
pWindow
)
:
X11SalGraphics
(),
:
X11SalGraphics
(),
...
@@ -451,12 +448,12 @@ void GtkData::initNWF( void )
...
@@ -451,12 +448,12 @@ void GtkData::initNWF( void )
// KDE 3.3 invented a bug in the qt<->gtk theme engine
// KDE 3.3 invented a bug in the qt<->gtk theme engine
// that makes direct rendering impossible: they totally
// that makes direct rendering impossible: they totally
// ignore the clip rectangle passed to the paint methods
// ignore the clip rectangle passed to the paint methods
GtkSalGraphics
::
bNeedPixmapPaint
=
GtkSalGraphics
::
bGlobalNeedPixmapPaint
=
true
;
GtkSalGraphics
::
bNeedPixmapPaint
=
true
;
}
}
}
}
static
const
char
*
pEnv
=
getenv
(
"SAL_GTK_USE_PIXMAPPAINT"
);
static
const
char
*
pEnv
=
getenv
(
"SAL_GTK_USE_PIXMAPPAINT"
);
if
(
pEnv
&&
*
pEnv
)
if
(
pEnv
&&
*
pEnv
)
GtkSalGraphics
::
bNeedPixmapPaint
=
GtkSalGraphics
::
bGlobalNeedPixmapPaint
=
true
;
GtkSalGraphics
::
bNeedPixmapPaint
=
true
;
#if OSL_DEBUG_LEVEL > 1
#if OSL_DEBUG_LEVEL > 1
std
::
fprintf
(
stderr
,
"GtkPlugin: using %s NWF
\n
"
,
std
::
fprintf
(
stderr
,
"GtkPlugin: using %s NWF
\n
"
,
...
@@ -777,7 +774,7 @@ sal_Bool GtkSalGraphics::drawNativeControl( ControlType nType,
...
@@ -777,7 +774,7 @@ sal_Bool GtkSalGraphics::drawNativeControl( ControlType nType,
&&
nType
!=
CTRL_TAB_ITEM
&&
nType
!=
CTRL_TAB_ITEM
&&
nType
!=
CTRL_TAB_PANE
&&
nType
!=
CTRL_TAB_PANE
&&
nType
!=
CTRL_PROGRESS
&&
nType
!=
CTRL_PROGRESS
&&
!
(
bToolbarGripWorkaround
&&
nType
==
CTRL_TOOLBAR
&&
(
nPart
==
PART_THUMB_HORZ
||
nPart
==
PART_THUMB_VERT
)
)
&&
!
(
nType
==
CTRL_TOOLBAR
&&
(
nPart
==
PART_THUMB_HORZ
||
nPart
==
PART_THUMB_VERT
)
)
)
)
{
{
// make pixmap a little larger since some themes draw decoration
// make pixmap a little larger since some themes draw decoration
...
@@ -1948,21 +1945,13 @@ static void NWPaintOneEditBox( SalX11Screen nScreen,
...
@@ -1948,21 +1945,13 @@ static void NWPaintOneEditBox( SalX11Screen nScreen,
if
(
stateType
==
GTK_STATE_PRELIGHT
)
if
(
stateType
==
GTK_STATE_PRELIGHT
)
stateType
=
GTK_STATE_NORMAL
;
stateType
=
GTK_STATE_NORMAL
;
// Blueprint needs to paint entry_bg with a Button widget, not an Entry widget to get
// a nice white (or whatever default color) background
GtkWidget
*
pBGWidget
=
widget
;
if
(
GtkSalGraphics
::
bNeedButtonStyleAsEditBackgroundWorkaround
)
{
NWSetWidgetState
(
gWidgetData
[
nScreen
].
gBtnWidget
,
nState
,
stateType
);
pBGWidget
=
gWidgetData
[
nScreen
].
gBtnWidget
;
}
NWSetWidgetState
(
widget
,
nState
,
stateType
);
NWSetWidgetState
(
widget
,
nState
,
stateType
);
/* This doesn't seem to be necessary, and it causes some weird glitch in
/* This doesn't seem to be necessary, and it causes some weird glitch in
* murrine (with the elementary theme for instance) but it fixes some issue
* murrine (with the elementary theme for instance) but it fixes some issue
* with Orta, so... */
* with Orta, so... */
gtk_paint_flat_box
(
pBGW
idget
->
style
,
gdkDrawable
,
stateType
,
GTK_SHADOW_NONE
,
gtk_paint_flat_box
(
w
idget
->
style
,
gdkDrawable
,
stateType
,
GTK_SHADOW_NONE
,
gdkRect
,
pBGW
idget
,
"entry_bg"
,
gdkRect
,
w
idget
,
"entry_bg"
,
aEditBoxRect
.
Left
(),
aEditBoxRect
.
Top
(),
aEditBoxRect
.
Left
(),
aEditBoxRect
.
Top
(),
aEditBoxRect
.
GetWidth
(),
aEditBoxRect
.
GetHeight
()
);
aEditBoxRect
.
GetWidth
(),
aEditBoxRect
.
GetHeight
()
);
gtk_paint_shadow
(
widget
->
style
,
gdkDrawable
,
GTK_STATE_NORMAL
,
GTK_SHADOW_IN
,
gtk_paint_shadow
(
widget
->
style
,
gdkDrawable
,
GTK_STATE_NORMAL
,
GTK_SHADOW_IN
,
...
@@ -3693,37 +3682,6 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
...
@@ -3693,37 +3682,6 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
// finally update the collected settings
// finally update the collected settings
rSettings
.
SetStyleSettings
(
aStyleSet
);
rSettings
.
SetStyleSettings
(
aStyleSet
);
gchar
*
pThemeName
=
NULL
;
g_object_get
(
pSettings
,
"gtk-theme-name"
,
&
pThemeName
,
(
char
*
)
NULL
);
#if OSL_DEBUG_LEVEL > 1
std
::
fprintf
(
stderr
,
"Theme name is
\"
%s
\"\n
"
,
pThemeName
);
#endif
// default behaviour
bNeedPixmapPaint
=
bGlobalNeedPixmapPaint
;
bToolbarGripWorkaround
=
false
;
bNeedButtonStyleAsEditBackgroundWorkaround
=
false
;
// setup some workarounds for "blueprint" theme
if
(
pThemeName
&&
strncasecmp
(
pThemeName
,
"blueprint"
,
9
)
==
0
)
{
bNeedButtonStyleAsEditBackgroundWorkaround
=
true
;
if
(
GetGenericData
()
->
GetSalDisplay
()
->
GetServerVendor
()
==
vendor_sun
)
{
// #i52570#, #i61532# workaround a weird paint issue;
// on a Sunray Xserver sometimes painting buttons and edits
// won't work when using the blueprint theme
// not reproducible with simpler programs or other themes
if
(
pThemeName
&&
strncasecmp
(
pThemeName
,
"blueprint"
,
9
)
==
0
)
{
bNeedPixmapPaint
=
true
;
bToolbarGripWorkaround
=
true
;
}
}
}
// clean up
g_free
(
pThemeName
);
}
}
...
...
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