[gnome-builder] omnibar: ensure allocation changes causes invalidation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] omnibar: ensure allocation changes causes invalidation
- Date: Wed, 24 May 2017 21:18:05 +0000 (UTC)
commit f9f80509abf8ff419a64fe0b10c5450098a632cb
Author: Christian Hergert <chergert redhat com>
Date: Wed May 24 14:17:28 2017 -0700
omnibar: ensure allocation changes causes invalidation
We risk the chance of not invaliding some regions when we change
allocations. This can be found when the bar gets really wide due to
text width, and then shrinks. Some garbage is left behind.
libide/workbench/ide-omni-bar.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libide/workbench/ide-omni-bar.c b/libide/workbench/ide-omni-bar.c
index f361885..6ee66a5 100644
--- a/libide/workbench/ide-omni-bar.c
+++ b/libide/workbench/ide-omni-bar.c
@@ -648,6 +648,10 @@ ide_omni_bar_init (IdeOmniBar *self)
{
gtk_widget_init_template (GTK_WIDGET (self));
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+ gtk_container_set_reallocate_redraws (GTK_CONTAINER (self), TRUE);
+ G_GNUC_END_IGNORE_DEPRECATIONS;
+
gtk_widget_set_direction (GTK_WIDGET (self->branch_box), GTK_TEXT_DIR_LTR);
g_signal_connect_object (self->build_button,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]