Skip to content

Commit

Permalink
fix backgrounds and emblems dialog content rendering
Browse files Browse the repository at this point in the history
Fix #506
Redraw the contents once and exactly once at intial run of eel_wrap_table_draw to get them to show up immediately.
  • Loading branch information
lukefromdc committed Feb 13, 2018
1 parent bf3da8e commit bbc0211
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions eel/eel-wrap-table.c
Expand Up @@ -53,6 +53,7 @@ struct EelWrapTableDetails

guint is_scrolled : 1;
guint cols;
gboolean drawn;
};

/* Private EelWrapTable methods */
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit bbc0211

Please sign in to comment.