Missing sub-menu arrows with 3.5.x and GTK < 2.15
Signed-off-by: Michael Meeks <michael.meeks@suse.com> Signed-off-by: Petr Mladek <pmladek@suse.cz>
This commit is contained in:
parent
3a878d3dbf
commit
fd205e95ad
1 changed files with 10 additions and 2 deletions
|
@ -1027,13 +1027,21 @@ sal_Bool GtkSalGraphics::getNativeControlRegion( ControlType nType,
|
|||
gint arrow_size;
|
||||
gint arrow_extent;
|
||||
guint horizontal_padding;
|
||||
gfloat arrow_scaling;
|
||||
gfloat arrow_scaling = 0.4; // Default for early GTK versions
|
||||
|
||||
gtk_widget_style_get( widget,
|
||||
"horizontal-padding", &horizontal_padding,
|
||||
"arrow-scaling", &arrow_scaling,
|
||||
NULL );
|
||||
|
||||
// Use arrow-scaling property if available (2.15+), avoid warning otherwise
|
||||
if ( gtk_widget_class_find_style_property( GTK_WIDGET_GET_CLASS( widget ),
|
||||
"arrow-scaling" ) )
|
||||
{
|
||||
gtk_widget_style_get( widget,
|
||||
"arrow-scaling", &arrow_scaling,
|
||||
NULL );
|
||||
}
|
||||
|
||||
child = GTK_BIN( widget )->child;
|
||||
|
||||
context = gtk_widget_get_pango_context( child );
|
||||
|
|
Loading…
Reference in a new issue