зеркало из https://github.com/mozilla/pjs.git
Bug 412432 - "New location bar style requires GTK 2.12" (Use the default value for arrow scaling) [p=twanno@lycos.nl (Teune van Steeg) r+sr=roc a1.9=schrep]
This commit is contained in:
Родитель
f25338a3a9
Коммит
18a2d3cb94
|
@ -1435,7 +1435,7 @@ moz_gtk_dropdown_arrow_paint(GdkDrawable* drawable, GdkRectangle* rect,
|
|||
GdkRectangle* cliprect, GtkWidgetState* state,
|
||||
GtkTextDirection direction)
|
||||
{
|
||||
gfloat arrow_scaling;
|
||||
static gfloat arrow_scaling = 0.7;
|
||||
gint real_arrow_padding;
|
||||
GdkRectangle arrow_rect, real_arrow_rect;
|
||||
GtkStateType state_type = ConvertGtkState(state);
|
||||
|
@ -1459,9 +1459,6 @@ moz_gtk_dropdown_arrow_paint(GdkDrawable* drawable, GdkRectangle* rect,
|
|||
style = gArrowWidget->style;
|
||||
TSOffsetStyleGCs(style, real_arrow_rect.x, real_arrow_rect.y);
|
||||
|
||||
gtk_widget_style_get(gArrowWidget,
|
||||
"arrow-scaling", &arrow_scaling,
|
||||
NULL);
|
||||
real_arrow_rect.width = real_arrow_rect.height =
|
||||
MIN (real_arrow_rect.width, real_arrow_rect.height) * arrow_scaling;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче