Skip to content

Commit dabd62d

Browse files
lukefromdcraveit65
authored andcommitted
fix backgrounds and emblems dialog content rendering
Fix #506 Redraw the contents once and exactly once at intial run of eel_wrap_table_draw to get them to show up immediately.
1 parent d8579ea commit dabd62d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

eel/eel-wrap-table.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)