File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ struct EelWrapTableDetails
5353
5454 guint is_scrolled : 1 ;
5555 guint cols ;
56+ gboolean drawn ;
5657};
5758
5859/* Private EelWrapTable methods */
@@ -252,6 +253,11 @@ eel_wrap_table_draw (GtkWidget *widget,
252253 cr );
253254 }
254255
256+ /*Redraw the table once and only once to ensure it is displayed */
257+ if (wrap_table -> details -> drawn == FALSE){
258+ gtk_widget_queue_allocate (GTK_WIDGET (widget ));
259+ wrap_table -> details -> drawn = TRUE;
260+ }
255261 return FALSE;
256262}
257263
@@ -798,6 +804,8 @@ eel_wrap_table_new (gboolean homogeneous)
798804
799805 eel_wrap_table_set_homogeneous (wrap_table , homogeneous );
800806
807+ wrap_table -> details -> drawn = FALSE;
808+
801809 return GTK_WIDGET (wrap_table );
802810}
803811
You can’t perform that action at this time.
0 commit comments