Fix appIcon menu arrows

We were looking up the wrong property for the width, and then only
setting the foreground color if a void function returned TRUE.

https://bugzilla.gnome.org/show_bug.cgi?id=614516
This commit is contained in:
Dan Winship 2010-03-31 15:44:47 -04:00
parent 44ede8c942
commit 045faf3f12

View File

@ -873,7 +873,7 @@ AppIconMenu.prototype = {
_onStyleChanged: function() { _onStyleChanged: function() {
let themeNode = this._windowContainerBox.get_theme_node(); let themeNode = this._windowContainerBox.get_theme_node();
let [success, len] = themeNode.get_length('-shell-arrow-size', false); let [success, len] = themeNode.get_length('-shell-arrow-width', false);
if (success) { if (success) {
this._arrowSize = len; this._arrowSize = len;
this.actor.queue_relayout(); this.actor.queue_relayout();
@ -882,14 +882,15 @@ AppIconMenu.prototype = {
if (success) { if (success) {
this._windowContainer.spacing = len; this._windowContainer.spacing = len;
} }
let color = new Clutter.Color(); let color = new Clutter.Color();
if (themeNode.get_background_color(color)) { themeNode.get_background_color(color);
this._backgroundColor = color; this._backgroundColor = color;
color = new Clutter.Color(); color = new Clutter.Color();
} themeNode.get_border_color(St.Side.LEFT, color);
if (themeNode.get_border_color(St.Side.LEFT, color)) {
this._borderColor = color; this._borderColor = color;
}
this._arrow.queue_repaint(); this._arrow.queue_repaint();
} }
}; };