diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-03-17 20:48:23 +0000 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2016-03-18 09:51:31 +0000 |
commit | b1667570b70cf5f2b4a12fe35e445c5d3de82452 (patch) | |
tree | f0a5a4a778ee66603784e0d6cbd9d01845f95f5e /vcl | |
parent | 4bbde386439510e8e0ad066e17706438930f0e12 (diff) |
Resolves: tdf#98726 sneaky transparent clearlooks-phenix scrollbars
(cherry picked from commit e511f962c0b70e0ce0d19c42be1f198b6191fad1)
Change-Id: Idc05d7b6c2b42086eafa9ad8ab8e63116d6f676c
Reviewed-on: https://gerrit.libreoffice.org/23346
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx index 20efd8a598e6..38080e8ff479 100644 --- a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx @@ -277,6 +277,20 @@ Rectangle GtkSalGraphics::NWGetScrollButtonRect( ControlPart nPart, Rectangle aA return buttonRect; } +static GtkWidget* gCacheWindow; +static GtkWidget* gDumbContainer; +static GtkWidget* gSpinBox; +static GtkWidget* gEntryBox; +static GtkWidget* gComboBox; +static GtkWidget* gComboBoxButtonWidget; +static GtkWidget* gComboBoxEntryWidget; +static GtkWidget* gListBox; +static GtkWidget* gListBoxButtonWidget; +static GtkWidget* gMenuBarWidget; +static GtkWidget* gMenuItemMenuBarWidget; +static GtkWidget* gCheckMenuItemWidget; +static GtkWidget* gTreeViewWidget; + void GtkSalGraphics::PaintScrollbar(GtkStyleContext *context, cairo_t *cr, const Rectangle& rControlRectangle, @@ -419,6 +433,9 @@ void GtkSalGraphics::PaintScrollbar(GtkStyleContext *context, bool has_slider = ( thumbRect.GetWidth() > 0 && thumbRect.GetHeight() > 0 ); + gtk_render_background(gtk_widget_get_style_context(gCacheWindow), cr, 0, 0, + scrollbarRect.GetWidth(), scrollbarRect.GetHeight() ); + // ----------------- TROUGH GtkStyleContext* pScrollbarTroughStyle = scrollbarOrientation == GTK_ORIENTATION_VERTICAL ? mpVScrollbarTroughStyle : mpHScrollbarTroughStyle; @@ -1136,20 +1153,6 @@ void GtkSalGraphics::PaintRadio(cairo_t *cr, GtkStyleContext *context, PaintCheckOrRadio(cr, context, rControlRectangle, false, bInMenu); } -static GtkWidget* gCacheWindow; -static GtkWidget* gDumbContainer; -static GtkWidget* gSpinBox; -static GtkWidget* gEntryBox; -static GtkWidget* gComboBox; -static GtkWidget* gComboBoxButtonWidget; -static GtkWidget* gComboBoxEntryWidget; -static GtkWidget* gListBox; -static GtkWidget* gListBoxButtonWidget; -static GtkWidget* gMenuBarWidget; -static GtkWidget* gMenuItemMenuBarWidget; -static GtkWidget* gCheckMenuItemWidget; -static GtkWidget* gTreeViewWidget; - void parent_styles_context_set_state(GtkStyleContext* context, GtkStateFlags flags) { while ((context = gtk_style_context_get_parent(context))) |