diff options
author | Carlos Soriano <csoriano@gnome.org> | 2015-08-19 23:46:07 +0200 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2015-08-20 00:50:40 +0200 |
commit | d8c6ef7efb4c663d142fc346529785ca83344f5d (patch) | |
tree | e6cc936da8e0c0ff3c10ecadcd0ab109e432442c /src/nautilus-toolbar.c | |
parent | 1a8fd4cf015def0a9fea4911cb945d6ca40c0539 (diff) | |
download | nautilus-d8c6ef7efb4c663d142fc346529785ca83344f5d.tar.gz |
toolbar: don't update style when not needed
We were updating the operations button style always that
update_operations was called. Thing is that is not necesary,
and can cause some anoyances in patchs that are to come.
https://bugzilla.gnome.org/show_bug.cgi?id=753728
Diffstat (limited to 'src/nautilus-toolbar.c')
-rw-r--r-- | src/nautilus-toolbar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c index 1fe2f9601..7ba2fe0c9 100644 --- a/src/nautilus-toolbar.c +++ b/src/nautilus-toolbar.c @@ -519,8 +519,8 @@ update_operations (NautilusToolbar *self) * estimated time is longer than a OPERATION_MINIMUM_TIME is odd, so show * it only if the remaining time is bigger than again OPERATION_MINIMUM_TIME. */ - if (total_remaining_time > OPERATION_MINIMUM_TIME || - gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (self->priv->operations_button))) { + if (total_remaining_time > OPERATION_MINIMUM_TIME && + !gtk_revealer_get_reveal_child (GTK_REVEALER (self->priv->operations_revealer))) { gtk_revealer_set_reveal_child (GTK_REVEALER (self->priv->operations_revealer), TRUE); gtk_widget_queue_draw (self->priv->operations_icon); |