Fix blinking while switching pages (Closes: #13)

Thanks to sagesag for the patch. If this breaks anything feel free to revert
this change.
This commit is contained in:
Sebastian Ramacher 2011-07-01 14:42:08 +02:00
parent 659df484ea
commit 53ae144b32

View file

@ -1770,6 +1770,8 @@ void
switch_view(GtkWidget* widget)
{
GtkWidget* child = gtk_bin_get_child(GTK_BIN(Zathura.UI.viewport));
if(child == widget)
return;
if(child)
{
g_object_ref(child);