Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37401735
en ru br
Репозитории ALT

Группа :: Graphical desktop/MATE
Пакет: mate-file-manager

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: caja_0001-fix-backgrounds-and-emblems-dialog-content-rendering.patch
Скачать


From bbc021163f0dd44ecd26b86a1126550b9c2e46f2 Mon Sep 17 00:00:00 2001
From: lukefromdc <lukefromdc@hushmail.com>
Date: Sun, 11 Feb 2018 15:43:46 -0500
Subject: [PATCH] fix backgrounds and emblems dialog content rendering
Fix https://github.com/mate-desktop/caja/issues/506
Redraw the contents once and exactly once at intial run of eel_wrap_table_draw to get them to show up immediately.
---
 eel/eel-wrap-table.c | 8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/eel/eel-wrap-table.c b/eel/eel-wrap-table.c
index 793d229..be7cf9a 100644
--- a/eel/eel-wrap-table.c
+++ b/eel/eel-wrap-table.c
@@ -53,6 +53,7 @@ struct EelWrapTableDetails
 
     guint is_scrolled : 1;
     guint cols;
+    gboolean drawn;
 };
 
 /* Private EelWrapTable methods */
@@ -252,6 +253,11 @@ eel_wrap_table_draw (GtkWidget *widget,
                                       cr);
     }
 
+    /*Redraw the table once and only once to ensure it is displayed */
+    if (wrap_table->details->drawn == FALSE){
+        gtk_widget_queue_allocate (GTK_WIDGET(widget));
+        wrap_table->details->drawn = TRUE;
+        }
     return FALSE;
 }
 
@@ -798,6 +804,8 @@ eel_wrap_table_new (gboolean homogeneous)
 
     eel_wrap_table_set_homogeneous (wrap_table, homogeneous);
 
+    wrap_table->details->drawn = FALSE;
+
     return GTK_WIDGET (wrap_table);
 }
 
-- 
2.13.6
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin