<div dir="ltr">Hi, <div>I'm having trouble implementing  an <a href="https://en.wikipedia.org/wiki/Observer_pattern">observer pattern</a> based Gtk layout.</div><div><br></div><div>This is my current method to dynamically change the layout:</div><div>for implementing <a href="https://raw.githubusercontent.com/sugarlabs/edit-fonts-activity/yash-v0/button_demo.gif">this</a>, a grid with pagination, I'm destroying all the elements of the grid when either of the buttons is pressed and then add the new elements to the grid based on a counter.</div><div><br></div><div>I don't think this is the most efficient method to do this, hence I need help in implementing observer pattern in this.</div><div><br></div><div>with Regards,</div><div>Yash Agarwal  </div><div> </div></div>