[evince] [PATCH 2/2] libgd: Fix compilation warning
- From: astian <astian eclipso at>
- To: evince-list gnome org
- Subject: [evince] [PATCH 2/2] libgd: Fix compilation warning
- Date: Thu, 13 Jul 2017 01:50:22 +0000
Remove declaration for unused variable.
Since I was in the area, this patch also changes a hardcoded integer
into a more descriptive macro.
---
cut-n-paste/libgd/gd-icon-utils.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/cut-n-paste/libgd/gd-icon-utils.c b/cut-n-paste/libgd/gd-icon-utils.c
index dc6e704f..698cfb33 100644
--- a/cut-n-paste/libgd/gd-icon-utils.c
+++ b/cut-n-paste/libgd/gd-icon-utils.c
@@ -123,7 +123,6 @@ gd_embed_image_in_frame (cairo_surface_t *source_image,
GtkCssProvider *provider;
GtkStyleContext *context;
GError *error = NULL;
- GdkPixbuf *retval;
GtkWidgetPath *path;
source_width = cairo_image_surface_get_width (source_image);
@@ -156,7 +155,9 @@ gd_embed_image_in_frame (cairo_surface_t *source_image,
gtk_widget_path_append_type (path, GTK_TYPE_ICON_VIEW);
gtk_style_context_set_path (context, path);
- gtk_style_context_add_provider (context, GTK_STYLE_PROVIDER (provider), 600);
+ gtk_style_context_add_provider (context,
+ GTK_STYLE_PROVIDER (provider),
+ GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
gtk_render_icon_surface (context, cr,
source_image,
--
2.13.1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]