[Poppler-bugs] [Bug 103050] Fix warnings and cleanup unused defs

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Oct 28 05:56:16 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103050

--- Comment #67 from Carlos Garcia Campos <carlosgc at gnome.org> ---
(In reply to Adrian Johnson from comment #66)
> Created attachment 134985 [details] [review]
> glib demo: correct the previous warnings fix
> 
> Does this look good?

Yes.

> Also, do you have any idea how to fix this warning?
> 
> ../glib/demo/selections.c: In function ‘pgd_selections_drawing_area_realize’:
> ../glib/demo/selections.c:340:9: warning:
> ‘gtk_style_context_get_background_color’ is deprecated: Use
> 'gtk_render_background' instead [-Wdeprecated-declarations]

You can probably do:

GdkRGBA *rgba;

gtk_style_context_get (context, GTK_STATE_FLAG_SELECTED, "background-color",
&rgba, NULL);
.....
gdk_rgba_free (rgba);

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20171028/cccc6ae9/attachment-0001.html>


More information about the Poppler-bugs mailing list