diff options
| author | Victor Kareh <[email protected]> | 2026-05-13 15:44:13 -0400 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-05-19 16:21:12 -0400 |
| commit | 8243d0c3d32f40604db3c8002efa1fd3c6f75253 (patch) | |
| tree | 45f28bf02763c95ee8de69a19944736382af94ff | |
| parent | 02c9b1bbaca9a2938068d5919cae637b321ac842 (diff) | |
| download | atril-8243d0c3d32f40604db3c8002efa1fd3c6f75253.tar.bz2 atril-8243d0c3d32f40604db3c8002efa1fd3c6f75253.tar.xz | |
shell: adding annotation squiggly.
Underline icon is used for squiggly annotations in the sidebar.
Backported from https://gitlab.gnome.org/GNOME/evince/-/commit/9f790bed
| -rw-r--r-- | shell/ev-sidebar-annotations.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/shell/ev-sidebar-annotations.c b/shell/ev-sidebar-annotations.c index 865c37c3..0c75656b 100644 --- a/shell/ev-sidebar-annotations.c +++ b/shell/ev-sidebar-annotations.c @@ -336,6 +336,7 @@ job_finished_callback (EvJobAnnots *job, GdkPixbuf *highlight_icon = NULL; GdkPixbuf *strike_out_icon = NULL; GdkPixbuf *underline_icon = NULL; + GdkPixbuf *squiggly_icon = NULL; priv = sidebar_annots->priv; @@ -456,6 +457,16 @@ job_finished_callback (EvJobAnnots *job, } pixbuf = underline_icon; break; + case EV_ANNOTATION_TEXT_MARKUP_SQUIGGLY: + if (!squiggly_icon) { + squiggly_icon = gtk_icon_theme_load_icon (icon_theme, + "format-text-underline", + GTK_ICON_SIZE_BUTTON, + GTK_ICON_LOOKUP_FORCE_REGULAR, + NULL); + } + pixbuf = squiggly_icon; + break; default: break; } @@ -489,6 +500,8 @@ job_finished_callback (EvJobAnnots *job, g_object_unref (strike_out_icon); if (underline_icon) g_object_unref (underline_icon); + if (squiggly_icon) + g_object_unref (squiggly_icon); g_object_unref (job); priv->job = NULL; |
