[gtk+] LevelBar: Avoid unnecessarily copying allocation
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] LevelBar: Avoid unnecessarily copying allocation
- Date: Sat, 12 Aug 2017 13:27:25 +0000 (UTC)
commit d5e25be9bcd6c1a9db74ee749fa8808ba55a5ca5
Author: Daniel Boles <dboles src gmail com>
Date: Sat Aug 12 14:09:09 2017 +0100
LevelBar: Avoid unnecessarily copying allocation
Just use the original allocation, instead of copying it and passing that
gtk/gtklevelbar.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtklevelbar.c b/gtk/gtklevelbar.c
index 5092b09..ac42442 100644
--- a/gtk/gtklevelbar.c
+++ b/gtk/gtklevelbar.c
@@ -434,9 +434,8 @@ gtk_level_bar_allocate_trough_continuous (GtkLevelBar *self,
inverted = gtk_level_bar_get_real_inverted (self);
/* allocate the empty (unfilled) part */
- block_area = *allocation;
gtk_widget_size_allocate (self->priv->block_widget[inverted ? 0 : 1],
- &block_area,
+ allocation
baseline,
out_clip);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]