diff options
author | lukefromdc <[email protected]> | 2018-02-11 15:43:46 -0500 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-02-13 21:08:37 +0100 |
commit | dabd62d457f4273ab2fb945ca6ec6fd6f1e21a6c (patch) | |
tree | 1d345d9f7e0ffccab0de01dd23d298ba29fc7925 | |
parent | d8579ead4a13e66b03d2f17f3240f724008cc555 (diff) | |
download | caja-dabd62d457f4273ab2fb945ca6ec6fd6f1e21a6c.tar.bz2 caja-dabd62d457f4273ab2fb945ca6ec6fd6f1e21a6c.tar.xz |
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.
-rw-r--r-- | eel/eel-wrap-table.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/eel/eel-wrap-table.c b/eel/eel-wrap-table.c index 793d2290..be7cf9a7 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); } |