summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-sidebar-annotations.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/shell/ev-sidebar-annotations.c b/shell/ev-sidebar-annotations.c
index be6de708..865c37c3 100644
--- a/shell/ev-sidebar-annotations.c
+++ b/shell/ev-sidebar-annotations.c
@@ -335,6 +335,7 @@ job_finished_callback (EvJobAnnots *job,
GdkPixbuf *attachment_icon = NULL;
GdkPixbuf *highlight_icon = NULL;
GdkPixbuf *strike_out_icon = NULL;
+ GdkPixbuf *underline_icon = NULL;
priv = sidebar_annots->priv;
@@ -445,6 +446,16 @@ job_finished_callback (EvJobAnnots *job,
}
pixbuf = strike_out_icon;
break;
+ case EV_ANNOTATION_TEXT_MARKUP_UNDERLINE:
+ if (!underline_icon) {
+ underline_icon = gtk_icon_theme_load_icon (icon_theme,
+ "format-text-underline",
+ GTK_ICON_SIZE_BUTTON,
+ GTK_ICON_LOOKUP_FORCE_REGULAR,
+ NULL);
+ }
+ pixbuf = underline_icon;
+ break;
default:
break;
}
@@ -476,6 +487,8 @@ job_finished_callback (EvJobAnnots *job,
g_object_unref (highlight_icon);
if (strike_out_icon)
g_object_unref (strike_out_icon);
+ if (underline_icon)
+ g_object_unref (underline_icon);
g_object_unref (job);
priv->job = NULL;