[poppler] [PATCH] Less deprecated glib calls

Albert Astals Cid aacid at kde.org
Mon Mar 26 19:45:46 UTC 2018


El dilluns, 26 de març de 2018, a les 19:45:57 CEST, Germán Poo-Caamaño va 
escriure:
> On Mon, 2018-03-26 at 19:34 +0200, Albert Astals Cid wrote:
> > diff --git a/glib/demo/annots.c b/glib/demo/annots.c
> > index 7f2e8618..bbcc31c2 100644
> > --- a/glib/demo/annots.c
> > +++ b/glib/demo/annots.c
> > @@ -350,7 +350,7 @@ pgd_annots_update_cursor (PgdAnnotsDemo *demo,
> > 
> >       demo->cursor = cursor_type;
> >       
> >       gdk_window_set_cursor (gtk_widget_get_window (demo->main_box),
> > 
> > cursor);
> > -     gdk_flush ();
> > +     gdk_display_flush (gtk_widget_get_display (demo->main_box));
> > 
> >       if (cursor)
> >       
> >           g_object_unref (cursor);
> >  
> >  }
> > 
> > diff --git a/glib/demo/selections.c b/glib/demo/selections.c
> > index eff099e2..d2f87eb6 100644
> > --- a/glib/demo/selections.c
> > +++ b/glib/demo/selections.c
> > @@ -168,7 +168,7 @@ pgd_selections_update_cursor (PgdSelectionsDemo
> > *demo,
> > 
> >  	demo->cursor = cursor_type;
> >  	
> >  	gdk_window_set_cursor (window, cursor);
> > 
> > -	gdk_flush ();
> > +	gtk_widget_get_display (demo->darea);
> 
> It seems you are missing gdk_display_flush:
> 
> +     gdk_display_flush (gtk_widget_get_display (demo->darea));

Lol right, wrong copy&paste. Should I commit after fixing htat?

Cheers,
  Albert





More information about the poppler mailing list